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

Business Rule Not Working Across Environments

(1) ShareShare
ReportReport
Posted on by 7

I have a business rule for cases that gets triggered when a specific Account is selected. This Account existed in production, but not my test environment so I manually created it in test, then completed the rule. It worked fine in test, so I exported the solution and moved it into production where it stopped working. While troubleshooting I modified the rule in production and selected the account again, and the rule started working.

My suspicion is the rule is tied to the GUID of the account, not just the account name, and since I manually created the account in dev it has a different GUID than the account in production which is breaking the rule. To test I changed the name of the existing account the rule uses and sure enough the rule still worked after the change.  Does this sound like it's working as expected? If so, any suggestions on how should proceed with this? My concern is that if the rule gets included in future packages it will stop working again until it gets manually created in the production environment.

Any assistance or suggestions would be appreciated.

Thanks!

Bob

I have the same question (0)
  • Verified answer
    empath-e CRM Profile Picture
    1,136 on at

    Hi Bob,

    I thought I would test this one myself and sure enough it does use the GUID and not the value entered. I thought I would test the same scenario but within a Workflow and it is the same, it is looking for the record GUID. I assume this is by design and not a bug? I do work with another CRM solution and this works on record value and not GUID which is why I was interested in testing this myself. 

  • empath-e CRM Profile Picture
    1,136 on at

    Thinking about it, I assume this is to prevent duplicates being returned within the processes when triggered

  • Verified answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    One way to permanently fix this issue is to create account in dev with production guid using oob import and sync this account record in all lower instances.

    You can also use configuration migration tool to create account record with same guid from production to dev

  • Verified answer
    Inogic Profile Picture
    748 on at

    Hi,

    Yes, I can confirm that it is working as expected. When your IF condition is “equal to” a specific lookup field value, the GUID of the lookup record will be “hard-coded” into the rule.

     As a workaround we can use “begins with” operator rather than an “equals”, to compare Lookup value with Text as shown below:

    Note: If there are multiple records exists with the same name, then the logic might not work as expected.

    4784.Business-Rule.png

    OR

    You must keep Guids same in all environments. You can use migration utility tool to deploy your reference data.

    Please find below referenced link to download the tool:

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/download-tools-nuget

    OR

    Try not to hard code anything in the business rule. You can implement the logic using Script.

    Please find below referenced link for client API object model that can be used with JavaScript libraries:

    https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference

     

    Thanks!

  • Suggested answer
    Weir311 Profile Picture
    7 on at

    Thanks for the responses

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