Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

 

  • Verified answer
    ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: If Assigned to Condition Not Working Using Length

    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.

     

     

  • EMA03356 Profile Picture
    221 on at
    Re: If Assigned to Condition Not Working Using Length

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

  • EMA03356 Profile Picture
    221 on at
    Re: If Assigned to Condition Not Working Using Length

    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. 

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: If Assigned to Condition Not Working Using Length

    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
    Re: If Assigned to Condition Not Working Using Length

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

     

    EMA03356_0-1713879258959.png

     

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: If Assigned to Condition Not Working Using Length

    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
    Re: If Assigned to Condition Not Working Using Length
    length(outputs('Get_item')?['body/AssignedTo'])
  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: If Assigned to Condition Not Working Using Length

    Hi @EMA03356 

     

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

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492