September 12, 2022

Using VS Code and RapidAPI to call D365FO custom services

Filed under: 365 for Finance and Operations,Data Entities — Joe Brewer @ 3:59 pm

Here is a guide to install RapidAPI into VSCode.

Once you have installed RapidAPI, check out this guide for creating new requests.

Once you have created a new request for the custom service, change the request type to “POST” and put the full url to the service in the address box. For this example I am using the standard service for converting a decimal number to text.


To configure a service for D365FO, click on “Auth”, and then “OAuth 2”. Click on the “Client Credentials” radio button, enter the client id and client secret from the web application in Azure AD.

The access token url is where xxxxxxx is the tenant that the D365FO environment belongs to.

The scope is the url of the D365FO environment followed by “/.default”

The Token Prefix is “Bearer”

When you press the “Get Access Token” button, assuming the configuration is correct, you will get a pop up dialog showing the access token. Click on “Use Token” to accept and use the token. Note that once the OAuth 2 settings have been entered, the Headers tab will automatically update to show that the service will use OAuth 2 to authenticate.

Switch to the “Body” tab and enter the following JSON:

  "_sourceNumber": 12.34,
  "_languageId": "en-GB"

Pressing send will then send the request to D365FO and show the response:

Though I have not tested it yet, it appears that the request type can implement the ODATA verbs which would be very useful for testing data entities.

So, what do you think? Is this a contender for a Postman replacement for testing integration services with D365FO?

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress