Connect Dataverse Dynamics 365 using Bearer token using power automate

To connect dynamics 365 dataverse using power automate you need to get the bearer token first. Follow below steps to get bearer token.

You need to add URI with tenant id
use correct tenant id from azure active directory application.
URI = https://login.microsoftonline.com/652c35af-04b4-4d8f-9db0-9bb2c58bc908/oauth2/token
Content-Type= application/x-www-form-urlencoded
in body put below: (get this client id, client secret from azure active directory app page.
grant_type=client_credentials&client_id=e42f2bbf-1e25-4bbe-bf39-e28b4d7db2cf&client_secret=MRD7Q~8DhdtOVQN7qzrisWE6ox0SGNgL3WdzV&resource=https://softchiefdev.crm.dynamics.com/
Then parse JSON

and at last connect

make sure you create an application user in D365.
hope this helps.
Follow my blog for more trending topics on Dynamics 365, Azure, C#, Power Portals and Power Platform. For training, Courses and consulting, call to us at +91 832 886 5778 I am working more for community to share skills in Dynamics 365 and Power Platform. Please support me by subscribing my YouTube Channel. My YouTube Channel link is this : https://www.youtube.com/user/sppmaestro