Dynamics 365 Finance & Operation WebAPI with POST MAN


Dynamics 365 Finance & Operation WebAPI with POSTMAN


Most of the time we used 3rd Party tools like fiddler, Post Man and SoupUI as clients to consume web services.

In this blog i will explain, How can we use POSTMAN to consume Web-API by using Oauth2 Azure Authentication.


Step-1 Download the POSTMAN from this link.

Step-2 Register The Azure Application (Web API). You can follow this link

Step-3 Add the below URL in the Reply URL section https://www.getpostman.com/oauth2/callback. check the below screenshot.



Step-4 Once App registration completed Enter Application ID in D365FO

Reference screenshot



Step-5 Open POST man and navigate to Authorization Tab and select OAuth2 as Authentication Type.

Reference screenshot



Step-6 Click on Get New Access Token. A Popup will appear.

Reference screenshot



Step-7 Fill the required fields Like below

Call Back URL > You can't change this.
Token Name (As per your requirement)
Auth URL

https://login.windows.net/YourTenant.com/oauth2/authorize?resource=https://EnvironmentURL.operations.dynamics.com

Access Token URL
https://login.windows.net/YourTenant.com/oauth2/token?resource=https://EnvironmentURL.operations.dynamics.com

You can find the tenant from AX as well. Open D365FO Click on the Setting icon. you can find it the on the top right of the screen then click on about.





Client ID > Application ID You Registered On Azure Portal
Secret Key > Enter the secret key you generate against your Azure Application.



If you don't provide a secret key then a popup window will appear for login.


Reference Screenshot


Step-8 Click on Request Toke. Within 4 to 5 seconds you will get the Azure Authentication Token.

Step-9  Now select the Header value from the drop-down and click on USE token to add this token in your request.

Reference screenshot



Step-10 Navigate to Header Tabs for the verification of the Authorization token in your request

Reference screenshot


Step-11 Enter the Complete service URL and click on send. in my case, I have called getFoo service.

Reference screenshot



Please check the above screenshot. You will find the successful result 


Please feel free to contact me if you are facing any issues during the implementation of this blog.



Support Faryal's Cusine


18 comments:

  1. This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post!
    Webdesign

    ReplyDelete
    Replies

    1. I want to use this little time before i live for for work to recommend the right company you can take out a loan from here in the US or any part of the world(NEW AMERICAN FUNDING)i got my loan of $15,000 from NEW AMERICA FUNDING COMPANY without upfront fee if you need a loan you can email them here for a loan here on Email: crown_technology@yahoo.com OR Whatsapp: +12134218707

      Delete
  2. You have a real ability for writing unique content. I like how you think and the way you represent your views in this article. I agree with your way of thinking. Thank you for sharing. Online Quran Academy

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Hi Sohail, I have configured everything and i need to pass text message in xml format however it's not hitting to my service class. Could you please guide me further on this?

    ReplyDelete
    Replies
    1. I have fixed my issue from my own, Thanks...

      Delete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Sohail,
    Your post is perfect. I just tried with a hello world and it worked great. when i tried with parameters to multiply 2 numbers instead of giving the result it gives the method signature like this below. any suggestions please?
    {
    "Parameters": [
    {
    "Name": "_multiplicationRequestContract",
    "Type": "CISMultiplicationRequestContract"
    }
    ],
    "Return": {
    "Name": "return",
    "Type": "CISMultiplicationResponseContract"
    }
    }

    ReplyDelete
  7. Photos disappeared ,can you resolve this issue ?

    ReplyDelete
  8. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work. Saham Aplikasi

    ReplyDelete
  9. How to become financially independent A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post.

    ReplyDelete
  10. Great Article!

    DynaTech addresses your specific business requirements with great detailing that is beyond comparison in the marketplace. As a Microsoft Dynamics Partner in Canada, we help your business and customers with powerful and flawless running functionalities.

    ReplyDelete
  11. Thanks for your post. I’ve been thinking about writing a very comparable post over the last couple of weeks, I’ll probably keep it short and sweet and link to this instead if thats cool. Thanks. Personal finance blog

    ReplyDelete
  12. Learn about Dynamics 365 Customer Service in detail with its features, benefits, real-life example, and how to implement d365 Customer Service in your business.

    ReplyDelete
  13. INSTANT AFFORDABLE PERSONAL/BUSINESS/HOME/INVESTMENT LOAN OFFER WITHOUT COST/STRESS CONTACT US TODAY VIA Whatsapp +19292227023 Email drbenjaminfinance@gmail.com

    Hello, Do you need an urgent loan to support your business or in any purpose? we are certified and legitimate and international licensed loan Company. We offer loans to Business firms, companies and individuals at an affordable interest rate of 2% , It might be a short or long term loan or even if you have poor credit, we shall process your loan as soon as we receive your application. we are an independent financial institution. We have built up an excellent reputation over the years in providing various types of loans to thousands of our customers. We Offer guaranteed loan services of any amount to people all over the globe, we offer easy Personal loans,Commercial/business loan,Car loan Leasing/equipment finance, Debt consolidation loan, Home loan, ETC with either a good or bad credit history. If you are in need of a loan do contact us via Whatsapp +19292227023 Email drbenjaminfinance@gmail.com

    Share this to help a soul right now, Thanks

    ReplyDelete
  14. One evening, i was reading a blog of how so many people got this blank card online when i was trying to search for a new job, but it didn't seem clear to me so i ignored. Three days later, i was so surprised to see a comment by my cousin on how he got the blank card worth Thousand Dollars and without hesitation i gave him a call to come over to the house to tell me more about the card and he told me that its a miracle that i needed to per-take. He gave me the email address of the hackers and i contact them for the card and they responded and told me all the procedures and terms of the card which was also what my cousin told me, i agreed and completed their requirement to get the card. Four days later, i heard knock on my door an behold was the courier agent who brought the parcel to my house and today i am rich and i thank God to this hackers and to my cousin brother who lead me to them. It might sounds odd but you can get yours via email: darkwebcyberhackers@gmail.com OR darkwebcyberhackers@yahoo.com or WhatsApp: +18033921735

    ReplyDelete
  15. Get your full UK /USA driving license with us

    NO TESTS✅
    NO EXAMS✅
    DVLA APPROVED✅
    Theory certificates✅
    Practical certificates✅
    Full license ✅
    Motorcycle license ✅
    Cpc license✅
    HGV license ✅
    Passports ✅
    Visa arrangements✅

    Email: Infor@approvedocs.com

    https://approvedocs.com/buy-drivers-license-online/

    https://t.me/Approveddocumente

    buy driver's license online USA

    buy genuine driving license

    buy dl number online

    buy driving license

    buy California driver license

    ReplyDelete

Virtual Fields Vs Computed Fields

  Virtual Field: A virtual field in D365FO is a field that doesn't have a direct representation in the database. It's a field that y...