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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow to copy item from...
Power Automate
Answered

Flow to copy item from list A to list B if the supplier number is not longer than 5 digits

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello, 

 

I am trying to create a flow that copies a new created element from List A to Liste B if the condition that the supplier number is not longer than 5 digits is fullfilled. I am having difficulties with creating the expression for the condition. 

Could somebody help me?

 

Thank you in advance.

Categories:
I have the same question (0)
  • Verified answer
    RobElliott Profile Picture
    10,391 Super User 2026 Season 1 on at

    @Anonymous in the condition add an expression of 
    length(outputs('Get_item')?['body/Supplier']) is less than 

     

    If the supplier number has 5 or less characters it will go down the green if yes channel, otherwise it will go down the red if no channel.

     

    2-Flow.png

     

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi there, 

    thank you for your fast reply. Unfortunately I get this error message: 

     

    powersebb11_0-1676457935752.png

     

  • RobElliott Profile Picture
    10,391 Super User 2026 Season 1 on at

    @Anonymous that's because there's nothing in the supplier number column. Make sure the number column is a single line of text column.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The supplier number column in my SharePoint list contains data and is if the type singe line of text column 

  • RobElliott Profile Picture
    10,391 Super User 2026 Season 1 on at

    Could you post a screenshot of the condition.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    length(outputs('Element_abrufen')?['body/Lieferanten Nr.'])
    powersebb11_0-1676459017744.png

     

  • RobElliott Profile Picture
    10,391 Super User 2026 Season 1 on at

    It's the column name that's causing the problem in the expression. I created a new column called Supplier Nr. so that it was the same style as yours and I added the expression as 

    length(outputs('Get_item')?['body/Supplier Nr.']) and the flow failed with the same error as you got. However, when I used the internal name of the column, length(outputs('Get_item')?['body/SupplierNr_x002e_']), it ran successfully So check the internal name and use that in your expression.
    3-Flow.png

     

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Great, it works! Thank you very much! 

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 224 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 181 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard