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
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.
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)
Does this seem fine?
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.
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.
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.
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,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156