Skip to main content
Version: 1.1.0

formatDataverseBindPath

@spartanfx/react v1.1.0


@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