Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Facing issue on journey entity in real-time marketing

(0) ShareShare
ReportReport
Posted on by 5

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.

  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: Facing issue on journey entity in real-time marketing

    Hi Bharathi,

    Please refer to the following link to debug the plugin:

    https://learn.microsoft.com/en-us/troubleshoot/power-platform/power-apps/dataverse/dataverse-plug-ins-errors  

    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;

    1. Succeeded
    2. Canceled (Cancelled)

    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/ 

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans