User getRoleResourceIdByName

From Catglobe Wiki
Jump to: navigation, search

User_getRoleResourceIdByName

Get the user template resource id by its name

Syntax

User_getRoleResourceIdByName(resourceTemplateName)

Arguments

string resourceTemplateName

Return value

number

Example

string resourceTemplateName = "Consultant";

User_getRoleResourceIdByName(resourceTemplateName);//1842