My requirement: We need to create a journey in real-time marketing and allow users to publish the created journey based on user security role. If the user has the specified security role, then he should be able to publish the journey. If not, we need to show error saying that users do not have permissions to publish the journey.
I created new plugin on update of journey's status. If the status changes from draft to publishing, then I am checking whether the logged-in user has specified security role. If yes, then we are allowing users to publish the journey else throwing error that the user does not have specified security role to publish the journey. While publishing the journey that is on click of publish button our plugin is not getting triggered. I have registered plugin on update of status on journey and used post image on journey status.
Can anyone help me with this?
Thank you.
Hi Bharathi,
Please refer to the following link to debug the plugin:
Or you can try to use real-time workflow, which has one action-- stop workflow.
When we add the “Stop Workflow” step as the name suggests, the workflow stops. When stopping the workflow, you can choose one of two options;
You need select cancel status, then an error message will be surfaced to the end user.
You can refer to the following blog, which provides an example of a situation much like yours:
https://readyxrm.blog/2017/04/15/stopping-deactivation-of-records-in-dynamics-365/
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,836
Most Valuable Professional
nmaenpaa
101,156