Hi,
I'm working on a Journey Approval Process in Dynamics 365 Real-Time Marketing. The business requirement is:
- When a Journey is created, it goes through an approval process
- Once approved, a custom boolean field tbs
_allowpublishedis set totrue - If a user tries to Publish/Go Live the Journey without approval, it should be blocked with an error message on the form
What I've implemented:
A plugin (JourneyPlugin) that throws InvalidPluginExecutionException to block publishing:
if (!allowPublish)
{
throw new InvalidPluginExecutionException(
"This Journey has not been approved for publishing.");
}
What's working:
- Plugin is firing correctly
- Error is visible in Plugin Trace Logs
titc_allowpublishedvalue is being read correctly
- The error message is not showing on the Journey form
- The Journey either publishes successfully OR fails silently with no user-facing message


Report
All responses (
Answers (