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 Automate / Update Item > Keep cur...
Power Automate
Answered

Update Item > Keep current array value

(0) ShareShare
ReportReport
Posted on by

I'm searching for how to Update Item (SharePoint list) in Power Automate with a multi-select value as one of the required fields that I don't want to change. I've tried using every option in dynamic content, but it either throws an error or wipes out the values and leaves the field blank. Here is my flow:

 

ahartsfield_0-1698160150691.pngahartsfield_1-1698160183030.pngahartsfield_2-1698160208176.pngahartsfield_3-1698160274812.pngahartsfield_4-1698160389491.png

I use initialize variable to get my multi-choice values into a form I can use in a summary email that gets sent back to the employee (Outputs from Compose 3). After it goes through an approval process, I want the Status updated on the SharePoint list, so I'm using Update Item. Since all required fields must have content, I'm trying to set it up with the same values so it doesn't change the content of any other field except the Status, but if I use Outputs again, it wipes out the content from the Incident Type field. 

I've also tried just using the Incident Type Value from the "When an Item is Created" and "Get Items" dynamic content, but it wants to put me into an Apply to All loop, which I want to avoid.

 

Any solutions?

Thank you!

Categories:
I have the same question (0)
  • abouchaalaBAIT Profile Picture
    932 Moderator on at

    Hello, 

    Here is the workflow in order to update Multi Selection Field and use the value as text in order to send it in the email. 

    ----------------------------------------------------------
    If I have answered your question, please mark your post as Solved. 🆗✔️
    If you like my response, please give it a Thumbs Up. 👍
    You can accept more than one post as a solution.

    abouchaalaBAIT_0-1698163945436.png

    And here is the output 

    abouchaalaBAIT_1-1698164023693.png

    ----------------------------------------------------------
    If I have answered your question, please mark your post as Solved. 🆗✔️
    If you like my response, please give it a Thumbs Up. 👍
    You can accept more than one post as a solution.

  • ahartsfield Profile Picture
    on at

    Thank you! 

    The string variable produces the same result in the summary email for me as the array variable does, but it also still wipes out the data, leaving it blank, from the Update Item action. I must be doing something wrong because in your example of the Update Item, you are inputting the created variable. That variable isn't showing up for me in the dynamic content, I only have the Compose Outputs. I do get that variable as dynamic content in the email, however. Any suggestions?

    ahartsfield_0-1698166291170.png

    ahartsfield_1-1698166426460.png

     

  • abouchaalaBAIT Profile Picture
    932 Moderator on at

    @ahartsfield what is the  type of Incident Type field in SharePoint ? 

    In your sharepoint list settings, please share the screenshot of the field properties like this 

    abouchaalaBAIT_0-1698166958394.png

     

     

  • ahartsfield Profile Picture
    on at

    It's a Choice column:

    ahartsfield_0-1698167470604.png

    ahartsfield_1-1698167487758.png

     

  • abouchaala007 Profile Picture
    on at

    Try to : 

    1- copy and paste the variable from your compose to the update item and test

    OR 2-  copy paste directly this code in the update item field @{variables('IncidentTypeChoice')}

    OR 3- copy paste this code in the expression of the update item field, 

    variables('IncidentTypeChoice')

    abouchaala007_0-1698219669721.png

    Or 4- from the power automate settings, activate the experimental features and re test.

     

    abouchaalaBAIT

  • ahartsfield Profile Picture
    on at

    Thank you for the ideas for things to try! Unfortunately, none of these worked. It just continues to erase the values in the Incident Type field. I wish there was an IF statement I could write that basically tells it to do nothing, but I haven't made that work either.

  • Verified answer
    ahartsfield Profile Picture
    on at

    So - progress, maybe? I decided to try allowing an Apply to Each loop to see what would happen. I just used basic dynamic content to fill the Incident Type field:

    ahartsfield_0-1698252094209.png

    I then ran a quick test and found that it did not erase the content from the SharePoint list. But that was when I only selected one Incident Type (this is a multi-choice field). I wanted to test if it would work with multiple incident  types selected. Running that test, it only keeps one of the entries and erases the others.

     

    In addition, I happened to add an attachment to my test entry and got an error (screenshot below) I have not been getting up to this point when I've tested attachments. All of my research on this particular topic is turning up issues for others when attaching multiple attachments, which is not the case for mine. And, it's been working fine until now. Sharing this info also in case it is related somehow to the changes I've made.

    ahartsfield_1-1698252551694.png

    Help?

     

  • ahartsfield Profile Picture
    on at

    I should have included screenshots of the attachments info:

    ahartsfield_0-1698255956936.pngahartsfield_1-1698256056132.png

     

  • Verified answer
    ahartsfield Profile Picture
    on at

    For the attachment issue, I followed this post and it resolved. I think the Apply to Each loop is actually working so hoping this whole issue is resolved. https://powerusers.microsoft.com/t5/Building-Flows/No-Input-parameters-provided/m-p/1209371#M139366 

    Thank you everyone for your help!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard