Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Is it possible to copy posts from one record to another?

Posted on by Microsoft Employee

Hi,

As per my requirement ,I need to copy the posts from one entity record to another record. Since, we need to set the Regarding objectid when we create a new post, how would it be possible to copy the post on the record  to another record. Because, when we do that the regarding objectid would also have to be changed.

*This post is locked for comments

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Is it possible to copy posts from one record to another?

    As Aric already mentioned that for regarding object you need to write code , so I would suggest create only one plugins which will work for all , you dont need to maintain two thing , in other words make it simple rather complex design for maintainability.

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Is it possible to copy posts from one record to another?

    If you are just copying one record to another, you should be able to do this using a Workflow or Action, without the need to create a plugin. This would have to execute on the Post and not on the regarding object.

    If you need this to run on the regarding object, you will need to use backend logic (Custom Workflow or Plugin)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to copy posts from one record to another?

    Does this seem fine?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to copy posts from one record to another?

    Thanks Goutam.

    I am planning to create the first post using a manual workflow and then once, this post is created ,I would run a plugin to copy the original post.

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Is it possible to copy posts from one record to another?

    Hi,

    Yes it is.

    If you need it real time, you can do it with Plugins on the Create message of the Post that you are creating.

    If you don't need it real time, you can use an Action or a Custom Workflow that will trigger manually (via script) or by an on-demand workflow based on your when you need it to execute.

    Hope this helps.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Is it possible to copy posts from one record to another?

    Hi ,

    I think best options to write a plugin and on post image you can create another record post using current post information.

    But how you will get the regarding object of another record ? does this record is already created or its creating in same event.?

    If you its already there then you just need to retrieve the regarding object and update post.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans