Examples: CreateSecurityRole()


The following example adds the LEAD GENERATION role for the sample integrating application.

local long status;
local string roleID;

{Add the Lead Generation security role}
roleID = "LEAD GENERATION";
if Exists(roleID) of form sySecurityRole = false then

	{Role does not exist, so create it}
	status = CreateSecurityRole(roleID, {ID}
		"Lead Generation", {Name}
		"Tasks include creating and updating customer leads.") {Description}
		of form sySecurityRole;
end if;


Documentation Feedback