Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dynamics CRM Passing Actual Guid to custom workflow activity

Posted on by

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
    Kalpavruksh D365 CoE 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
    sai123456 320 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
    Pawar Pravin 5,227 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
    Priyesh 7,392 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

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans