Hello all,
I need to register crm plugin for two events like create and delete of a single entity not all entity.
that is possible or not
thanks
akram
*This post is locked for comments
Hello all,
I need to register crm plugin for two events like create and delete of a single entity not all entity.
that is possible or not
thanks
akram
*This post is locked for comments
If you got solution Could you please mark as verified to close this thread
Thanks HIMBAP ,
I solved this issue.
Thanks Alagu nellaikumar.S,
I have got solution
Create a new step and configure message as "create" and primary entity choose particular entity
Create a another step and configure message as "delete" and primary entity choose particular entity
In the plugin code also we have make check as
The below code check if target or executing entity is other than account will not allow
Entity entity = (Entity)context.InputParameters["Target"];
// Verify that the target entity represents an account.
// If not, this plug-in was not registered correctly.
if (entity.LogicalName != "account")
return;
Please refer the below link
You can register same plugin for multiple events, and need write your plugin code accordingly to execute code based on message name, you can simply check :
if (context.MessageName == "Create")
{
//code for create
}
if (context.MessageName == "Delete")
{
code for delete
}
thanks
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,321
Most Valuable Professional
nmaenpaa
101,156