cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kpreeti1256
Helper II
Helper II

Format number as string in Power Automate

Hi Community Members,

 

I am facing an issue in generating text from a number. I have a HTTP Request function which returns the response as:

{

SNo: 1,

...

}

 

In canvas App, we can convert this number to 0001 using Text(response,"0000") but I am not able to find this function in flow.

 

Is there any way I can achieve my needs?

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hi @Kpreeti1256 

 

To format the number into any format, you can use the Format Number action. You can pass the HTTP response key and specify the format you need.
 
fffr.PNG

 

Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
ScottShearer
Super User
Super User

@Kpreeti1256 

If your goal is to convert to a string, try using the string() expression.

 

 

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

Scott

Thanks @ScottShearer for the quick response.

 

I am not able to convert it using string function. I just returns the same number but as a string.

 

 

yashag2255
Dual Super User II
Dual Super User II

Hi @Kpreeti1256 

 

To format the number into any format, you can use the Format Number action. You can pass the HTTP response key and specify the format you need.
 
fffr.PNG

 

Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (2,514)