ftos.identity.authz.getGrantTagOnRecord
IMPORTANT!
Starting with v24.3.0, this is renamed from server.customSecurity.getGrantTagOnRecord to ftos.identity.authz.getGrantTagOnRecord.
Starting with v24.3.0, this is renamed from server.customSecurity.getGrantTagOnRecord to ftos.identity.authz.getGrantTagOnRecord.
Retrieves any data ownership tag ID assigned to a record (created with the ftos.identity.authz.createGrantTag method and assigned with the ftos.identity.authz.setGrantTagOnRecord method).
This is a data service method for business service components.
Syntax
Copy
ftos.identity.authz.GetGrantTagOnRecord(entityName : string, recordId : string): string;
| Parameter | Type | Description |
|---|---|---|
entityName
|
string | Name of the parent entity associated with the record from which you want to retrieve the custom data ownership tag. |
recordId
|
string | ID of the record from which you want to retrieve the custom data ownership tag. |
Return Value
Returns a string containing the custom data ownership tag ID.
Examples
In this example, we retrieve the custom data ownership tag ID for the record d4ba4503-bddd-4ac9-a8ff-0b9e99572af3 in the jointAccounts entity and store it in the tagID variable.
Copy
var tagID = ftos.identity.authz.GetGrantTagOnRecord('jointAccounts', 'd4ba4503-bddd-4ac9-a8ff-0b9e99572af3');