Available Roles
3 min
availableroles is the standard of name we use for defining the source of data for a selectrole control for example if we have a selectrole control we wish to only allow selection of a department, then the availableroles parameter will reference =//roles/departments in this article i am using availableroles, but this same logic applies to any select control for activate objects, e g resources, assets, services, tasks options there are several options for format of availableroles option example notes role reference reference string with expression string with role name string with multiple role names multiple string parameters this requires an expression to convert these two parameters to a comma separated list attached is a package of examples demonstrating the above options debugging if you are having issues with your configuration, browser debug tools can be helpful in troubleshooting, open up the browser debug tools and open the network tab, then click in the selectrole and click browse, you will then see the call to the api if it looks something like below you are looking good name possible cause role?term=\&subitem=(collection) this means you probably have reference a collection of parameters, the multiple string parameters example above has a foreach which converts it into a comma separated list role?term=\&subitem={departments,locations} this is an array of role names, similar to the problem above the list of parameters has been converted to an array and should be converted into a comma separated list, or use one of the other options