web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Real time child workflow doesn't display cancelling message

(0) ShareShare
ReportReport
Posted on by 12

Hi,

any thoughts on this interesting issue?

There is a timecard entity. Related (1:N) are timecard lines.

When saving a timecard, I'd like a real time workflow to check each and every timecard line. So I use a custom workflow step (AG Utilities) to distribute the child workflow to all related timecard lines. In the child workflow I cancel the workflow if a specific condition is met.
Even though both workflows are synchronous/in real time, the message in the cancellation step isn't displayed. In fact, nothing is displayed. The record is saved without any problem (which I wanted to prevent).

If I change both flows to asynchronous, I can see that the condition is met and the workflow is cancelled so the data is right.

What am I overlooking here?

Thanks for your thinking along with me.
Regards,
Jeroen

I have the same question (0)
  • Verified answer
    Kokulan Profile Picture
    18,054 on at

    Hi

    It is likely that when your workflow is real-time, since everything happens in the same transaction, at the time your condition step is executed, the value that satisfies the condition for Cancel step is not there. However, when its a background workflow, it triggers aysnc and separate to main transaction and when it executes the same step, it can see the value committed to DB

    You could add a step to the workflow just above where you have this condition and save field value you are using in the condition in a note or task or in some fields. This would confirm if the issue. You then have to review your condition and see how you can do the check.

    if you still have issue in getting this working, please share some screen grabs of workflow steps and we should be able to help.

  • Jeroen J Profile Picture
    12 on at

    I totally get what your trying to say. Even though you did solve another issue that I was wrestling (thanks for that!), it's not valid for this one: the condition that's checked is static and doesn't change.

    I'm affraid my screenshots won't help us any further, but maybe you can help me a bit further (sorry for the Dutch, if any translation needed, let me know).

    Parent Flow, only calling the child for every related line:
    2019_2D00_11_2D00_11_5F00_15_2D00_07_2D00_39.jpg
    Child Flow, checking a relationship between two values on the timeline record, if it's not there it should cancel and show message:
    2019_2D00_11_2D00_11_5F00_15_2D00_07_2D00_49.jpg

    Thanks!
    Jeroen

  • Jeroen J Profile Picture
    12 on at

    Wait, hold on! In the parent flow it runs the child on every related record. Am I right if I state that this relationship just isn't there yet?

    So does your first comment solve this issue too?

  • Jeroen J Profile Picture
    12 on at

    You aced it right away, Kokulan. Thanks for your quick response and solution!

    Regards,

    Jeroen

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 180 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans