so that log failed for which record needs to be displayed under that record anywhere either in section/grid.
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: