Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

How to use PowerShell "Invoke-RestMethod" to connect to CRM Online WebAPI?

$
0
0

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.


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>