deepakkumar1984 / XrmToolBoxPlugins

Tools for Dynamics CRM
MIT License
33 stars 36 forks source link

Fixed cast error as AutidDetail not always can be cast to AttributeAu… #51

Closed pagex closed 10 months ago

pagex commented 2 years ago

Added check if correct type: if (!(response.AuditDetail is AttributeAuditDetail)) continue; Before casting: AttributeAuditDetail attributeDetail = (AttributeAuditDetail)response.AuditDetail; As AuditDetail can be of: Microsoft.Crm.Sdk.Messages.AttributeAuditDetail Microsoft.Crm.Sdk.Messages.RelationshipAuditDetail Microsoft.Crm.Sdk.Messages.RolePrivilegeAuditDetail Microsoft.Crm.Sdk.Messages.ShareAuditDetail Microsoft.Crm.Sdk.Messages.UserAccessAuditDetail

goomba27 commented 1 year ago

I am running into this error. How can I get this update on the XrmToolBox. Looks like that plugin hasn't been updated since 2019.

deepakkumar1984 commented 1 year ago

Please take the clone of this repo, do the fix and update and merge with this branch by raising PR

On Fri, Jan 6, 2023 at 9:16 AM goomba27 @.***> wrote:

I am running into this error. How can I get this update on the XrmToolBox. Looks like that plugin hasn't been updated since 2019.

— Reply to this email directly, view it on GitHub https://github.com/deepakkumar1984/XrmToolBoxPlugins/pull/51#issuecomment-1372888237, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQJAKIQGGAZNNXSOW6VMFDWQ5FL5ANCNFSM5HUUOJGA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Regards, Deepak