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

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 128 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 97

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans