cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Raj_Saha
Level: Powered On

I want to submit all the filter galley only marked information using the submit button

ForAll(
Gallery1.AllItems,
Patch(
'[dbo].[PerferctOrder_EDI_PA]',
LookUp(
'[dbo].[PerferctOrder_EDI_PA]',
Exclude_Flag = Exclude_Flag
),
{
Exclude_Flag: Checkbox1.Value,
Created_by: User().Email,
Created_On: Today()
}
)
)

1)in the above code, I was submitting  Checkbox value, user mail id, and date....but it was updating only one records...
2) I want to submit all the same value for the selected filed

Thanks 
Raj

2 ACCEPTED SOLUTIONS

Accepted Solutions
Raj_Saha
Level: Powered On

Re: I want to submit all the filter galley only marked information using the submit button

Hi RezaDorrani,

It will update the only database sequence order. not based on the gallery filter data.
in the attached image only I will filter sales group =241 in the gallery it will filter 13 records while I'm pressing submit button it will update the only database first records 

 

View solution in original post

Community Support Team
Community Support Team

Re: I want to submit all the filter galley only marked information using the submit button

Hi @Raj_Saha ,

Do you want to modity multiple records?

Try to modify your formula like this:

ForAll(
Gallery1.AllItems,
Patch(
'[dbo].[PerferctOrder_EDI_PA]',
LookUp(
'[dbo].[PerferctOrder_EDI_PA]',
Exclude_Flag =Gallery1.AllItems[@Exclude_Flag]
),
{
Exclude_Flag: Checkbox1.Value,
Created_by: User().Email,
Created_On: Today()
}
)
)

Usually we use @ to avoid ambiguity.

Here's a doc about it for your reference:

https://powerapps.microsoft.com/en-us/blog/bulk-update-using-forall-and-patch/

 

 

Best regards,

Community Support Team _ Phoebe Liu
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

3 REPLIES 3
Dual Super User
Dual Super User

Re: I want to submit all the filter galley only marked information using the submit button

Hi @Raj_Saha 

 

ForAll(
RenameColumns(Filter(Gallery1.AllItems, Checkbox1.Value = true), "Exclude_Flag", "Exclude_Flag1"),
Patch(
'[dbo].[PerferctOrder_EDI_PA]',
LookUp(
'[dbo].[PerferctOrder_EDI_PA]',
Exclude_Flag = Exclude_Flag1
),
{
Exclude_Flag: true,
Created_by: User().Email,
Created_On: Today()
}
)
)

 

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Raj_Saha
Level: Powered On

Re: I want to submit all the filter galley only marked information using the submit button

Hi RezaDorrani,

It will update the only database sequence order. not based on the gallery filter data.
in the attached image only I will filter sales group =241 in the gallery it will filter 13 records while I'm pressing submit button it will update the only database first records 

 

View solution in original post

Community Support Team
Community Support Team

Re: I want to submit all the filter galley only marked information using the submit button

Hi @Raj_Saha ,

Do you want to modity multiple records?

Try to modify your formula like this:

ForAll(
Gallery1.AllItems,
Patch(
'[dbo].[PerferctOrder_EDI_PA]',
LookUp(
'[dbo].[PerferctOrder_EDI_PA]',
Exclude_Flag =Gallery1.AllItems[@Exclude_Flag]
),
{
Exclude_Flag: Checkbox1.Value,
Created_by: User().Email,
Created_On: Today()
}
)
)

Usually we use @ to avoid ambiguity.

Here's a doc about it for your reference:

https://powerapps.microsoft.com/en-us/blog/bulk-update-using-forall-and-patch/

 

 

Best regards,

Community Support Team _ Phoebe Liu
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
Users Online
Currently online: 165 members 5,289 guests
Please welcome our newest community members: