Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Workflow deployment solution layer

(1) ShareShare
ReportReport
Posted on by
I have created a workflow process in solution.
In the workflow I am updating the owner of case record where I select service account.
But when I deploy as managed solution to next environment by workflow get deactivate and it's asking me the again change the owner as it's not matches so I edit and again select owner than the unmanaged solution layer get created. So how  to avoid such problems while deployment.
Which is the best i idia to use common service account for all environment. How want to know how to setup service account for environments.
 
  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,850 Super User 2024 Season 1 on at
    Workflow deployment solution layer
    If your workflow includes conditions involving lookup records or attempts to set a lookup field with a specific record, the error may occur because the target environment does not have a record with the same GUID.
  • Suggested answer
    Parvez Ghumra Profile Picture
    Parvez Ghumra 7 on at
    Workflow deployment solution layer
    A service account can have a different GUID unique identifier in each environment, even if it corresponds to the same user account in Entra ID. For this reason, rather than hard-coding that actual user reference in the workflow logic, I would user a Custom Workflow Activity to retrieve the user first (based on username specified as string input), and output an EntityReference to the identified user record. You can then use the output of this custom workflow step (dynamic value) to set the owner/user reference.

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,575 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans