cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver I
Resolver I

updating status value based on gallery

Hi, i'm having two lists i.e. feedback and job application

 

i'm having a gallery which will display the items of feedback list

 

now i want to remove the item and change the overall status of job application

 

 

i've tried this logic

 

Set(
gSelected,
Gallery1.Selected
);
RemoveIf(
'FeedbackForm',
ID = gSelected.ID
);

If(
CountRows(Gallery1.AllItems) = 0,
Patch(
'Job Application',
{ID: gSelected.JobID},
{
'Overall Status': "Not Sent",
}
),
If(
CountRows(Filter(Gallery1.AllItems,'Feedback Status' = "Feedback Pending")) = 0,
Patch(
'Job Application',
{ID: gSelected.JobID},
{
'Overall Status': "Completed"
}
)));

 

but i don't know why it wasn't working properly. it doesn't patching the values

3 REPLIES 3
Resident Rockstar
Resident Rockstar

Hi @Krishna98 ,

if you are trying to patch the value for the choices type field then you can patch the value like the below formate.

WorkType:{
            
            Value: WorkType,
            '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"
        },

//WorkType is the Column Name and Filed Type is Choices 

Thanks,

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

Hi @VijayTailor ,

 

actually it is string type and it isn't throwing any error but it doesn't patching the values even though the logic is correct. i think the gallery isn't updating 

Hi @Krishna98 ,

You can use the Patch like below.

Patch(TimeSheetEntryBook,ThisItem,{ColumnName:"ValueNeed2Patch})

Hope this will work for you.

Thanks,
 

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (6,372)