Skip to main content

Notifications

Community site session details
Power Automate - General Discussion
Answered

Power automate flow in a solution using Environment variables - I cannot add or update sharepoint item

Like (0) ShareShare
ReportReport
Posted on 21 Mar 2024 14:01:02 by 3

Hi all,

I have a flow that is in a Power Solution and I have environment variables setup for my sharepoint site and sharepoint lists, so I in theory can transport the solution to another environment using ALM. And that works fine, when the flow retrieves data from the sharepoint lists.

However I cant make it work when the flow  UPDATES or CREATES a sharepoint item. 
It seems that when environment variables are used, it can not retrieve the sharepoint columns, and then I can not enter the information I need to enter in the specific fields. 
It works fine if I setup the Update or create Item directly to the Sharepoint list, but then I will need to update them manually when I move the solution to the PROD environment through ALM.

Things I tried to make it work, but didnt help:
- first setting the Update Item directly to the list, editing the fields, and then switching it to the environment variables
- search for a 'patch' function in flows, to see if I could update a sharepoint item, or create a new, that way (as I can in Apps).

I hope someone has a fix or some advice for this issue 🙂

Best regards


Ingrid




  • iol Profile Picture
    3 on 12 Apr 2024 at 07:46:20
    Re: Power automate flow in a solution using Environment variables - I cannot add or update sharepoint item

    Thank you very much Sudeep, that was very helpfull đź‘Ť

     

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,318 Most Valuable Professional on 11 Apr 2024 at 22:51:38
    Re: Power automate flow in a solution using Environment variables - I cannot add or update sharepoint item

    @iol as discussed,

    You need to reference the variables from the dynamic selector (not the expressions window)

     

  • SudeepGhatakNZ Profile Picture
    14,318 Most Valuable Professional on 21 Mar 2024 at 22:42:52
    Re: Power automate flow in a solution using Environment variables - I cannot add or update sharepoint item

    @iol ,

    Looks like there is something wrong in the way you are setting the variables.

    Would you like to show me on a Teams call?

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,089 Most Valuable Professional

Leaderboard