Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Retrieving power automate flow logs

(0) ShareShare
ReportReport
Posted on by
Hi All,
My requirement is like every power automate flow has a log created if it fails
so that log failed for which record needs to be displayed under that record anywhere either in section/grid.
I got a approach from internet can anyone help me that below approach will work or not?
 
 
Obtain Power Automate logs using the Management API:
Authenticate and obtain an access token to make requests to the Power Automate Management API. You can use the OAuth 2.0 authentication process to obtain the token.
Use the Management API to retrieve the relevant Power Automate logs. You can query the API to fetch the desired logs based on criteria like flow name, status, timestamp, etc. Retrieve the logs in the desired format, such as JSON.

Export the logs to Dynamics CRM using the Dynamics CRM Web API:
Authenticate and obtain an access token for the Dynamics CRM Web API. Again, you can use the OAuth 2.0 authentication process for this.
Use the Web API to create records in Dynamics CRM. You'll need to construct the appropriate HTTP requests with the necessary headers and payload to create records that correspond to the Power Automate logs.
Map the fields from the Power Automate logs to the corresponding fields in Dynamics CRM. Ensure that the data is correctly transformed and formatted to match the CRM schema.

Automate the process:
Set up a scheduled job or script that performs the above steps at the desired frequency. This ensures that Power Automate logs are regularly exported to Dynamics CRM without manual intervention.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans