Hello,
I have plugin that executes while updating entity. I want to create (child) custom activity record and link it with current entity.
How can I achieve it?
Thanks,
Ashish
*This post is locked for comments
Hello,
I have plugin that executes while updating entity. I want to create (child) custom activity record and link it with current entity.
How can I achieve it?
Thanks,
Ashish
*This post is locked for comments
Hi Ashish,
There is nothing specific you need to do for this. You can create the custom activity and set the parent entity reference in regardingobjectid field of custom activity.
-----
customactivity["regardingobjectid"] = new EntityReference(parentEntityType, parentEntityId);
--------
Check this plugin sample which create the task entity upon creation of account record -
msdn.microsoft.com/.../gg594416.aspx
Hope this helps
Hello,
Check following url - msdn.microsoft.com/.../gg328416.aspx
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,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156