
hi,
i have a requirement to catch the guid of a record by using attribute name of an entity in c#.
In javascript we use getId(),but how can i catch using c#?
*This post is locked for comments
I have the same question (0)Hi Teja,
If you want to get the current record id , please see below
if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity)
{
Entity entity = (Entity)context.InputParameters["Target"];
var guid=entity.Id }
Please have a look at below link
https://community.dynamics.com/crm/f/117/t/220820
Hemant