locked
Set the current record GUID to text field using Cutom Workflow. RRS feed

  • Question

  • Hi,

    I want the GUID of the current record on which the WF is running to be set to a Text Field on an Entity.

    Using the Custom WF on record created event, I am setting the PrimaryKey Field of the record to a Text Field.

    But, instead of populating a GUID the Text field is populated with record name.

    Kindly, let me know how do I set the record GUID using custom WF.

    Also let me know, why is Name being set to Text field instead of a GUID, when the PrimaryKey field is mapped to text field?

    PS: I am on CRM 2016.

    Regards,

    Sachin R. Chavan.


    Sachin R. Chavan.

    Wednesday, April 12, 2017 8:51 AM

All replies

  • Hello,

    Unfortunately this function is not available OOB. You have couple of ways to resolve your issue:

    1. Create a custom text field and a plugin that will handle creation of record, get id of it and put to that field.

    2. Other way is to create a custom workflow activity that will extract id of a record and return it as an output parameter.


    Dynamics CRM MVP
    Read My blog
    Subscribe for one of my courses

    Wednesday, April 12, 2017 6:00 PM
    Moderator