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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / If Assigned to Conditi...
Power Automate
Answered

If Assigned to Condition Not Working Using Length

(0) ShareShare
ReportReport
Posted on by 221

My condition to check length of assigned to person field was working and stopped with this error. 

 

EMA03356_0-1713876524334.png

Please help!

 

EMA03356_1-1713876553149.png

 

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @EMA03356 

     

    Could you pls share the details of length function used in Condition action?

     

  • EMA03356 Profile Picture
    221 on at
    length(outputs('Get_item')?['body/AssignedTo'])
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @EMA03356 

     

    It looks like you have modified user field from single user to multi select user.

     

    You can try using the below expression in the condition action:

    ManishSolanki_1-1713879081630.png

    Expression used on left side:

    outputs('Get_item')?['body/AssignedTo']

    Expression used on right side:

    null

      

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • EMA03356 Profile Picture
    221 on at

    It looks like that worked and now I'm receiving this error later in my flow for apply to each. 

     

    EMA03356_0-1713879258959.png

     

  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @EMA03356 

     

    You don't need "Apply to each" action as 'AssignedTo' has become object instead of array. You need to use dynamic content window to pull AssignedTo user object details in the subsequent actions.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • EMA03356 Profile Picture
    221 on at

    How do I remove all apply to each without ruining everything? It won't let me take it out and delete the apply to each. 

  • EMA03356 Profile Picture
    221 on at

    Can I just change it back to a multi select field and it will work as originally setup?

  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at

    Yes, changing back to multi select should work but in that case, pls don't forget to revert original length function in condition action.

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard