Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

How to use Users in workflows? (guids are not the same over instances)

Posted on by 26

The primary keys of the Users are not the same over the different instances we have. 

Therefore, it's not possible to have logic based on Users in workflows, as they cannot be deployed. 

Any thoughts on this? Is there a possibility to make the primary keys the same? Is there a workaround? 

Thanks in advance! 

  • renjithpradeep Profile Picture
    renjithpradeep 325 on at
    RE: How to use Users in workflows? (guids are not the same over instances)

    May be you can try out one of the below approaches if that fits in.

    • You can always try to use teams instead of using users directly.
    • If teams won't fit in for you, try to use a unique code (like an employee id or something) to get the user.
    • Have an entity having the user as a look up and using that entity for your purpose inside the workflow.

    Hope that helps.

  • Kamaldeep Singh Profile Picture
    Kamaldeep Singh 80 on at
    RE: How to use Users in workflows? (guids are not the same over instances)

    While it depends how many users you want to map in workflow, too many CRM users might be a maintenance trouble too. If you need to reassign or send email or similar kind of action, you can always use Teams (Team Names). 

    A workaround is to use Employee Code/ User ID form the User Form (Reuse existing field or create custom field). Use this field to match your user and then write a code to do the next action. 

    Hope this helps. 

  • RE: How to use Users in workflows? (guids are not the same over instances)

    The users are created in Office 365 and thus automatically added to the instances. But no, they don’t have the same id

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to use Users in workflows? (guids are not the same over instances)

    I think if you create the users in office admin center (if you are using D365 online) then the user will have the same id across all environments. If not, then yes, users won't have the same id. You can work around that by using the email of the user in your WF logic instead assuming the user has the same email in all environments. 

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans