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 / Patching items from Pi...
Power Apps
Unanswered

Patching items from Pick List

(1) ShareShare
ReportReport
Posted on by 13
Hi all,
 
I have an issue whereby I cannot patch ALL selected items from a pick list (From SharePoint List A "Maintenance Questions") and write them to List B "Planned Maintenance Submissions".
 
I have 5 fields that I wish to Patch to "Planned Maintenance" which technically works, however, when I select multiple items from a Pick List (lstActivity) the Patch function only passes through the final item you selected. For example, if you pick, A,B, C and G; only item G will appear in the SharePoint list even though the others are selected. My formula is:
 
    Patch(
        'Planned Maintenance Submissions',
        Defaults('Planned Maintenance Submissions'),
        {
            Title: txtName.Text,
            Machine: drpMachines.Selected.Value,
            'Maintenance Type': drpType.Selected.Value,
            'Maintenance Activity': lstActivity.Selected.Value,
            Comments: txtComments.Text
        }
    );
    Reset(txtName);
    Reset(drpMachines);
    Reset(drpType);
    Reset(lstActivity);
    Reset(txtComments);
    Navigate(scrSuccess)
 
I have also tried to "trick" Power Apps by Concatinating the selected items into an invisible text box which would be patched instead of the pick list:
 
Concat(lstActivity.SelectedItems, ", ")
 
This doesn't work either and whilst the box appears to see items are selected, they do not show and appear as " , , , "
 
I have also looked at using a collection but cannot get this to work either.
 
Can anyone help please?
 
Thanks!
Categories:
I have the same question (0)
  • JS-24070703-0 Profile Picture
    13 on at
    I have figured this out if anyone comes across it in the future. I added Concat to my Patch formula on the submit button:
     
        'Maintenance Activity': Concat(lstActivity.SelectedItems,Value&","),
  • JH-24070944-0 Profile Picture
    7 on at
    Hi,
    it seems like 'Maintenance Activity" expects a Data - Value.
    But since you can choose multiple values in 'lstActivity' the selected Items are a Record.
    This can not be matched to a Data field because a Record consists of multiple Data-entries.
    This ist why you had to use 'selected.value' in first place.
     
    With the Concat you are combining the values of the 'selectedItems' to one Data (in this case a String).
    This is why your solutions works.
    Best regards

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 316 Most Valuable Professional

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard