web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Consume Custom service using Postman from F&O VHD

(0) ShareShare
ReportReport
Posted on by 225

I am using F&O VHD from LCS.

I have created a custom service . I want to test it using Postman or third-party app. I have created app in Azure AD, getting Access token properly but when I try GET call "baseurl/data/Vendors" or "baseurl/api/services/MyServiceGroup/MyService/Method" I am not able to consume this custom service or Entity.

Is it something that we can not access this services (Public URL) outside VHD ?? I read this reason in one blog.

If I want to access Custom Services or Entities then I need Cloud version ? 

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    You can't access the local VM URL from the outside. But you can test it from within the VM. So, just install Postman in the VM and use it.

    You might also be able to set up a publicly accessible URL in your VM - earlier it was easy, but quite some time ago MS changed something and at least for us it stopped working. And we did not want to invest time into that.

    If you want to test integrations from external systems to D365FO, it's easiest to just deploy a cloud hosted system.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Pratik,

    If you are hosting the VM locally downloading the VHD file from LCS, you won't be able to access the url from outside the VM. You can install postman in the VM itself and access the service(s).

  • Pratik Rami Profile Picture
    225 on at

    I tried by installing Postman in VM. I am getting 401 Unauthorized as response.

    I am sharing how I have created app in Azure AD. Let me know if I am missing anything.

    1) First I have created App in Azure Active Directory.

    2) Generated Client sercret

    3) Below Permissions Given

       Access Dynamics AX Custom Service

       Access Dynamics AX data

       Access Dynamics AX online as organization users

    4) Added Application ID(Client Id),Name,User Id in F&O => Azure Active Directory applications.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    You need to add the D365FO URL in the reply URL list of your AAD app registration.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    I think you will need the User.Read permission as well. You can check this link for the permissions to be given.

    Also, please check if the User mentioned in D365 F&O Azure active directory applications setup has access to the App created in Azure AD.

  • Pratik Rami Profile Picture
    225 on at

    I have added User.read permission. and also added F&O URL as redirect URls

    I am using Postman so in platform configuration I should use mobile and desktop applicartions right ?

    pastedimage1603982180690v1.png

  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Well, actually you are integrating with a cloud service (D365FO) so you might want to choose "Web". I'm not sure which one is correct, this "Configure platforms" appeared quite recently. It's some kind of a template, but you can still configure it afterwards anyway you wish - at least via the manifest file.

    By the way, does it now work for you, after adding the permission and the reply URL? If not, does it behave differently? Please keep us updated about it. Thanks!

  • Pratik Rami Profile Picture
    225 on at

    no . still getting 401 UnAuthorized. thats why I asked about this Platform related thing. bcz to redirect url I have to first select Platform . I have selected Mobile & Desktop Applications.

    I am also checking what Gunjan has told regarding user. Will update you once I check that. will also try by selecting web in platform

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Pratik,

    You can check this post as well, if you haven't already.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Also one detail to check in PostMan, make sure that you don't have a trailing dash (/) in any of the URLs in your request.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans