Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Getting Deleted Record Id With a Custom Workflow

$
0
0

Hi,

I have a custom workflow to update a custom entity' two fields when you delete a row from the sub grid(another custom entity). The problem I am struggling is I can not get the deleted record id neither with 

Entity entity = (Entity)context.InputParameters["Target"];  
string id = entity.Id.ToString();

nor 

IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>();
string id =  context.PrimaryEntityId.ToString();

context returns null all the time. Can someone please give me any suggestion about it.
Many thanks.


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>