Uses a
server relative site URLinstead of asite idUses a
list titleinstead of alist idExpands the
fieldsattribute and restricts the expanded fields to
- id
- Title
- Author (Created by)
- Editor (Modified by)
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
| // ============================================== | |
| // ENCODE | |
| /** NODEJS */ | |
| const encodedKeyName = Buffer.from("PropertyKeyName", 'utf16le').toString('base64'); | |
| /** BROWSER */ | |
| function encodeToUtf16LE(str: string): Uint8Array { | |
| const buffer = new ArrayBuffer(str.length * 2); | |
| const view = new Uint16Array(buffer); |
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
| // context.ts | |
| import { AsyncLocalStorage } from 'node:async_hooks'; | |
| import { InvocationContext } from '@azure/functions'; | |
| const asyncLocalStorage = new AsyncLocalStorage<InvocationContext>(); | |
| export function setInvocationContext(context: InvocationContext): void { | |
| asyncLocalStorage.enterWith(context); | |
| } |
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
| /* eslint-disable @typescript-eslint/no-explicit-any */ | |
| /** Configuration options for caching behavior in the cache proxy service. | |
| * | |
| * @property {number} [ttlMs] - Time-to-live in milliseconds for cached entries. If not specified, entries may be cached indefinitely. | |
| * @property {string[]} [cacheMethods] - Array of method names that should have their results cached. If not specified, no methods will be cached by default. | |
| * @property {string[]} [invalidateOn] - Array of method names that, when called, should invalidate the cache. Useful for clearing cache after data mutations. | |
| * @property {(method: string, args: any[]) => string} [keyFn] - Custom function to generate cache keys based on the method name and arguments. If not provided, a default key generation strategy will be used. | |
| * @property {(method: string, args: any[]) => string[] | undefined} [deriveIdsFromArgs] - Function to extract entity IDs from method arguments, used for selective cache invalidation. Returns an array of IDs or undefined if no I |
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
| a=[ | |
| { sortIdx: 5, value: "E"}, | |
| { sortIdx: 6, value: "F"}, | |
| { sortIdx: 1, value: "A"}, | |
| { sortIdx: 4, value: "D"}, | |
| { sortIdx: 3, value: "C"}, | |
| { sortIdx: 2, value: "B"}, | |
| ]; | |
| function move(elToMove, targetSortIdx) { |
References.
- Migrate apps from Azure Functions version 3.x to version 4.x
- Azure Functions runtime versions overview
- Work with Azure Functions Core Tools
- Durable Functions versions overview
- Extension bundles
- [Fix output data serialization format in Node.js functions #2007](https:
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
| /** References: | |
| * https://www.npmjs.com/package/azure-ad-verify-token | |
| * https://github.com/justinlettau/azure-ad-verify-token | |
| * https://liangjunjiang.medium.com/verify-and-decode-azure-activity-directory-token-bc72cf7010bc | |
| * https://liangjunjiang.medium.com/azure-active-directory-api-v1-0-vs-v2-0-5c75fb2b1154 | |
| * https://www.npmjs.com/package/jwks-rsa | |
| * https://www.npmjs.com/package/jsonwebtoken | |
| * https://www.voitanos.io/blog/validating-azure-ad-generated-oauth-tokens | |
| * | |
| * NOTE: |
NewerOlder