Skip to main content

formatDataverseBindPath

@spartanfx/react v1.2.2


@spartanfx/react / codeapps / formatDataverseBindPath

Function: formatDataverseBindPath()

function formatDataverseBindPath(entitySetName, value): string;

Build a Dataverse @odata.bind target path (/<entitySet>(<guid>)) from an entity-set name and a value that contains a GUID. The leading slash matches the form used in Microsoft's official Dataverse code-apps sample. Returns undefined when the value has no GUID, so a malformed assignee never produces a broken bind.

Parameters​

entitySetName​

string

value​

unknown

Returns​

string