stripHashSuffixProperties
@spartanfx/react / codeapps / stripHashSuffixProperties
Function: stripHashSuffixProperties()
function stripHashSuffixProperties<T>(payload): T;
Strip #-suffixed binding properties (e.g. Status#Id, AssignedTo#Claims)
from a payload before sending it to the SharePoint connector.
The generated *Base interfaces include these properties for form-binding
use, but Microsoft documents that they must be omitted from create/update
payloads. See:
https://learn.microsoft.com/en-us/power-apps/developer/code-apps/how-to/sharepoint-operations
Returns a new object; the input is not mutated.
Type Parameters
T
T extends Record<string, unknown>
Parameters
payload
T
Returns
T