When I try to run a Get command in Postman using the url from Simple Object Designer in Business Central I get this error. What do I need to change to make this api call work? The OAuth token was generated with the same identity as I use in power platform that works to make calls there (Power Automate).
“Sorry, the current permissions prevented the action. (Page 50644 API P50644 SOD Execute: MyCode) CorrelationId: dfdb54b7-8515-41a7-92e2-27baadc19ba6.”
The error message is saying that the Business Central credentials (user if OAuth, Entra App if service account) does not have Business Central permission to Page 50644. If Microsoft Entra App, make sure it’s assigned permissions in “Microsoft Entra Apps” inside BC.
That was the issue. The permissions for the app were there but only for 1 company and it was not the company I was working in. Thanks for your help.
What should the scope be set to in Postman when generating an OAuth token?