Dot Net Archives -

Category Archives: Dot Net

C# Code to retrieve lookup value id from target entity in D365 CE.

Let us consider below example as use case We have Plugin that triggers on Update of Contact Table and wanted to retrieve Customer related to Contacts. Customer is Lookup field on Contact Table. Hence here our target entity is Contact. Code – Entity targetEntity = (Entity)context.InputParameters[“Target”];   Guid ContactId = targetEntity.Id; Using the above code … Continue reading C# Code to retrieve lookup value id from target entity in D365 CE.

Share Story :

Secured By miniOrange