cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Divya_R
Frequent Visitor

How to update an Environment Variable value from canvas App?

Hi Team,

 

I am creating a canvas app in Teams. 

 

Looking for steps on how to update/ write back the environment variable current value from canvas app..

 

Appreciate your help!!

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @Divya_R ,

 

There are 2 tables .

vxiaochenmsft_0-1635490837668.png

For example :

Add a button control and set its Onselect property to:

Patch('Environment Variable Definitions',First('Environment Variable Definitions'),{'Default Value':"GGG"})

 

Best Regards,

Wearsky

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @Divya_R ,

 

There are 2 tables .

vxiaochenmsft_0-1635490837668.png

For example :

Add a button control and set its Onselect property to:

Patch('Environment Variable Definitions',First('Environment Variable Definitions'),{'Default Value':"GGG"})

 

Best Regards,

Wearsky

Divya_R
Frequent Visitor

Hi @v-xiaochen-msft,

 

Thanks so much. It really helped.

 

Instead of FIRST, I will prefer to choose lookup to find the record in case if there are multiple environment variables.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (2,795)