@servicenow/sdk - v4.13.3
    Preparing search index...
    PermissionParams: E extends "on_demand"
        ? Record<never, never>
        : {
            parentRecord: P extends TableName
                ? ParentRecordReference<P>
                : DataReference | undefined;
        }

    Params passed to a permissions callback. Exposes the parent record so pills can reference it (e.g. wfa.playbook.dataPill(params.parentRecord.assigned_to)), mirroring the body lanes callback. parentRecord is dot-walkable; it is available when the playbook declares a parentTable.

    On-demand playbooks (executionType E is 'on_demand') have no triggering record, so parentRecord is omitted entirely — referencing params.parentRecord is a type error.

    Type Parameters

    • P extends string | undefined = undefined
    • E extends string | undefined = undefined