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 Apps / Importing Audit tables...
Power Apps
Unanswered

Importing Audit tables in Powerapps

(0) ShareShare
ReportReport
Posted on by 2

Hi All!

 

Currently we are working in a project which involves fetching and writing data from/into Dataverse tables through PowerApps Canvas apps. According to current setup, if the user is entering any record with an existing primary key value, the old record is being overwritten by the new record (as it ideally should). But now, the users want to see the logs of these tables i.e. when the records have been modified, what was the value before modification etc.

 

For example:

If Primary key "A" has value "Apple" stored for it. Now the user enters "Banana" for Key "A". The user wants to see Both the records "A"-"Apple" & "A"-"Banana" in the table, instead of only seeing "A"-"Banana".

 

We have tried checking the Audit checkbox for the tables but unable to understand how to fetch Both the records "A"-"Apple" & "A"-"Banana" into PowerApps. We have thought of an alternate solution of creating an additional table recording all the values, but since that will affect the app performance in our case, we are looking for a straight forward solution (if there is one), to fetch the audited records into PowerApps canvas apps directly.

 

Thanks in Advance!

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Sus1 

     

    • I assume you enabled Auditing DataVerse like Global settings, Table and Field
    • We have Audits table but that does not have Actual Values.
    • StalinPonnusamy_0-1637596140790.png

       

    • There is no direct way to display the changed values (Audit History) in PowerApps
      • We need to use Web API to retrieve the values for a specific record
      • Need Power Automate to get data from Audit and display it in PowerApps
      • Web API query will be like

     

    https://YOURORG.crm.dynamics.com/api/data/v9.0/RetrieveRecordChangeHistory(Target=@Target)?@Target={%22ENTITYLOGICALNAMEHERE%22:%22RECORDID%22,%22@odata.type%22:%22Microsoft.Dynamics.CRM.ENTITYLOGICALNAMEHERE%22}

     

     

    Data flow will be

    • PowerApps calls Power Automate with Parameter (Record Id)
    • Power Automate retrieves the Audit history
    • Power Automate Returns
    • PowerApps Collect the response
    • Display in Gallery


    Thanks,
    Stalin - Learn To Illuminate

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 Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard