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.

ConversionMethods: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
Line 969: Line 969:
|- valign="top" align="left"
|- valign="top" align="left"
| style="border: 1px solid;" | [[getResourceIdFromGuid|getResourceIdFromGuid(guid)]]
| style="border: 1px solid;" | [[getResourceIdFromGuid|getResourceIdFromGuid(guid)]]
<source lang="javascript">
string guid = "xx";
getResourceIdFromGuid(guid);//619
</source>
| style="border: 1px solid;" | [[getResourceUniqueIdFromGuid|getResourceUniqueIdFromGuid(guid)]]
| style="border: 1px solid;" | [[getResourceUniqueIdFromGuid|getResourceUniqueIdFromGuid(guid)]]
<source lang="javascript">
string guid = "xxx";
getResourceUniqueIdFromGuid(guid);//11560690
</source>
| style="border: 1px solid;" |  
| style="border: 1px solid;" |  


Line 979: Line 987:
|- valign="top" align="left"
|- valign="top" align="left"
| style="border: 1px solid;" | [[getCurrentUserId|getCurrentUserId()]]
| style="border: 1px solid;" | [[getCurrentUserId|getCurrentUserId()]]
<source lang="javascript">
getCurrentUserId();//5895442
</source>
| style="border: 1px solid;" | [[User_getCurrentUser|User_getCurrentUser()]]
| style="border: 1px solid;" | [[User_getCurrentUser|User_getCurrentUser()]]
<source lang="javascript">
User_getCurrentUser().ResourceId;//12702700
</source>
| style="border: 1px solid;" |  
| style="border: 1px solid;" |  


|- valign="top" align="left"
|- valign="top" align="left"
| style="border: 1px solid;" | [[getUserIdFromResourceId|getUserIdFromResourceId(guid)]]
| style="border: 1px solid;" | [[getUserIdFromResourceId|getUserIdFromResourceId(guid)]]
<source lang="javascript">
string guid = "xxx";
getUserIdFromResourceId(guid);//5895442
</source>
| style="border: 1px solid;" | [[getResourceUniqueIdFromGuid|getResourceUniqueIdFromGuid(guid)]]
| style="border: 1px solid;" | [[getResourceUniqueIdFromGuid|getResourceUniqueIdFromGuid(guid)]]
<source lang="javascript">
string guid = "xxx";
getResourceUniqueIdFromGuid(guid);//12702700
</source>
| style="border: 1px solid;" |  
| style="border: 1px solid;" |  



Revision as of 10:33, 6 May 2022

Obsolete methods Replace with Note
updateUserPermission(resourceId, permissionUsers)
number resourceId = 17148446;
number userId1 = 5895442;
number userId2 = 5898785;
array permissionUsers = {{userId1, "Read"}, {userId2, "FullControl"}};
updateUserPermission(resourceId, permissionUsers);
updateUserResourceIdPermission(resourceId, permissionUsers)
number resourceId = 17148446;
number userId1 = 12702700;
number userId2 = 12706043;
Dictionary permissionUsers = {userId1: "Read", userId2: "FullControl"};
updateUserResourceIdPermission(resourceId, permissionUsers);
QAS.UserId QAS.UserResourceId
User_getResourceIdFromUserId(userId) Obsolete
User_getResourceIdFromUserIds(userIds) Obsolete
sendBulkMail(bulkMailId)
number bulkMailId = 21063;
sendBulkMail(bulkMailId);

sendBulkMail(bulkMailId, maxToSend)

number bulkMailId = 21063;
number maxToSend = 100;
sendBulkMail(bulkMailId, maxToSend);
BulkMail.Send()
number bulkMailId = 17148200;
BulkMail bm = new BulkMail(bulkMailId);
bm.Send();// return Cattask Instance Id

BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)

number bulkMailId = 17148200;
number maxToSend = 100;
bool isTest = false;
bool isSyncronious = false;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendBulkMail(maxToSend, isTest, isSyncronious)
New class BulkMail
sendBulkMailSyncronious(bulkMailId)
number bulkMailId = 21063;
sendBulkMailSyncronious(bulkMailId);

sendBulkMailSyncronious(bulkMailId, maxToSend)

number bulkMailId = 21063;
number maxToSend = 100;
sendBulkMailSyncronious(bulkMailId, maxToSend);
BulkMail.SendSyncronious()
number bulkMailId = 17148200;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendSyncronious();//return number of sent

BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)

number bulkMailId = 17148200;
number maxToSend = 100;
bool isTest = false;
bool isSyncronious = true;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendBulkMail(maxToSend, isTest, isSyncronious)
New class BulkMail
sendTestBulkMail(bulkMailId)
number bulkMailId = 21063;
sendTestBulkMail(bulkMailId);

sendTestBulkMail(bulkMailId, maxToSend)

number bulkMailId = 21063;
number maxToSend = 100;
sendTestBulkMail(bulkMailId, maxToSend);
BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)
number bulkMailId = 17148200;
number maxToSend = -1;
bool isTest = true;
bool isSyncronious = false;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendBulkMail(maxToSend, isTest, isSyncronious)
number bulkMailId = 17148200;
number maxToSend = 100;
bool isTest = true;
bool isSyncronious = false;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendBulkMail(maxToSend, isTest, isSyncronious)
New class BulkMail
sendTestBulkMailSyncronious(bulkMailId)
number bulkMailId = 21063;
sendTestBulkMailSyncronious(bulkMailId);

sendTestBulkMailSyncronious(bulkMailId, maxToSend)

number bulkMailId = 21063;
number maxToSend = 100;
sendTestBulkMailSyncronious(bulkMailId, maxToSend);
BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)
number bulkMailId = 17148200;
number maxToSend = -1;
bool isTest = true;
bool isSyncronious = true;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendBulkMail(maxToSend, isTest, isSyncronious)
number bulkMailId = 17148200;
number maxToSend = 100;
bool isTest = true;
bool isSyncronious = true;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendBulkMail(maxToSend, isTest, isSyncronious)
New class BulkMail
setBulkMailFromResource(bulkMailId, resourceId)
number bulkMailId = 21065;
number resourceId = 17145420;

setBulkMailFromResource(bulkMailId, resourceId);
BulkMail.From = value
number bulkMailId = 17148449;
number resourceId = 17145420;
BulkMail bm = new BulkMail (bulkMailId);
bm.From = new EmailAccount(0, resourceId);
bm.Save();
New class BulkMail
setBulkMailFromGlobalEmailAlias(bulkMailId, globalEmailId)
number bulkMailId = 21065;
number globalEmailId = 16238;

setBulkMailFromGlobalEmailAlias(bulkMailId,globalEmailId);
BulkMail.From = value
number bulkMailId = 17148449;
number globalEmailId = 16238;
BulkMail bm = new BulkMail (bulkMailId);
bm.From = new EmailAccount(1, globalEmailId);
bm.Save();
New class BulkMail
setBulkMailFromWebshop(bulkMailId)
number bulkMailId = 21065;

setBulkMailFromWebshop(bulkMailId);
BulkMail.From = value
number bulkMailId = 17148449;
BulkMail bm = new BulkMail (bulkMailId);
bm.From = new EmailAccount(2);
bm.Save();
New class BulkMail
setBulkMailFromSupport(bulkMailId)
number bulkMailId = 21065;

setBulkMailFromSupport(bulkMailId);
BulkMail.From = value
number bulkMailId = 17148449;
BulkMail bm = new BulkMail (bulkMailId);
bm.From = new EmailAccount(3);
bm.Save();
New class BulkMail
setBulkMailGroups(bulkMailId, groupIds)
	
number bulkMailId = 21065;
array groupIds = {84129, 84130};
setBulkMailGroups(bulkMailId, groupIds)
BulkMail.SetGroups(groupIds)
	
number bulkMailId = 17148449;
array groupIds = {17146562, 17146563};
BulkMail bm = new BulkMail (bulkMailId);
bm.SetGroups(groupIds)
New class BulkMail
setBulkMailGroupsToBeRebuilt(bulkMailId, groupIds)
	
number bulkMailId = 21065;
array groupIds = {84129, 84130};
setBulkMailGroupsToBeRebuilt(bulkMailId, groupIds)
BulkMail.SetGroupsToBeRebuilt(groupIds)
	
number bulkMailId = 17148449;
array groupIds = {17146562, 17146563};
BulkMail bm = new BulkMail (bulkMailId);
bm.SetGroupsToBeRebuilt(groupIds)
New class BulkMail
setBulkMailUsers(bulkMailId, userIds)
	
number bulkMailId = 21065;
array userIds = {5895442, 5898785};
setBulkMailUsers(bulkMailId, userIds);
BulkMail.SetUsers(userIds)
	
number bulkMailId = 17148449;
array userIds = {12702700, 12706043};
BulkMail bm = new BulkMail (bulkMailId);
bm.SetUsers(userIds);
New class BulkMail
addToGroup(groupId)
	
//run on QAS context
number groupId = 84129;
addToGroup(groupId);
Group_addUser(userId, groupId)
	
//run on QAS context
number groupId = 17146562;
number userId = QAS_getCurrentQAS().UserResourceId;
Group_addUser(userId, groupId);
removeFromGroup(groupId)
	
//run on QAS context
number groupId = 84129;
removeFromGroup(groupId)
Group_removeUser(userId, groupId)
	
//run on QAS context
number groupId = 17146562;
number userId = QAS_getCurrentQAS().UserResourceId;
Group_removeUser(userId, groupId)
questionnaireAnswerSheetExists(qnaireId[, userId])
	
number qnaireId = 619;
number userId = 5895442;
questionnaireAnswerSheetExists(qnaireId, userId);
	
//run on QAS context
number qnaireId = 619;
questionnaireAnswerSheetExists(qnaireId);
QAS_exists(qnaireId, userId)
	
number qnaireId = 11560690;
number userId = 12702700;
QAS_exists(qnaireId, userId);
	
//run on QAS context
number qnaireId = 11560690;
number userId = QAS_getCurrentQAS().UserResourceId;
QAS_exists(qnaireId, userId);
createUserProjectQuestionnaire(qnaireId[, assignCurrentUser, useExisting]) new QAS(qnaireId, userId)
QAS_getByUserResourceId(userId, qnaireId, createIfNone)
createResourceProjectQuestionnaire(qnaireId[, assignCurrentUser, useExisting]) new QAS(qnaireId, userid)
QAS_getByUserResourceId(userId, qnaireId, createIfNone)
groupExists(groupId)
	
number groupId = 84129;
groupExists(groupId);
//true/false

groupExists(qualifiedName)

	
string qualifiedName = "My project\\My group";
groupExists(qualifiedName);
//true/false
Group_getGroupByResourceId(groupId)
	
number groupId = 17146562;
Group_getGroupByResourceId(groupId);
//return group object if found or empty if not found

Group_getGroupByName(qualifiedName)

	
string qualifiedName = "My project\\My group";
Group_getGroupByName(qualifiedName); 
//return group object if found or empty if not found
isMemberOfGroup(userId, groupId)
	
number userId = 5895442;
number groupId = 84129;
isMemberOfGroup(userId, groupId)

isMemberOfGroup(userId, groupName)

	
number userId = 5895442;
string groupName = "My project\\My group";
isMemberOfGroup(userId, groupName);

isMemberOfGroup(groupId)

	
//run on QAs context
number groupId = 84129;
isMemberOfGroup(groupId)

isMemberOfGroup(groupName)

//run on QAs context
string groupName = "My project\\My group";
isMemberOfGroup(groupName)
Group_isMemberOfGroup(userId, groupId)
	
number userId = 12702700;
number groupId = 17146562;
Group_isMemberOfGroup(userId, groupId);
	
number userId = 12702700;
string groupName = "My project\\My group"; 
number groupId  = Group_getGroupByName(groupName)[GROUP_RESOURCE_ID];
Group_isMemberOfGroup(userId, groupId);
//run on QAs context
number userId = QAS_getCurrentQAS().UserResourceId;
number groupId = 17146562;
Group_isMemberOfGroup(userId, groupId);
	
//run on QAs context
number userId = QAS_getCurrentQAS().UserResourceId;
string groupName = "My project\\My group"; 
number groupId  = Group_getGroupByName(groupName)[GROUP_RESOURCE_ID];
Group_isMemberOfGroup(userId, groupId);
rebuildGroup(groupId)
number groupId = 84129;
rebuildGroup(groupId);
Group_rebuildGroup(groupId,parallelBuild)
	
number groupId = 17146562;
bool parallelBuild = true;
Group_rebuildGroup(groupId, parallelBuild);
Tabulation_saveAsReport(name, parentId, permissionGroups[, overwrite])
DCS_use(16749647);
string name = "Report Test";
number parentId = 17148135;
number groupId1 = 84129;
number groupId2 = 84130;
array permissionGroups = {{groupId1, "Write"}, {groupId2, "FullControl"}};
bool overwrite = true;
createCrossDiagram ({"Q1"},{"Q2"});
Tabulation_saveAsReport(name, parentId, permissionGroups, overwrite);
Tabulation.SaveAsReport(name, parentId, permissionGroups, overwrite)
string name = "Report Test";
number parentId = 17148135;
number groupId1 = 17146562;
number groupId2 = 17146563;
Dictionary permissionGroups = {groupId1: "Write", groupId2: "FullControl"};
bool overwrite = true;
TabulationDiagramParameter p = new TabulationDiagramParameter ();
Tabulation t = new Tabulation();
p.DataCache = 16749647;
t.CreateCrossDiagram ({"Q1"},{"Q2"}, p);
t.SaveAsReport(name, parentId, permissionGroups, overwrite);
New class Tabulation
updateGroupPermission(resourceId, permissionGroups)
number resourceId = 17148446;
number groupId1 = 84129;
number groupId2 = 84130;
array permissionGroups = {{groupId1, "Write"}, {groupId2, "FullControl"}};
updateGroupPermission(resourceId, permissionGroups);
updateGroupResourceIdPermission(resourceId, permissionGroups)
number resourceId = 17148446;
number groupId1 = 17146562;
number groupId2 = 17146563;
Dictionary permissionGroups = {groupId1: "Write", groupId2: "FullControl"};
updateGroupResourceIdPermission(resourceId, permissionGroups);

sendMailTemplateFromResource(parentId, toEmail, alias, mailTemplateId)

number mailTemplateId = 6465;
string toEmail = "email@...";
string alias = "Alias";
number parentId = 17148159;
sendMailTemplateFromResource(parentId, toEmail, alias, mailTemplateId)

sendMailTemplateFromResource(parentId, toEmail, alias, mailTemplateId, fromEmail)

number mailTemplateId = 6465;
string toEmail = "email@...";
string alias = "Alias";
number parentId = 17148159;
EmailAccount fromEmail = new EmailAccount("panel");
sendMailTemplateFromResource(parentId, toEmail, alias, mailTemplateId, fromEmail)

sendMailTemplateFromResource(parentId, toEmail, alias, mailTemplateId, fromEmail, callbackMethod)

number mailTemplateId = 6465;
string toEmail = "email@...";
string alias = "Alias";
number parentId = 17148159;
EmailAccount fromEmail = new EmailAccount("panel");
object callbackMethod = function (string subject, string message){
	subject = "Test" + getRandomNumber(0,10); 
	return {subject, message};
};
sendMailTemplateFromResource(parentId, toEmail, alias, mailTemplateId, fromEmail, callbackMethod)
EmailTemplate_send(mailTemplateId, isTest, toEmail, alias, parentId, fromEmail, callbackMethod)
number mailTemplateId = 17148149;
bool isTest = false;
string toEmail = "email@...";
string alias = "Alias";
number parentId = 17148159;
string fromEmail = empty;
object callbackMethod = empty;
EmailTemplate_send(mailTemplateId, isTest, toEmail, alias, parentId, fromEmail, callbackMethod)
number mailTemplateId = 17148149;
bool isTest = false;
string toEmail = "email@...";
string alias = "Alias";
number parentId = 17148159;
string fromEmail = "panel@...";
object callbackMethod = empty;
EmailTemplate_send(mailTemplateId, isTest, toEmail, alias, parentId, fromEmail, callbackMethod)
number mailTemplateId = 17148149;
bool isTest = false;
string toEmail = "email@...";
string alias = "Alias";
number parentId = 17148159;
string fromEmail = "panel@...";
object callbackMethod = function (string subject, string message){
	subject = "Test" + getRandomNumber(0,10); 
	return {subject, message};
};
EmailTemplate_send(mailTemplateId, isTest, toEmail, alias, parentId, fromEmail, callbackMethod)
New method EmailTemplate_send
sendMailTemplate(toEmail, alias, mailTemplateId)
//run on QAS context
number mailTemplateId = 6465;
string toEmail = "email@...";
string alias = "Alias";
sendMailTemplate(toEmail, alias, mailTemplateId)

sendMailTemplate(toEmail, alias, mailTemplateId, fromEmail, callbackMethod)

//run on QAS context
number mailTemplateId = 6465;
string toEmail = "email@...";
string alias = "Alias";
EmailAccount fromEmail = new EmailAccount("panel");
object callbackMethod = function (string subject, string message){
	subject = "Test" + getRandomNumber(0,10); 
	return {subject, message};
};
sendMailTemplate(toEmail, alias, mailTemplateId, fromEmail, callbackMethod)
EmailTemplate_send(mailTemplateId, isTest, toEmail, alias)
//run on QAS context
number mailTemplateId = 17148149;
bool isTest = false;
string toEmail = "email@...";
string alias = "Alias";
EmailTemplate_send(mailTemplateId, isTest, toEmail, alias)

EmailTemplate_send(mailTemplateId, isTest, toEmail, alias, parentId, fromEmail, callbackMethod)

//run on QAS context
number mailTemplateId = 17148149;
bool isTest = false;
string toEmail = "email@...";
string alias = "Alias";
number parentId = empty;
string fromEmail = "panel@...";
object callbackMethod = function (string subject, string message){
	subject = "Test" + getRandomNumber(0,10); 
	return {subject, message};
};
EmailTemplate_send(mailTemplateId, isTest, toEmail, alias, parentId, fromEmail, callbackMethod)
New method EmailTemplate_send
sendTestMailTemplate(toEmail, alias, mailTemplateId[, fromEmail, callbackMethod])
//run on QAS context
number mailTemplateId = 6465;
string toEmail = "email@...";
string alias = "Alias";
EmailAccount fromEmail = new EmailAccount("panel");
object callbackMethod = function (string subject, string message){
	subject = "Test" + getRandomNumber(0,10); 
	return {subject, message};
};
sendTestMailTemplate(toEmail, alias, mailTemplateId, fromEmail, callbackMethod)
EmailTemplate_send(mailTemplateId, isTest, toEmail, alias[, parentId, fromEmail, callbackMethod])
//run on QAS context
number mailTemplateId = 17148149;
bool isTest = true;
string toEmail = "email@...";
string alias = "Alias";
number parentId = empty;
string fromEmail = "panel@...";
object callbackMethod = function (string subject, string message){
	subject = "Test" + getRandomNumber(0,10); 
	return {subject, message};
};
EmailTemplate_send(mailTemplateId, isTest, toEmail, alias, parentId, fromEmail, callbackMethod)
New method EmailTemplate_send
getProjectQuestionnaireName(qnaireId)
number qnaireId = 619;
getProjectQuestionnaireName(qnaireId);






getProjectQuestionnaireName()

//run on QAS context
getProjectQuestionnaireName();
getProjectQuestionnaireNameByResourceId(qnaireId)
number qnaireId = 11560690;
getProjectQuestionnaireNameByResourceId(qnaireId);

Resource_getResourceName(qniareId)

number qnaireId = 11560690;
Resource_getResourceName(qnaireId);

Questionnaire_current().QualifiedName

//run on QAS context 
Questionnaire_current().QualifiedName;











New method Questionnaire_current
setReportStyleSheetId(reportStyleSheetId)
DCS_use(16749647);
number reportStyleSheetId = 11060624;
setReportStyleSheetId(getResourceIdFromGuid (getResourceGuid(reportStyleSheetId)));
createCrossDiagram({"Q1"}, {"Q2"});
Tabulation.StyleSheet = value
number reportStyleSheetId = 11060624;
TabulationDiagramParameter p = new TabulationDiagramParameter();
p.DataCacheId = 16749647;
Tabulation t = new Tabulation();
t.StyleSheet = new ReportStyleSheet(reportStyleSheetId);
t.CreateCrossDiagram({"Q1"}, {"Q2"}, p);
New Tabulation class
New ReportStyleSheet class
setUserProjectQuestionnaireUserId(userId)
//Run on QAS context
number userId = 5895442;
setUserProjectQuestionnaireUserId(userId);
QAS.UserResourceId = value
// run on QAS context
number userId = 12702700;
QAS qas = QAS_getCurrentQAS();
qas.UserResourceId = userId;
qas.Save();
getUserProjectQuestionnaireUserId()
//Run on QAS context
getUserProjectQuestionnaireUserId();//5895442
QAS.UserResourceId
// run on QAS context
QAS_getCurrentQAS().UserResourceId;//12702700

User.ResourceId

// run on QAS context
User_getQasUser().ResourceId;//12702700
setRPQUserId(userId)
//Run on QAS context
number userId = 5895442;
setRPQUserId(userId);
QAS.UserResourceId = value
// run on QAS context
number userId = 12702700;
QAS qas = QAS_getCurrentQAS();
qas.UserResourceId = userId;
qas.Save();
addJournal(resourceId, userId, journalType, content)
number userId = 5895442;
number resourceId = 17148446;
string journalType  = "Comment";
string content = "xxx";
addJournal(resourceId, userId, journalType, content);
new ResourceJournalEntry (resourceId, journalType, content).Save()
number resourceId = 17148446;
string journalType  = "Comment";
string content = "xxx";
new ResourceJournalEntry (resourceId, journalType, content).Save();
getTimezone([userId])
number userId = 5895442;
getTimezone(userId);
// run on QAS context
getTimezone();
User.TimezoneId
	
number userId = 12702700;
User user = User_getUserByResourceId(userId);
user.TimezoneId;
// run on QAS context
User user = User_getQasUser();
user.TimezoneId;
setTimezone([userId,] timezoneId)
number userId = 5895442;
number timezoneId = 40;
setTimezone(userId, timezoneId);
// run on QAS context
number timezoneId = 40;
setTimezone(timezoneId);
User.TimezoneId = value
	
number userId = 12702700;
number timezoneId = 40;
User user = User_getUserByResourceId(userId);
user.TimezoneId = timezoneId;
user.Save();
// run on QAS context
number timezoneId = 40;
User user = User_getQasUser();
user.TimezoneId = timezoneId;
user.Save();
setUserRoleId(userId, resourceTemplateId)
number userId = 5895442;
number resourceTemplateId = 6;
setUserRoleId(userId, resourceTemplateId);
setResourceTemplateResourceId(userId, resourceTemplateId)
	
number userId = 12702700;
number resourceTemplateId = 1847;
setResourceTemplateResourceId(userId, resourceTemplateId);

User.ResourceTemplateResourceId = value

	
number userId = 12702700;
number resourceTemplateId = 1847;
User_getUserByResourceId(userId).ResourceTemplateResourceId = resourceTemplateId;
getUserRoleId(userId)
number userId = 5895442;
getUserRoleId(userId);//6
getResourceTemplateResourceId(userId)
	
number userId = 12702700;
getResourceTemplateResourceId(userId);//1847

User.ResourceTemplateResourceId

	
number userId = 12702700;
User_getUserByResourceId(userId).ResourceTemplateResourceId;//1847
isMemberOfSampleRule([userId,] sampleRuleId)
	
number sampleRuleId = 125991;	
number userId = 5895442;
isMemberOfSampleRule(userId, sampleRuleId);
	
// run on QAS context
number sampleRuleId = 125991;
isMemberOfSampleRule(sampleRuleId);
User_isMemberOfSampleRule(userId, sampleRuleId)
number sampleRuleId = 125991;	
number userId = 12702700;	
User_isMemberOfSampleRule(userId, sampleRuleId);
	
// run on QAS context	
number sampleRuleId = 125991 ;	
number userId = QAS_getCurrentQAS().UserResourceId;
User_isMemberOfSampleRule(userId, sampleRuleId);
New method User_isMemberOfSampleRule
EmailTemplate.PrimaryKey EmailTemplate.ResourceId
UserQuarantine.QuarantineResourceId UserQuarantine.QuarantineResourceId
User.PrimaryKey User.ResourceId
getQuestionnaireTemplateId(qualifiedName)
string qualifiedName = "Common resources\\Questionnaire Template\\Panel Questionnaire Template";
getQuestionnaireTemplateId(qualifiedName);//536
new QuestionnaireTemplate(qualifiedName).Id
string qualifiedName = "Common resources\\Questionnaire Template\\Panel Questionnaire Template";
new QuestionnaireTemplate(qualifiedName).Id;//11560689
New class QuestionnaireTemplate
getProjectQuestionnaireId(qualifiedName)
string qualifiedName = "Common resources\\Questionnaire\\Ad Hoc 178";
getProjectQuestionnaireId(qualifiedName);//619
new Questionnaire(qualifiedName).Id
string qualifiedName = "Common resources\\Questionnaire\\Ad Hoc 178";
new Questionnaire(qualifiedName).Id;//11560690
New class Questionnaire
getReturnToProjectQuestionnaireId()
	
// run on QAS context
getReturnToProjectQuestionnaireId();//619
GetReturnToQuestionnaireId()
	
// run on QAS context
GetReturnToQuestionnaireId();//11560690
New method GetReturnToQuestionnaireId
getReportStyleSheetIdByName(qualifiedName)
string qualifiedName = "Common resources\\Report stylesheet\\Tabulation Standard Report Stylesheet";
getReportStyleSheetIdByName(qualifiedName);//45
new ReportStyleSheet(qualifiedName).Id
string qualifiedName = "Common resources\\Report stylesheet\\Tabulation Standard Report Stylesheet";
new ReportStyleSheet(qualifiedName).Id;//11060624
New class ReportStyleSheet
getReportStyleSheetId()
DCS_use(16749647);
number reportStyleSheetId = 11060624;
setReportStyleSheetId(getResourceIdFromGuid (getResourceGuid(reportStyleSheetId)));
createCrossDiagram({"Q1"}, {"Q2"});
getReportStyleSheetId();//45
Tabulation.StyleSheet
number reportStyleSheetId = 11060624;
TabulationDiagramParameter p = new TabulationDiagramParameter();
p.DataCacheId = 16749647;
Tabulation t = new Tabulation();
t.StyleSheet = new ReportStyleSheet(reportStyleSheetId);
t.CreateCrossDiagram({"Q1"}, {"Q2"}, p);
t.StyleSheet;//11060624
New class Tabulation
New class ReportStyleSheet
getResourceIdFromGuid(guid)
string guid = "xx";
getResourceIdFromGuid(guid);//619
getResourceUniqueIdFromGuid(guid)
string guid = "xxx";
getResourceUniqueIdFromGuid(guid);//11560690
task[TASK_CASE_NUMBER] task[TASK_RESOURCE_ID]
getCurrentUserId()
getCurrentUserId();//5895442
User_getCurrentUser()
User_getCurrentUser().ResourceId;//12702700
getUserIdFromResourceId(guid)
string guid = "xxx";
getUserIdFromResourceId(guid);//5895442
getResourceUniqueIdFromGuid(guid)
string guid = "xxx";
getResourceUniqueIdFromGuid(guid);//12702700
createUser(userResourceTemplateId) User_new(userResourceTemplateId)
getRPQUserId() QAS_getCurrentQAS().UserResourceId
User class.ResourceTemplateId User class.ResourceTemplateResourceId
UserQuarantine.AddedByUserId UserQuarantine.AddedByUserResourceId New property UserQuarantine.AddedByUserResourceId
UserQuarantine.RemovedByUserId UserQuarantine.RemovedByUserResourceId New property UserQuarantine.RemovedByUserResourceId
Quarantine_getUserIdsOfQuarantined(quarantineIdList)
	
array quarantineIdList = {15550518,15550519};
Quarantine_getUserIdsOfQuarantined(quarantineIdList);
//{5895442,5898785,...}
Quarantine_GetUserResourceIdsOfQuarantined(quarantineIdList)
	
array quarantineIdList = {15550518,15550519};
Quarantine_GetUserResourceIdsOfQuarantined(quarantineIdList);
//{12702700,12706043,..}
New method Quarantine_GetUserResourceIdsOfQuarantined
User.CreatedByUserId User.CreatedByUserResourceId New property User.CreatedByUserResourceId
User.ModifiedByUserId User.ModifiedByUserResourceId New property User.ModifiedByUserResourceId
SampleRule.QuestionnaireId SampleRule.QuestionnaireResourceId
SampleRule.GroupId SampleRule.GroupResourceId