cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Create String of Zeroes

I need to create a string of zeroes of X length.

I know the value of X (it is either 1, 2, 3, 4 or 5). How do I essentially run the Append to Variable a set number of times in my flow?

1 ACCEPTED SOLUTION

Accepted Solutions
ScottShearer
Super User
Super User

@Anonymous 

 

Here are two ways of accomplishing your goal.

First I use a simple expression.  A start with a string of a bunch of zeros and take a number of characters based on your X value.

ZerosString1.jpg

 

In my second example, I use a counter and loop X number of times while appending zeros to a string:

ZerosString2.jpgZerosString3.jpg

 

Please let me know if either of these works for you.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

2 REPLIES 2
ScottShearer
Super User
Super User

@Anonymous 

 

Here are two ways of accomplishing your goal.

First I use a simple expression.  A start with a string of a bunch of zeros and take a number of characters based on your X value.

ZerosString1.jpg

 

In my second example, I use a counter and loop X number of times while appending zeros to a string:

ZerosString2.jpgZerosString3.jpg

 

Please let me know if either of these works for you.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
Anonymous
Not applicable

@ScottShearer 

Thanks Scott. I had thought of the second approach but it seemed overly complex. 

Your first solution was perfect.

thank you!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,439)