Hi,
I am trying to fetch the security roles based on the licenses. As per my code, I am able to get the roles but what I want is for Team Members - only the roles related to Team members should be there and for Operations only roles related to Operations should be there.
Please see the attached code. I have got the license value at formdatasource.
SecurityLicenseRole licenseRole,secLicenseRole;
SecurityRole role, secRole;
SecurityUserRole userRole,secUserRole;
SecurityLicenseRoleCopy licenseRoleCopy1;
UserLicenseType license;
str strSecRole;
strSecRole = '';
while select * from secRole
exists join secUserRole
where secRole.RecId == secUserRole.SecurityRole &&
secUserRole.User == userRole.User
{
strSecRole = strFmt("%1%2,",strSecRole,secRole.Name);
}