Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to replace real-time workflow that prevents record save on invalid related data?

Posted on by 20

I have a business requirement to perform real-time (synchronous) data checking which is more complicated than a Business Rule will allow:

- If {lookup field value} in {related record} is equal to {lookup field value} in {other related record}, prevent save and alert the user.

- On save, update {lookup field value} with {lookup field value} from {related record}

- On save, check if {date in related record} is later than {date in record related to another related record} and if so, update {third related record}

We also use real-time Workflows to name many records on record creation.

Using asynchronous workflows to do this was upsetting many users who thought their changes had not taken place, so performance is not a consideration.

Since Workflows cannot be created in the PowerApps environment, and MS Flow cannot run synchronously, what is the recommended alternative? Is it form-level Javascript? If that is the case, how do we perform data checks on bulk-edited records?

  • RE: How to replace real-time workflow that prevents record save on invalid related data?

    Henry above has confirmed that Processes are still create-able, which fixes my immediate problem.

    For bulk editing records, I'm doing it from a View.

  • Suggested answer
    Pankaj Gogoi Profile Picture
    Pankaj Gogoi 3,177 on at
    RE: How to replace real-time workflow that prevents record save on invalid related data?

    Hi,

    I think you can use JS to perform the check and for updating, you can use a Plugin.

    Can you give more information on how you are bulk editing records?

    Best Regards

    PG

  • Verified answer
    Henry J. Profile Picture
    Henry J. 5,237 on at
    RE: How to replace real-time workflow that prevents record save on invalid related data?

    Hi Robert,

    You can create synchronous workflows in a Common Data Service environment.
    https://docs.microsoft.com/en-us/power-automate/guide-staff-through-common-tasks-processes#when-to-use-workflows

    It's true that we recommend considering Power Automate flows first, but in case what you're trying to achieve isn't possible with flows (e.g. synchronous); then it's OK to consider classic workflows.

    henry

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans