Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to get actual metadata for Attributemask field from Audit Table ?

Posted on by Microsoft Employee

Hi,

I am trying to export data out of CRM into SQL Server. 

I want to know actual values for below data from Attribute mask column(Audit Table).

Which contains values like

,47,45,42,96,93,107,201,28,25,53,32,14,90,178,121,61,55,108,11,35,8,177,120,69,122,117,209,46,80,78,59,10051,30,102,50,71,4,202,73,3,5,128,54,51,206,210,236,19,126,124,38,184,34,31,231,118,33,43,98,52,10037,70,123,129,132,133,103,39,114,22,48,56,10026,235,99,97,181,183,95,234,18,21,200,10045,49,106,109,110,16,24,67,74,175,44,27,139,125,208,134,10053,180,130,2,41,36,92,76,94,179,113,127,17,10039,101,233,10022,15,176,174,10043,29,203,119,37,72,40,20,173,211,91,111,105,131,10047,6,116,104,23,12,57,10041,66,100,115,26,

Also help me If Attribute and Entity tables present in CRM 

how can I get this tables?

*This post is locked for comments

  • Suggested answer
    How to get actual metadata for Attributemask field from Audit Table ?
    Hi 

    You can query the API for the EntityDefintions with your Entity name 

    Please update the org and entity details and you should be good

    https://<org>.crm.dynamics.com/api/data/v9.2/EntityDefinitions(LogicalName='<entity_name>')/Attributes?$select=LogicalName,ColumnNumber

    Example:

    https://<org>.crm.dynamics.com/api/data/v9.2/EntityDefinitions(LogicalName='account')/Attributes?$select=LogicalName,ColumnNumber

    Since you are intrested in the Audits, Better to filter out only the audit enabled fields

    https://org.crm.dynamics.com/api/data/v9.2/EntityDefinitions(LogicalName='<entity_name>')/Attributes?$select=LogicalName,ColumnNumber,IsAuditEnabled&$filter=IsAuditEnabled/Value eq true

    Example:

    https://<org>.crm.dynamics.com/api/data/v9.2/EntityDefinitions(LogicalName='account')/Attributes?$select=LogicalName,ColumnNumber,IsAuditEnabled&$filter=IsAuditEnabled/Value%20eq%20true

    Documentation :  https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query-metadata-web-api

    PS: I have only explored the support for v9.2, v9.0 but it should for most versions
  • Suggested answer
    ajithnairms Profile Picture
    ajithnairms 32 on at
    RE: How to get actual metadata for Attributemask field from Audit Table ?

    I have been searching answers to this. It is here.

    carldesouza.com/.../

    https://<CLIENT_URL>/api/data/v9.2/EntityDefinitions(LogicalName='<TABLE_NAME>')/Attributes?$select=SchemaName,ColumnNumber&$filter=(SchemaName eq '<FIELD_NAME>')

  • Suggested answer
    Thangamani Profile Picture
    Thangamani 507 on at
    RE: How to get actual metadata for Attributemask field from Audit Table ?

    Hi,

    Pls chk this Link for the details.

    community.dynamics.com/.../ms-crm-audit-database-table-details

    Regards,

    Thangamani

  • Suggested answer
    Thangamani Profile Picture
    Thangamani 507 on at
    RE: How to get actual metadata for Attributemask field from Audit Table ?

    Hi Sri,

     Attribute table is available for all the attributes.

    String map table is there for option set attribute details and

    Entityview table stores the entity information.

    Regards,

    Thangamani

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans