ODATA API test with postman app
F&O ODATA
API Consume through Postman
To consume
F&O API , Majorly need follow below steps
1. Firstly we need to get access token
with static URL
2. And then we need to push data(JSON
Body) with access token as a authorization token ,F&O URL
Get access Token
Static URL -
https://login.microsoftonline.com/
Command - POST
Body
KEY |
VALUE |
client_id |
CLIENT ID value from app registration |
grant_type |
client_credentials |
resource |
D365FO URL |
client_secret |
SECRET KEY from app registration |
Tenant_id will provide from
azure app
We will
receive access token successfully as highlighted in above image
Push data as json body to insert in F&O
Ø After successfully gets the
access_token from above step 1
Ø Need to be place the access
access_token in authorization tab as token
Ø Finally we need to push data/info as
JSON body under body section
Command: Post
URL: F&OURL/data/DMFEntity Name
Ø You will receive the status as
created(201)
Comments
Post a Comment