cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Plain Text Content Control as Currency

Greetings,

After watching this video...

https://flow.microsoft.com/en-us/blog/intermediate-flow-of-the-week-create-pdf-invoices-using-word-t...
...I became inspired, and started working on a Flow that would generate Purchase Order Requests.  Following the instructions as per the video, I've created a Word Document with several Plain Text Content Controls:

PO_Doc.jpg

Everything goes as planned until we hit the first entry that I need formatted as currency.  In the example above, the entry for "Price1" will not allow me to have a floating zero..."43.60" immediately becomes "43.6".  The data is pulled from a Sharepoint list which has the column settings for "Currency".

From what I have been able to research, the only way to accomplish formatting currency in this way is through a macro.  I've attempted to apply a macro in several places in the document, and have not had any success.  Any insight would be greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

@Jason_Collet  did you resolve this?

 

You might be able to use the formatnumber or float expressions?

View solution in original post

5 REPLIES 5
Highlighted
Community Support
Community Support

Hi @Jason_Collet ,

 

Have you seen the format of this field value in Flow run history?

We need to determine if the field has been formatted in Flow or changed when it is inserted into Word Template.

If it is the former, we may be able to make changes in Flow; if it is the latter, I am afraid that Flow is not working.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted

Thank you for the prompt reply.  Just ran the flow again, and you are spot on...that is the culprit:

Flow.jpg

For good measure, here is the "Populate a Microsoft Word Template":
FlowPop.jpg
Is there an Expression I am supposed to apply against the Dynamic Content to keep the column settings as Currency?

Highlighted

From my research (please see the other posts in this thread), it is indeed the *former*--the field has been formatted in Flow.  What changes may be made in Flow to allow for currency format?

Highlighted

@Jason_Collet  did you resolve this?

 

You might be able to use the formatnumber or float expressions?

View solution in original post

Highlighted

My apologies, did not see the reply.  I most certainly *did* get this resolved.  My initial solution was a convoluted mess (it worked but man was it a spaghetti tangle) but once the FormatNumber came out, I was able to revise the flow to what I had hoped for.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Users online (2,648)