cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Krishna98
Helper V
Helper V

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
VijayTailor
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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,087)