cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jsalaz1989
Helper I
Helper I

Environment variable not updating with current value

Hi,

 

Within an unmanaged solution I'm trying to update my environment variable from its default to its current value but it does not seem to be working consistently.

 

I have two flows in my dev environment which are reading the default value properly. I then export this as an unmanaged solution into prod (I don't export as managed for the reasons explained in another post of mine). In prod, I update the environment variable with a current value. I believe the first time this happened, the variables were updated well. However, I went back to dev to make some modifications and re-imported it into prod. In prod, both the default and current value still appears. However, when I ran my flows, they were still grabbing the default value and ignore the current value.

 

In order to hopefully make the platform realize that I want the current value, I tried a dumb trick of cutting the current value and re-pasting it exactly back into the current value field. This causes the Save button to become enabled, letting me click on it and resulting in the spinner saying 'Updating variable'. Then I ran my two flows again and the first one now seems to be grabbing the current value. However, the second one is still reading the default value.

 

In other words, it seems that even if a solution already contains a current value, if you re-import it, it is actually going to grab the default. You need to re-save for the prod environment to see the current value. However, this only seems to work for one of the flows in this solution, but not the other.

 

Either I'm not doing something right or there is a bug here.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Confirmed I have the exact same issue. According to microsoft importing or turning off/on the flow should update the environmental variable, but it does not. Only editing and resaving works for me.

Tristan_Reeves_0-1620660261421.png

https://docs.microsoft.com/en-us/powerapps/maker/data-platform/environmentvariables

 

 

View solution in original post

3 REPLIES 3
Jsalaz1989
Helper I
Helper I

Tinkering a little more I think I'm seeing that the problem is not having to re-save the current values for the environment variables. The issue may actually be that you need to re-save the flows using them. Does this sound normal to anyone?

Confirmed I have the exact same issue. According to microsoft importing or turning off/on the flow should update the environmental variable, but it does not. Only editing and resaving works for me.

Tristan_Reeves_0-1620660261421.png

https://docs.microsoft.com/en-us/powerapps/maker/data-platform/environmentvariables

 

 

View solution in original post

Wow ok, I've read that page a few times now but I didn't put the two and two together. Well, sounds like MS is aware of this and also I guess resaving is the real solution. Thanks!

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (47,886)