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 Apps / How to patch multiple ...
Power Apps
Unanswered

How to patch multiple selected items' ID to a single item in sharepoint list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I have created a form with a collection of gallery in the data card which shows other list data:

weeny99_0-1689054132591.png

I want to let user to choose the items and patch the selected items' ID to sharepoint list, but I'm not sure what should I do for the submit button and power automate.

I created a gallery(Gallery3) for all the selected items in the table.

This is my current formula for submit button:
JSON(
ShowColumns(
Gallery3.AllItems,
"ID"
),
JSONFormat.Compact
)
);

 

these are my current power automate:

weeny99_1-1689054341179.png

Untitled.png

 

I tried to select 2 items from the table and submit. However, it created 2 items instead of 1 and the ID format is not what I want, I want to have 73, 76 in the field.

weeny99_2-1689054603728.png

 

Moreover, after the ID is submitted, I also wish to show the details of selected items in view mode on powerapp for approver to review, but I'm not sure if just submitting ID is enough to show all the details in the table. Please give some advice on this too.

Thanks in advance.

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @Anonymous 

     

    To update only 1 row you will have to do this update item outside apply to each loop. You can keep the join action inside the loop, but update the item outside the loop.

     

    Now coming to the 2nd part. You want 73, 76.

     

    For this just use ID instead of using body in the join action.

     

    Fix these issues, then we can move forward with other issues. I hope this helps 🙂

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Sundeep_Malik , 

     

    Thanks for the reply. If I use ID instead of body, this error shows up.

    weeny99_0-1689056085314.png

    Also, how can I do the update item outside the loop if I have to get the create item ID and output of join from the loop?

  • Sundeep_Malik Profile Picture
    6,501 on at

    @Anonymous 

    Use a compose action in your flow. Add the data you are getting in it. 

    And paste the screenshot here. Hide the personal details. I want to see how the Id part is coming. If you don't want to add screenshot copy whatever you are getting and then replace the personal details with some other value. 

     

    See for joining you are using apply to each 3.

    But to update it use it inside apply to each 2 loop only. 

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Sundeep_Malik ,

     

    This is my current flow, update item is not necessary if i can get the joined id beforehand.

    weeny99_0-1689064094159.png

    Untitled.png

    flow.png

     

    My error details for this flow:

    weeny99_3-1689064580798.pngweeny99_4-1689064613821.png

     

    Thanks for your help and hope to hearing from you soon.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard