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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (57,873)