61) Access OData entities for non-default companies – D365 FO

 By default, OData retrieves the data from the default company where the user is mapped to in Users form.

In order to get the data from non-default companies, just add ‘cross-company = true’ after the URL and filter.

For example,

https://BaseURL/data/CustomersV3(dataAreaId='ABC',CustomerAccount='ABC12')?cross-company=true

I tried the same from Postman and got the expected result

Comments

Popular posts from this blog

Customization on Sales invoice Report in D365 F&O

75) COC - Create a coc of the table modified method

46) D365 FO: SHAREPOINT FILE UPLOAD USING X++