Symptom
You would like to know how to fetch the business roles of a business user with ABSL scripts from your custom solution within SAP Cloud Applications Studio.
Environment
- SAP Cloud for Customer
- SAP Business ByDesign
- SAP Cloud Applications Studio
Resolution
You can make use of GetAssignedBusinessRoles function from Context reuse library.
Sample script:
var assignedRolesCollection: Collectionof IdentityBusinessRoleID;
var assignedRoles:IdentityBusinessRoles;
assignedRoles = Context.GetAssignedBusinessRoles();
assignedRolesCollection = assignedRoles.BusinessRoles;
See Also
Please refer to SAP Cloud Applications Studio help portal:
Keywords
PDI, SDK, script, business, role, user, logged, fetch, retrieve, query, GetAssignedBusinessRoles , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To