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,...
Suggested Answer

How to check conditions with hard coded user name using Ms flow(Power Automate)??

(0) ShareShare
ReportReport
Posted on by 440

Hi,

I have a Ms flow to send the email to specific teams, In this I need to add a condition like, I don't want to send the email if lead is created by some specific users.

So here I am adding a condition like created by(from lead) is not equal to /systemusers('user name') , but this is giving the syntax error, so what is the right syntax to check hard coded users name.  

Means I need to check hard coded users name only with created by condition. 

I have the same question (0)
  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Moderator on at

    Hello Himanshu Kamboj,

    Please use below snippet in the filter and replace with the GUID of the user record.

    _createdby_value eq ADAED967-A0D5-EC11-A7C5-00224809FE01

    pastedimage1656423982307v1.png

    Thank you,

    Amit Katariya

  • Himanshu Kamboj Profile Picture
    440 on at

    Hi amit,

    I can do this but my problem is like when I will move this ms flow to stage, pre-prod and prod then I need to change the user id every time, that's why m using here the user name only.

    and I want to check the condition for user name because name will be same in all environment.

  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Moderator on at

    Then you will have to add 1 more step which is Get row by ID. Using this fetch the user record and check the full name of the user and perform your logic.

    pastedimage1656491096022v1.png

    Thank you,

    Amit Katariya

  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Moderator on at

    Have you implemented your requirements?

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 165

#2
ManoVerse Profile Picture

ManoVerse 161 Super User 2026 Season 1

#3
Zhilan Profile Picture

Zhilan 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans