Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

how to create custom activity entity and link (with parent entity) in plugin?

Posted on by 515

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

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: how to create custom activity entity and link (with parent entity) in plugin?

    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

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: how to create custom activity entity and link (with parent entity) in plugin?

    Hello,

    Check following url - msdn.microsoft.com/.../gg328416.aspx

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans