Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 7v0m4YOLCT4qbqLozka0DI
Power Automate - General Discussion
Answered

Plain Text Content Control as Currency

Like (0) ShareShare
ReportReport
Posted on 29 Jul 2019 21:17:14 by 10

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:

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.

  • Jason_Collet Profile Picture
    10 on 15 Jun 2020 at 21:27:15
    Re: Plain Text Content Control as Currency

    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.

  • Verified answer
    bradleyhorton Profile Picture
    187 on 01 Jun 2020 at 12:41:02
    Re: Plain Text Content Control as Currency

    @Jason_Collet  did you resolve this?

     

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

  • Jason_Collet Profile Picture
    10 on 05 Aug 2019 at 14:43:11
    Re: Plain Text Content Control as Currency

    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?

  • Jason_Collet Profile Picture
    10 on 30 Jul 2019 at 14:59:43
    Re: Plain Text Content Control as Currency

    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?

  • v-bacao-msft Profile Picture
    on 30 Jul 2019 at 06:23:59
    Re: Plain Text Content Control 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,

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,763 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard