Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Business Rule + Deployment Issue + When lookup is set

Posted on by 437

Hello All,

I've created few business rules in my DEV org, in which I've checked condition on the basis of some  lookup value like,

If Account="A.Datum" then .....

If Department = "AC" then.................

Basically I've  used master data as value to lookup to check condition . Same master data is present in my UAT org but obviously with different GUID. So When I deploy my Business Rules (BRs) into UAT and business rules fires, it gives me an error because the Guid of value which is set in BR is with old GUID and is not presen in UAT.  Hence, to resolve it , I've to go to BR and then deactivate it and then set lookup value again and then activate (Now it works fine...:)....:P...:D)

The same goes for Workflow also (Workflows in which a condition is checked on the lookup basis , goes into draft status when we deploy it in another org)

Are there any alternatives to avoid these kind of situations? Is there any other option to deploy BR & workflows which need not be reactivated again?

What is the best way to deploy BR & workflows?



*This post is locked for comments

  • Verified answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Business Rule + Deployment Issue + When lookup is set

    Thanks Ravi for jumping in.

    Yes prashant , this tool will keep the same guids and easy to use.

    refer to the link which Ravi has shared & www.youtube.com/watch

    mark my suggestion as verified if helpful to close this thread.

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Business Rule + Deployment Issue + When lookup is set

    Hi Prashant,

    Yes, Data Migration Utility is generally used to migrate the master/ reference data across environment.

    Please refere the below link which has a video on this-

    community.dynamics.com/.../264534

    You can also search for other articles as well if you like on the same.

    Hope this helps.

  • Prashant Wani Profile Picture
    Prashant Wani 437 on at
    RE: Business Rule + Deployment Issue + When lookup is set

    Thanks for your quick reply Rawish. I appreciate your suggestions and will try to follow the same in future.

    Can we transfer master data with same GUID in all the env using Data Migration Utility? I've never tried that , coz whenever we import  data using excel , we remove Guid column.

  • Verified answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Business Rule + Deployment Issue + When lookup is set

    Hi Prashant,

    We have faced this issue when i started a project which was in early phase.

    apparently - there is no other better way to deploy it. few things we i tried and finally everything is smooth now.

    1. try your level best not to hard code anything in the business rule or workflow.

    2. you must keep guids same in all environments - that what i did ( it would be hectic one time job but trust me life will be smooth post that)

    you can use migration utility tool available in the SDK to deploy your reference data.

    one thing is to note that - i got time to do eveyrthing in SIT phase of the project . But it would be big challenge for you to do do it when you are already in UAT/production.

    may be you can do reverese of what i did - why dont you take the PROD/UAT ref data using migration utility and use that in DEV ?

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

Featured topics

Product updates

Dynamics 365 release plans