How to call the OOB AOS Service URL API of Dynamics 365 in Postman ?

 For calling the AOS service in the Postman you have to Follow the Following Steps;

Step 1:

    You have to create an application in the Azure Active Directory.

Step 2 :

    Register the Azure Active Directory Application in the AOS/BackOffice of D365. For registration 

    System administration > Setup > Azure Active Directory Applications



    The Client Id , Name , User ID are set in the path from Azure Active Directory.

Step 3:

    By registering of Azure AD Application, you can get four things that are;

TABLE 2
ParameterValue
grant_typeclient_credentials
client_idThe application ID from the Azure AD application registration
client_secretThe secret key value from the Azure AD application registration
resourceThe URL of the AOS

   Use these values in the postman to get the token as shown in the image;


You will get the token from the call.

Step 4 :

    Now for the call, the AOS OOB Service API,  the link is 

    https://AOSURL/api/services/UserSessionService/AifUserSessionService/GetUserSessionInfo

    You can view this method in the Application Explorer of your VM as shown;
    
    

    Similarly, you can find the Custom Service of AOS.
    
    The API call is shown in the Figure;



Now you can view the response of the OOB AOS Service. Thanks

    


Comments

Popular posts from this blog

How to Create Extended Data Types (EDTs) in Finance and Operations of Dynamics 365 -- F&O Customization Part 2

Batch Job stuck in "Waiting" state in D365 F&O?

Channel Setup Part 2 ---- Create Organizational Hierarchy in D365 F&O