Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics CRM Passing Actual Guid to custom workflow activity

(0) ShareShare
ReportReport
Posted on by 6

Hello All Experts,

I have a requirement where i need to pass in the actual Guid of the record rather than name of the record while passing dynamic input parameter to the custom workflow activity.

I have created a workflow which runs on creation of the record, also which takes some input parameters, how can i get the actual guid of the record rather than the guid of the record.

*This post is locked for comments

  • Suggested answer
    Kalpavruksh D365 CoE Profile Picture
    2,545 on at
    RE: Dynamics CRM Passing Actual Guid to custom workflow activity

    Hi,

    Please review the below link:

    http://develop1.net/public/post/2014/08/02/Polymorphic-Workflow-Activity-Input-Arguments

  • sai123456 Profile Picture
    324 on at
    RE: Dynamics CRM Passing Actual Guid to custom workflow activity

    Guid recordID = context.PrimaryEntityId;

    This should return the GUID of the record the workflow triggered on.

    Thanks,

    Sai

  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at
    RE: Dynamics CRM Passing Actual Guid to custom workflow activity

    Hi ,

    Could you please explore more on "how can i get the actual guid of the record rather than the guid of the record." this ?

  • Suggested answer
    Priyesh Profile Picture
    7,396 User Group Leader on at
    RE: Dynamics CRM Passing Actual Guid to custom workflow activity

    Hi,

    From my understanding it looks like you want to pass the child records (let's call it Entity Custom) of Entity A to Entity B.

    So, in your Custom Workflow Assembly, you'll need to make a request to CRM to fetch the Child records  i.e. Entity Custom's records where the Entity A is the GUID which you have.

    You'll get an EntityCollection in your code which you can use as you want. This will even go out as an Output Parameter (you can loop through and retrieve IDs from the Entity collection and use it further)

    Hope this helps.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans