Hi all,
i want to trigger one plugin on change of owner filed on case
i have written code and registered step on assign message.
will i get owner id field in current context?
can anybody share code and steps how to trigger plugin on change of owner field and get the owner field in current context.
Hi Pravin,
after using context.inputparameters["Assignee"]
this gives me only id of the updated owner
i want name of owner this gives me null in name property.
how can go for using post image?
Thnaks Pravin,
can you please explain why we are using Entity Reference there?
Thnaks Pravin,
can you please explain why we are using Entity Reference there?
Both the values you would get into context only
Thanks
I am facing one problem while registering this plugin on Assign.
if i write Entity Reference there i am not able to take Current Entity record Id.i need case id further to get its related records by passing case id in fetch.
what shall i do in this case?
Hmmm. As mentioned above you should have to check entityreference in place of entity.
if (context.InputParameters.Contains("Target") &&
context.InputParameters["Target"] is EntityReference)
I have this line in my code
if(context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity)
my plugin is on Assign message
after debugging code i get result false for above if condition
can anybody clarify this
Hi Mona,
You could get it using entity reference as like:
EntityReference assigneeRef =
(EntityReference)context.InputParameters["Assignee"];
Please refer below url for more details:
thinkingincrm.blogspot.com/.../consume-assign-sdk-message-in-crm-2011.html
I have to write plugin on change of owner id field which will take some related entity records and send email to newly assigned owner.
i am done retrieving related records but not able to get updated owner in current context can anybody please help me .
which assembly reference i need to add for Moniker ?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156