locked
Dynamics 365 Change Tracking: Can the token be accessed in a Plugin? RRS feed

  • Question

  • I have written code to interact with Change Tracking from a service to perform some integration work.

    This is fine.

    I have a requirement to copy the Change Token into a custom field when certain events happen so that we can filter out changes that we don't want to pass to the external system.  I am planning a plugin that will investigate the create / update data and decide whether to copy the token or leave the previous value in the custom field.

    I hope that makes sense.

    Essentially the 3rd party system is sending data back as well and I want to prevent an endless cycle, therefore there will be CRM's Token (used to gather the initial dataset) and then my custom one which might be the same or less and I can determine which records not to process.

    Is the Token available within a record as a field?

    Friday, June 2, 2017 7:48 AM

All replies

  • I don't think the token is available at all through a plugin. It's not supported to register a plugin on the RetrieveEntityChanges message, and the token is not exposed as a field

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Friday, June 2, 2017 4:32 PM
    Moderator