Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

GetResourceGuid: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
 
Line 10: Line 10:
getResourceGuid(''resourceType, LegacyId'')  
getResourceGuid(''resourceType, LegacyId'')  


This use is obsolete, only implemented for questionnaire and PQ, others resource type will throw error
This function is obsolete with 2 parameters, only implemented for questionnaire and PQ, others resource type will throw error


or
or

Latest revision as of 09:48, 21 August 2023



getResourceGuid

Returns the resource's Guid

Syntax

getResourceGuid(resourceType, LegacyId)

This function is obsolete with 2 parameters, only implemented for questionnaire and PQ, others resource type will throw error

or

getResourceGuid(ResourceId)

Arguments

resourceType: Is a number expression. It must be one of the pre-defined constants specified in getResourceTypeFromGuid function.

LegacyId: Is a number expression. It is the Legacy id of the resource with its specific type.

ResourceId: Is a number expression. It is the resource id.

Return type

string

Examples

string guid = getResourceGuid(Resource_Type_Questionnaire, 1);

or

string guid == getResourceGuid(123); // with 123 is resource id of the legacyId 1