This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If( | |
Connection.Connected && !IsEmpty(LocalRecord), | |
ForAll( | |
LocalRecord, | |
Patch( | |
'My SharePoint list', | |
Defaults('My SharePoint list'), | |
{ | |
Title: Concatenate( | |
"Leave Request - ", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If( | |
Connection.Connected, | |
Patch( | |
'My SharePoint list', | |
Defaults('My SharePoint list'), | |
{ | |
Title: Concatenate( | |
"Leave Request - ", | |
User().Email, | |
" - ", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install @microsoft/[email protected] --save | |
npm install @microsoft/[email protected] --save | |
npm install @microsoft/[email protected] --save | |
npm install @microsoft/[email protected] --save | |
npm install @microsoft/[email protected] --save | |
npm install @microsoft/[email protected] --save | |
npm install @microsoft/[email protected] --save | |
npm install @microsoft/[email protected] --save | |
npm install @microsoft/[email protected] --save | |
npm install @microsoft/[email protected] --save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Host; | |
namespace COB.AzureFunctions | |
{ | |
public static class EndPointKeepWarm | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'cob-gen-functions.azurewebsites.net'.apiUpdateUserDetailspost( | |
{ | |
userPrincipalName: lblUserEmail.Text, | |
displayName: txtDisplayName.Text, | |
jobTitle: txtJobTitle.Text, | |
mobilePhone: txtPhone.Text, | |
officeLocation: txtLocation.Text | |
} | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UpdateContext({fetchedUserData: 'cob-gen-functions.azurewebsites.net'.apiFetchUserDetailspost({userPrincipalName: lblUserEmail.Text})}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
title: cob-gen-functions.azurewebsites.net | |
version: 1.0.0 | |
host: cob-gen-functions.azurewebsites.net | |
basePath: / | |
schemes: | |
- https | |
- http | |
paths: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
title: cob-gen-functions.azurewebsites.net | |
version: 1.0.0 | |
host: cob-gen-functions.azurewebsites.net | |
basePath: / | |
schemes: | |
- https | |
- http | |
paths: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class UpdateUserDetails | |
{ | |
// tip - use Managed Service Identity + Key Vault in real-life. In this example, AAD app registration details are kept simple/in code.. | |
public static string resourceId = "https://graph.microsoft.com"; | |
public static string tenantId = "TODO"; | |
public static string authString = "https://login.microsoftonline.com/" + tenantId; | |
public static string upn = string.Empty; | |
public static string clientId = "TODO"; | |
public static string clientSecret = "TODO"; |