Inside Activate
...
Import Service Instances
Import Service Instances with role path
5 min
overview importing service instances with role (or other object) paths can be a little tricky as often the expressions in the file are evaluated before being bound into the service instance this results in the value not mapping to the values of the listpanel or other control the method detailed below prevents expressions in the import file from being evaluated early how to setup example import service in attachment under services > example services save import file to file system confirm service path and user are valid in the import file run import service instances task select import file copy data template from below into data template field expected result wendy evans (or other user specified in file) will end up with a instance of the example service when this service is updated the role listpanel will default to the administrators role key points path to role (or other object) in the file must not include the = as this will be evaluated prior to being bound to the service instance data and will bind the role name, not the path the equals sign in the data template in the role binding is a literal which won't be evaluated the expression in the % % will be evaluated as a string the resultant value will be =//roles/system roles/administrators which will be written into the role binding on the service instance data attachments import service instances example import file csv example import file to use on import service instances task import service instance example service activate package of an example service which will work with the import file please note path of this service must match the path in the import file data template on import service instances task note replace % with % escaped so this article doesn't evaluated the expressions \<data> \<role>=% =//line/role%\</role> \</data> file format example service user computer role \=//services/example services/import service instances example activatedemo\wevans //roles/system roles/administrators