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 Apps / Using Flow Variables a...
Power Apps
Answered

Using Flow Variables after they are passed back to PowerApp without running flow again.

(0) ShareShare
ReportReport
Posted on by 101

Hello Power Appers,

 

I Just start using flows in my apps, 

That said I have a few question I have not found an answer to, and or fix for. 

 

I have a Flow that Collects Variables from a PowerApp button. The flow creates a Sharepoint item based on the variables sent from power apps,  and then passes that Items ID back to Power apps. I want to use this Variable to patch some other list but it seems that every time I do so it reruns the Flow and creates more of the original item

 

The code looks as such . 

ChrisSullivan_0-1616186132221.png

 

 

 

 

 

 

 

 

 

 

 

ChrisSullivan_2-1616186221746.png

It seems like every time I use the CopyItemID variable, It creates an new item in the original list. Like it is running the flow every time I use the variable. Is there a way to use this variable without it running the flow again?

 

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @ChrisSullivan 

    I believe you are calling are calling your flow twice , Both 1 and 2 are calls to your flow so you need to remove Number 1 and Keep number 2 as this sets the value you are returning from your flow

    Mira_Ghaly_0-1616210974747.png

     

  • ChrisSullivan Profile Picture
    101 on at

    Mira,

    Thanks for the response! This is exactly what I thought at first. Odd thing is when I remove the first call. I get red X and squiggles. 

    Its as if Powerapps has no idea what the Variable is when I only put it in Set().

    ChrisSullivan_0-1616418518751.png

    ChrisSullivan_1-1616418537796.png

     

    Any thoughts?

     

  • ChrisSullivan Profile Picture
    101 on at

    Mira,

    Thanks for the response! This is exactly what I thought at first. Odd thing is when I remove the first call. I get red X and squiggles. 

    Its as if Powerapps has no idea what the Variable is when I only put it in Set().

    ChrisSullivan_0-1616426844651.png

     

    ChrisSullivan_1-1616426844652.png

     

     

    Any thoughts?

  • Verified answer
    Mx81 Profile Picture
    860 on at

    I think there is a missing „)“ in your first „if“ statement. Bevor your “;”

  • ChrisSullivan Profile Picture
    101 on at

    Wow, Thank you max81. Stupid me. 
    You stare at these things long enough, your guaranteed to miss Newbie mistakes like this! 👍


  • Mx81 Profile Picture
    860 on at

    I did the same mistakes also several times so I’m used to look for missing brackets. 😉

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#2
11manish Profile Picture

11manish 192

#3
Valantis Profile Picture

Valantis 128

Last 30 days Overall leaderboard