web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Getting Audit data wit...
Power Automate
Unanswered

Getting Audit data with Dynamics API

(0) ShareShare
ReportReport
Posted on by 12

Hello, I would like to use the dynamics API to retrieve audit data related to changes made in the data of a table.

To do this, I'm using the dynamics API v9.2.

I use an instant flow Power Automate with Power Apps entry to retrieve the data.

 

When I access my endpoint, I can retrieve elements from the web, but when I query Power Automate or Postman, I need a token to access them.

The endpoint in question is "https://<environment>.api.crm12.dynamics.com/api/data/v9.2/audits".

 

I think I need the following information, but I don't know where to find it:

EnvironmentID -> found
ClientID -> don't know where to find it
ClientSecret -> don't know where to find it

 

I don't know if I need any other information? If anyone has any ideas, I'd love to hear them.

Thanks in advance

Categories:
  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @Laveezai,

     

    Just to double check, you have a specific requirement to use the Web API or are you open for other options as well?

     

    If you don't have a specific requirement for this you could also use a List rows action (or List rows from selected environment) of the Dataverse connector and just query the Audits table from there.

     

    If you still want to use the Web API instead you would be able to find these details in Azure. 

     

    The client id & secret would be something which is part of an app registration in Entra (in the Azure Portal). Elaiza Benitez has also written a nice blog about this app registration:

    https://benitezhere.blogspot.com/2020/12/%20how-to-authenticate-as-application-with-microsoft-graph-api-with-flow.html

     

    And if it helps I got a blogpost with the steps on how you could use the Dataverse Web API in Power Automate as well:

    https://www.expiscornovus.com/2021/03/14/how-to-use-the-dataverse-web-api/

     

     

  • Laveezai Profile Picture
    12 on at

    I need to retrieve all these values :

    -Date of the operation

    -User who does the operation

    -Field Name modified

    -Old Value

    -New Value

     

    (and maybe the table name modified)

     

    I tried the first solution but not all information are provided

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard