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 / Use variables referenc...
Power Automate
Unanswered

Use variables references in file content

(0) ShareShare
ReportReport
Posted on by 8

Hi all,

I have the same problem of this post:

https://powerusers.microsoft.com/t5/Building-Flows/Access-Variable-at-Runtime/m-p/351891

 

I want:

1) to save on Sharepoint my templates.

2) read their content

3) substitute variable (I cannot find a solution to this issue)

 

The proposed solution is not so clear.

 

This is my flow:

Issue.PNG

 

My file content is:

 

 

This is the variable in File: @{variables('VariableInFile')}

 

 

 

As you can see in the last compose the variable was not replaced.

Categories:
I have the same question (0)
  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @AnthonyDes,

    Do you want to set the input of compose as variable?

    You can add the variables by clicking manually.

    vmingkzmsft_0-1689586045320.png

    What's more, please offer me your screen shot in edit mode, In order to better help you.

     

    Best Regards,

    Kyrie

     

  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @AnthonyDes 

     

    You will have to write expressions in expression tab.

     

    See Below:

    You are using it as this:

    Sundeep_Malik_0-1689586062566.png

    But instead select the compose, then click on expressions. And write the expression there:

    Sundeep_Malik_1-1689586133096.png

     

    But before pressing ok remove @ and {} brackets.

    Sundeep_Malik_2-1689586167771.png

     

    And it should look like this:

    Sundeep_Malik_3-1689586184005.png

     

    I hope this helps 🙂

     

  • Anthony Des Profile Picture
    8 on at

    The input of compose inside my flux is the file content.

    I am using compose in this case only to demonstrate that variable "VariableInFile" is not changed

  • Anthony Des Profile Picture
    8 on at

    See my answer above: the input of my compose is a file content. 

  • Anthony Des Profile Picture
    8 on at

    This is part of my flux in power app edit mode, in the first post was in test mode.

     

    Issue2.PNG

  • Anthony Des Profile Picture
    8 on at

    Tried your solution, but it cannot work

     

    Issue3.PNG

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 459

#3
11manish Profile Picture

11manish 382

Last 30 days Overall leaderboard