Salesforce

RightAdd (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

RightAdd (Magic xpa 4.x)

Assigns a right to a user in the Security File from within an application.

Syntax:

RightAdd(user, right)

Parameters:

user: The ID of the user to be assigned to the user right given by the second parameter.

right: The right to be granted to user.

Returns:

Logical TRUE or FALSE according to the success or failure of the operation.

Example:

RightAdd('Accountant', 'Issue Invoice') will assign the Right 'Issue Invoice' to the user called Accountant.

Note:

Only a user logged on as SUPERVISOR can use this function successfully.

See also:

The Online and Rich Client Samples projects (program SE03 and RSE03)

Reference
Attachment 
Attachment