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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Delete Audit record ba...
Power Apps
Unanswered

Delete Audit record based on attributemask update

(0) ShareShare
ReportReport
Posted on by

Hi,

I would like to create a bulk deletion job when only a specific attribute its updated.

 

So having these 2 audit records attributemask updates, only second record should be deleted.

Audit record 1 - "attributemask":"42,18,179"

Audit record 2 - "attributemask":"42"

 

I'm using the PA Dataverse action - Perform an unbound action

Jorge_0-1687870534041.png

But not able to make it work when I try to include the attributemask filter

 

Tried with this, but the job is not created successfully in Dataverse

 

 

[
 {
 "EntityName": "audit",
 "Criteria": {
 "FilterOperator": "And",
 "Conditions": [
 {
 "AttributeName": "objecttypecode",
 "Operator": "Equal",
 "Values": [
 {
 "Type": "System.String",
 "Value": "contact"
 }
 ]
 },
 {
 "AttributeName": "userid",
 "Operator": "Equal",
 "Values": [
 {
 "Type": "System.Guid",
 "Value": "f79071df-83ec-ec11-bb3d-0022489fbc1b"
 }
 ]
 },
 {
 "AttributeName": "attributemask",
 "Operator": "Equal",
 "Values": [
 {
 "Type": "System.String",
 "Value": "42"
 }
 ]
 }
 ],
 "Filters": []
 }
 }
]

 

 

Jorge_1-1687873839746.png

 

When I try to do similar call with the Web API

https://crm.api.crm4.dynamics.com/api/data/v9.2/audits?$filter=auditid%20eq '16FB7981-B30F-EE11-907C-0022489D5940' and attributemask eq '42'

{"error":{"code":"0x80040265","message":"Equal and Not Equal operations are not supported on Attribute Mask"}}

 

 

I have the same question (0)
  • Jorge_ Profile Picture
    on at

    Hi, anyone can help on this please?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 445

#2
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 321 Super User 2025 Season 2

Last 30 days Overall leaderboard