Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chrisobriensp/76617e069e627a315e2057b85640706f to your computer and use it in GitHub Desktop.
Save chrisobriensp/76617e069e627a315e2057b85640706f to your computer and use it in GitHub Desktop.
Do not do this - this is the inefficient way to hook up a data source/Azure Function to PowerApps form controls
// do NOT do this - using your Data Source/Azure Function this way *WILL* result in the function being called multiple times..
UpdateContext({fetchedDisplayName: 'cob-gen-functions.azurewebsites.net'.apiFetchUserDetailspost({userPrincipalName: lblUserEmail.Text}).displayName});
UpdateContext({fetchedUserPhone: 'cob-gen-functions.azurewebsites.net'.apiFetchUserDetailspost({userPrincipalName: lblUserEmail.Text}).phone});
UpdateContext({fetchedUserLocation: 'cob-gen-functions.azurewebsites.net'.apiFetchUserDetailspost({userPrincipalName: lblUserEmail.Text}).officeLocation});
UpdateContext({fetchedUserJobTitle: 'cob-gen-functions.azurewebsites.net'.apiFetchUserDetailspost({userPrincipalName: lblUserEmail.Text}).jobTitle})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment