Greetings,
After watching this video...
https://flow.microsoft.com/en-us/blog/intermediate-flow-of-the-week-create-pdf-invoices-using-word-templates-with-microsoft-flow/
...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:
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.
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.
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?
Thank you for the prompt reply. Just ran the flow again, and you are spot on...that is the culprit:
For good measure, here is the "Populate a Microsoft Word Template":
Is there an Expression I am supposed to apply against the Dynamic Content to keep the column settings as Currency?
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,
WarrenBelz
146,763
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional