Hi,
I want to query CRM Online Entities using WebAPI (https://crmorg.api.crm.dynamics.com/api/data/v8.2/).
For same, I need to use power-shell "Invoke-RestMethod" command, now this command expect an OAuth Token.
I searched the web and tried various samples but was unable to acquire and pass the Auth token.
Kindly, help me with some sample code to acquire the OAuth token for my dynamics CRM Online Org and then pass it to "Invoke-RestMethod" to query crm entities via webapi.
Thanks,
Sachin R. Chavan.
*This post is locked for comments