Share all details about your problem, including any error messages you may have received.
I have an issue in the provisioning policy form when I try to assign any field the value to be : Script
Then try any Script and event the simplest one : return “test”
When I run : preview form it is not working
I also tried to create AD account from manage accounts to check whether the value is auto populated in the Workitem but it is not populated
The only case working with me is to assign static value
Both rule / script not working
Steps for the issue:
1- Manage Account → request AD Account
2- Workitem is presented , I filled the workitem then the provisioning went correctly
3- I tried to automate this so I opened : Applications → Application Definition→ AD → Configuration→ Provisioning Policy → create
4- I edited the value for SAMAccount → for type settings I checked the review required → for value settings I choose it to be script → try simplest script return “test”; not working
5- I also created rule which contain multiple switch cases to return value based on field name and it is also not working
Hi @AlaaKhaled, if you are using the rule, please go to Debug, search for the rule, and provide the full code here.
If you are using a script, go to Debug → Application and provide the full application configuration, if you feel it is safe to share.
I have another question: how can I prevent the work item from being displayed at all? The field is auto-populated, but it is still displayed to the user with the calculated value. How can this be skipped?
In the provisioning policy, are you setting the value for the required attributes that is needed for your operation. If mandatory attribute value is not generated then it will show a workitem and display you the fields with calculated value and extra value you need.
Hello @AlaaKhaled,
If the work item is being populated, please check which attribute is being populated. Then, check that attribute in the provisioning policies and, in the Type Settings, verify whether the “Review Required” option is enabled. Disable it, and then the work item will not be shown.