Skip to main content
Community site session details

Community site session details

Session Id : NV4Yb1N922/aeL5ygknS0d
Power Automate - Building Flows
Unanswered

Environment variables do not resolve for sharepoint list views

Like (0) ShareShare
ReportReport
Posted on 6 Sep 2022 11:46:05 by

Hi all,

 

We face a strange behavior when using environment variables for a sharepoint related flow we are working on.

Arvitis_0-1662464295634.png

 

When defining a environment variable for a sharepoint list view (by defining i mean the view's GUID), it does not resolve to the corresponding view upon importing the solution to our  production environment. It works fine in dev etc, but when exporting and importing the solution , it does not resolve, even if we provide the right view values from the target environment.

As a result, the flow is not turned on and cannot even turn it on manually if we dont edit it and reselect the right view this time.

 

Anyone with the same issue or a similar one?

Thanks in advance!

  • pstudart Profile Picture
    52 on 22 Jun 2023 at 19:33:09
    Re: Environment variables do not resolve for sharepoint list views

    Its still a topic, it seems to be some kind of issue where all the columns dont appear, but if you are able to save and re open the flow they will appear again. The real problem is when you cant save then you gotta clear the action and reset it. It took my alot of fiddling to finally get environmental variables for views to function properly.

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on 20 Jun 2023 at 13:57:16
    Re: Environment variables do not resolve for sharepoint list views

    Is this still the same topic? For me it is a difference if the flow can't be turned on because the view is not found or the view is found but doesn't get all values (maybe because some columns don't have all fields filled out).

     

    Is your problem fixed @Arvitis 

  • pstudart Profile Picture
    52 on 20 Jun 2023 at 13:50:04
    Re: Environment variables do not resolve for sharepoint list views

    I am aware of how it should work it just doesn't resolve. It randomly leaves out columns.

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on 20 Jun 2023 at 05:54:12
    Re: Environment variables do not resolve for sharepoint list views

    OK, now I think I understand the topic. You need 3 Environment Variables in this case.

     

    1.) Sharepoint -> Site (connected to the sharepoint)

    2.) Sharepoint -> List (connected to variable 1 and to the list)

    3.) Text -> GUID from the view

     

    Works for me.

  • pstudart Profile Picture
    52 on 19 Jun 2023 at 21:14:48
    Re: Environment variables do not resolve for sharepoint list views

    I have not tried it for a view, I use that for the site and lists. would I select list and then put the view guid in?

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on 19 Jun 2023 at 20:29:19
    Re: Environment variables do not resolve for sharepoint list views

    For sharepoint variables you have to use "Data Type" "Data source".

    Matthy79_0-1687206501519.png

    Have you tried it?

  • pstudart Profile Picture
    52 on 19 Jun 2023 at 20:13:18
    Re: Environment variables do not resolve for sharepoint list views

    for the environmental variable I am using Text but that does not work. Also using variables of type string does not work either it was working at first then applying lower in the flow corrupted the flow. really annoying I am not sure what to do from here.

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on 19 Jun 2023 at 20:00:39
    Re: Environment variables do not resolve for sharepoint list views

    What data type does your variable have?

  • pstudart Profile Picture
    52 on 19 Jun 2023 at 15:47:43
    Re: Environment variables do not resolve for sharepoint list views

    I ended up creating string variables for my views GUIDs and will update them after moving the flows. It's the only workaround I am aware of at this time.

  • pstudart Profile Picture
    52 on 19 Jun 2023 at 14:41:43
    Re: Environment variables do not resolve for sharepoint list views

    Ya, it wont resolve using guid or name. This is a pretty significant bug, not sure what to do now.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete