web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Auto Set User/Team Lookup Field Value Based On Condition Using Power Automate In D365

(0) ShareShare
ReportReport
Posted on by 35

In my project I want to set the user/team lookup field value in Test table with power automate flow.

But I want to not set directly field value, I have one field which is in Account table(Field Name is User) which is also user/team lookup field. I want to set, when the Account table lookup field is user then set field value(As Account Table User) in Test table and when the Account table field value is team then set the same field value(As Account Table Team) in Test table.

Actually when I add Account table look up field is User and I have added expression in user and team respectively it was show the error as below.

Error Message

My Expressions are:

1.for User: 

if(empty(outputs('Get_Account_Details')?['body/_new_user_value']),concat('systemusers(',outputs('Get_a_row_by_ID_-_Get_Account_Owner')?['body/_parentsystemuserid_value'],')'),outputs('User_is_user'))

2. For Team: 

if(empty(outputs('Get_Account_Details')?['body/_new_user_value']),'',outputs('Team_is_team'),)

If I use above expression for User and Account table User(Field) is user then It's properly work but when I use both expressions it was not work.

Currently my Account table field is Team then,

0361.Screenshot_5F00_2.png

I got the team and not getting User which is Correct but when I set this compose in field output it getting the error.

Anyone Help?

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans