static void findAllTheDutiesForSpecificPrivileges(Args _args)
{
SecurityTask securityTask;
SecuritySubTask securitySubTask;
{
SecurityTask securityTask;
SecuritySubTask securitySubTask;
#define.SecurityTask("AbbreviationCodeImport_Import_RU") // your privileges name
select firstOnly RecId from securityTask
where securityTask.AotName == #SecurityTask
&& securityTask.Type == SecurityTaskType::Privilege;
while select SecurityTask from securitySubTask
where securitySubTask.SecuritySubTask == securityTask.RecId
{
select firstOnly * from securityTask
where securityTask.RecId == securitySubTask.SecurityTask;
info(strFmt(“%1,%2,%3″, securityTask.AOTNAME, securityTask.Name, securityTask.Type));
}
}
}
}
No comments:
Post a Comment