web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Perform string interpo...
Power Automate
Unanswered

Perform string interpolation on existing, externally loaded text.

(0) ShareShare
ReportReport
Posted on by 11

I'm trying to load text from an external source (txt file, database, etc) that ALREADY has Power Automate identifiers in it and I want them interpolated, but they're just coming out literal.

 

Example target string:

Lorem ipsum @{variables('varMap')?['dolor']} sit amet, consectetur adipiscing elit.

 

Where varMap is an Object variable that contains { "dolor": "D0L0R" }

 

This works as expected if I put the target string in a Compose following the Object variable init. But if I load that text from external source, then put its output in the Compose then the variable/dynamic text is not interpolated. Is there a way to force this to happen, like eval() in many scripting languages. Either another action or function?

Categories:
I have the same question (0)
  • Chriddle Profile Picture
    8,697 Super User 2026 Season 1 on at
    json(your_string)
  • fuo Profile Picture
    11 on at

    That fails. The input string is plain text (not json), loaded from external file.

     

    This is my flow, the "Get file content" action is loading "Lorem ipsum @{variables('varMap')?['dolor']} sit amet, consectetur adipiscing elit." from a OneDrive file. The output I want is "Lorem ipsum D0L0R sit amet, consectetur adipiscing elit." but I'm just getting the original, uninterpolated text containing the code.

    fuo_1-1673878101097.png

     

     

    fuo_0-1673878063181.png

     

  • Chriddle Profile Picture
    8,697 Super User 2026 Season 1 on at

    Now I got it 🙂

    Unfortunately, I don't know of anything better than string replacement

    replace(
    	outputs('Get_file_content')['body'],
    	'@{variables(''varMap'')?[''dolor'']}',
    	variables('varMap')?['dolor']
    )

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 589

#3
Haque Profile Picture

Haque 522

Last 30 days Overall leaderboard