Powerapps UpdateContext after Patch

I have a 'Sign Up' button in my app that adds the logged in user into a sharepoint list. The code (which works perfectly) is currently -

Patch( EVENTPARTICIPANTS; Defaults(EVENTPARTICIPANTS); { EVENTID: Gallery3.Selected.EVENTID; NAME:{ '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser"; Department: ""; Claims: "i:0#.f|membership|" & User().Email; DisplayName: User().FullName; Email: User().Email; JobTitle: ""; Picture: User().Image } } ) 

I'm trying to figure out how to add an updateContext after it, so my confirmation popup box will be visible, but I can't get the syntax right.

Can someone please tell me why this doesn't work? Thanks!

Patch( EVENTPARTICIPANTS; Defaults(EVENTPARTICIPANTS); { EVENTID: Gallery3.Selected.EVENTID; NAME:{ '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser"; Department: ""; Claims: "i:0#.f|membership|" & User().Email; DisplayName: User().FullName; Email: User().Email; JobTitle: ""; Picture: User().Image } } ) ; UpdateContext({varShowPopup:true}) 
2

2 Answers

In the locale that you are editing your app, the list separator is ; - which probably indicates that you are in a place that uses , as the decimal separator (instead of .). That changes the chaining operator from ; to ;;, which is what you found out you need to use to make your scenario work. You can find more details at

Use this formula:

Patch( EVENTPARTICIPANTS; Defaults(EVENTPARTICIPANTS); { EVENTID: Gallery3.Selected.EVENTID; NAME:{ '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser"; Department: ""; Claims: "i:0#.f|membership|" & User().Email; DisplayName: User().FullName; Email: User().Email; JobTitle: ""; Picture: User().Image } } );; UpdateContext({varShowPopup:true}) 

It should work for you!

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like