cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Update PowerApps Gallery to SharePoint List

Does anyone have a formula that I can use to make edits into a Gallery and then update the lists in SharePoint by clicking a button (Stop Editing)? I've attempted this a few times, but I'm having an issue also with having a choice/dropdown field writing back.

 

Gallery.jpg 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Update PowerApps Gallery to SharePoint List

Hi @Anonymous,

How do you submit your Gallery data into your SP list within your app?

Do you want to execute a bulk-updates within your app via clicking the "Stop Editing" button?

Could you please share a bit more about the Term Approved field in your SP list? Is it a Choice type column?

Based on the needs that you mentioned, I think the ForAll function and Patch function could achieve your needs.

I have made a test on my side, please take a try with the following workaround:12.JPG

 

13.JPG

Set the OnSelect property of the "Stop Editing" button to following:

ForAll(
    RenameColumns(Gallery1.AllItems,"ID","ID1"),
    Patch(
        '20181217_case14',
        LookUp('20181217_case14',ID = ID1),
        {
            TaskName: TextInput1.Text,
            Executor: TextInput2.Text,
            Status: {
                Value: Dropdown1.Selected.Value
            }
        }
    )
)

Note: The Status column is a Choice type column in my SP list, '20181217_case14' represents my SP list.

On your side, you should type following:

ForAll(
    RenameColumns(Gallery1.AllItems,"ID","ID1"),
    Patch(
        'YourSPList',
        LookUp('YourSPList',ID = ID1),
        {
            'Transfer Institution': TextInput1.Text,
            'NSU Course Prefix': TextInput2.Text,
            'Term Approved': {
                Value: TermApprovedDropdown.Selected.Value
            }
        }
    )
)

please take a try with above solution, then check if your issue is solved.

More details about ForAll function and Patch function in PowerApps, please check the following article:

ForAll function

Patch function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
AbeSaldana
Level: Powered On

Re: Update PowerApps Gallery to SharePoint List

In Dynamics 365 CE are called the Editable grid, and allows to edit the same way you are using the scenario for SharePoint, here is a link for a YouTube video that demonstrates how to emulate the editable grid and update and use the controls. 

 

https://www.youtube.com/watch?v=41Mpgn7svLs 

 

hope this helps you resolve your issue. 

 

abe.

Community Support Team
Community Support Team

Re: Update PowerApps Gallery to SharePoint List

Hi @Anonymous,

How do you submit your Gallery data into your SP list within your app?

Do you want to execute a bulk-updates within your app via clicking the "Stop Editing" button?

Could you please share a bit more about the Term Approved field in your SP list? Is it a Choice type column?

Based on the needs that you mentioned, I think the ForAll function and Patch function could achieve your needs.

I have made a test on my side, please take a try with the following workaround:12.JPG

 

13.JPG

Set the OnSelect property of the "Stop Editing" button to following:

ForAll(
    RenameColumns(Gallery1.AllItems,"ID","ID1"),
    Patch(
        '20181217_case14',
        LookUp('20181217_case14',ID = ID1),
        {
            TaskName: TextInput1.Text,
            Executor: TextInput2.Text,
            Status: {
                Value: Dropdown1.Selected.Value
            }
        }
    )
)

Note: The Status column is a Choice type column in my SP list, '20181217_case14' represents my SP list.

On your side, you should type following:

ForAll(
    RenameColumns(Gallery1.AllItems,"ID","ID1"),
    Patch(
        'YourSPList',
        LookUp('YourSPList',ID = ID1),
        {
            'Transfer Institution': TextInput1.Text,
            'NSU Course Prefix': TextInput2.Text,
            'Term Approved': {
                Value: TermApprovedDropdown.Selected.Value
            }
        }
    )
)

please take a try with above solution, then check if your issue is solved.

More details about ForAll function and Patch function in PowerApps, please check the following article:

ForAll function

Patch function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,104)