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
Hi,
Please review the below link:
http://develop1.net/public/post/2014/08/02/Polymorphic-Workflow-Activity-Input-Arguments
Guid recordID = context.PrimaryEntityId;
This should return the GUID of the record the workflow triggered on.
Thanks,
Sai
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 ?
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.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6