web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

I have the same question (0)
  • 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.

  • 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 ?

  • 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
    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans