Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

The flow stops running to copy a record from the Env 1 to Env 2

(0) ShareShare
ReportReport
Posted on by 65

Hi, 

I have 2 environments and when a record is created in Env 1 I want the flow to copy it to Env 2 but also I want to prevent users to add a record manually in Env 2.

I have added a business rule to show errors when the user selects a certain value from option set and tries to save in Env 2. But now the flow is conflicting with this business rule. 

Is there a way around this issue?

Thank you !

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: The flow stops running to copy a record from the Env 1 to Env 2

    Hi Prajwal,

    The flow copy records from Env1 to Env 2 is creating records in the Env2 actually.

    For the business rule, you can check the scope:

    1. Specific Form
    There will be one of these for each Main Form you have. This Business Rule will only run on the form selected. This is the lowest level of scope and provides flexibility to provide different experiences on different forms.


    2. All Forms
    This Business Rule will apply on any form. You must be on the form, however, for the Business Rule to run.


    3. Entity
    This Business Rule runs server side, and you do not have to be on a Form for the Business Rule to run.

    This Business Rule will run if you make a change programmatically to a record. It acts more like a real-time workflow or plug-in in this way, making it a critical feature.

    pastedimage1663294911241v1.png

    In fact, you can remove 'create' privilege of the entity in the security roles for all users if you want to prevent users to add a record manually in Env 2.

    pastedimage1663295655407v3.png

    If I have misunderstood, can you share the following screenshot of the flow and business rule.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,468 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans