Difference between revisions of "GetRoleIdByName"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
+
[Obsolete - please use [[ResourceTemplate_class|ResourceTemplateHelper.GetTemplate(resourceTemplateName, ResourceType).ResourceId]] or [[User_getRoleResourceIdByName|User_getRoleResourceIdByName]]. More detail at [[ConversionMethods|ConversionMethods]] ]

 
 
 
 
====getRoleIdByName====
 
====getRoleIdByName====
  
Line 12: Line 10:
 
'''Arguments'''
 
'''Arguments'''
  
''roleName'': a string expression. It is the qualified name of a role.
+
''roleName'': a string expression. It is the qualified name of a user resource template.
  
 
'''Return type'''
 
'''Return type'''
Line 20: Line 18:
 
'''Example'''
 
'''Example'''
  
number id = getRoleIdByName("FullUser");
+
''number id = getRoleIdByName("Consultant");''
  
//1
+
''//1''
  
 
'''Availability'''
 
'''Availability'''
  
 
Version 5.4
 
Version 5.4
__NOTOC__
+
[[Category:User_Functions]]
<!-- imported from file: 4170.htm-->
 

Latest revision as of 10:59, 21 September 2023

[Obsolete - please use ResourceTemplateHelper.GetTemplate(resourceTemplateName, ResourceType).ResourceId or User_getRoleResourceIdByName. More detail at ConversionMethods ]

getRoleIdByName

Gets the id of the user resource template with the qualified name specified as input.

Syntax

getRoleIdByName(roleName)

Arguments

roleName: a string expression. It is the qualified name of a user resource template.

Return type

bool

Example

number id = getRoleIdByName("Consultant");

//1

Availability

Version 5.4