We are working to test using ServiceNow as the front-end for App Portal requests. We have set up the initial integration via the documentation and have successfully imported the catalog items into ServiceNow.
When we go to test submitting a request thru the ServiceNow service catalog we are able to find the catalog items, but when trying to submit a test request we do NOT see a spot on the form for the target device name and/or where to specify the install or uninstall action.
Below are questions from our internal ServiceNow engineer, that we are trying to get assistance with:
Thanks for your help.
Sep 13, 2021 12:20 PM
The REST API documentation does not really mention it, but you would need to add the following to the request body for the submit order endpoint:
"request":1
(the default value is 0, which is install).. A Jim had mentioned you would have to figure out how to modify the workflow logic in ServiceNow. I hard-coded the above value in the submit order script and now my ServiceNow instance only submits uninstall requests :). I just wanted to show where this might be done. I'm hesitant to get into anything involving the modification of the default workflow, but I did want to illustrate that it should be fairly straightforward.. The following screen capture illustrates:
Sep 13, 2021 03:17 PM
If the integration is configured and working correctly, then the variable set will be applied automatically to all App Broker catalog items. It sounds like that isn't happening, so start by looking at the ServiceNowIntegration.log file on the App Broker server. From there, look at incoming REST logs in ServiceNow. This issue is frequently an issue with permissions for the integration account in ServiceNow. A quick troubleshooting step is to give the integration account full Admin rights in ServiceNow and test the sync process. If the variable set gets applied (only on new items, not updated items), then you can confirm it is a permissions issue and then review the permissions (or lack of permissions) that may be blocking that action from occurring (again, you can hopefully see what's going on in the incoming REST logs in ServiceNow). If you can't figure it out from this information, then please submit a support case, and our Support team will be happy to assist you.
As for the install vs. uninstall, that is not currently a feature of our out-of-box integration. This is configured only for installations. However, if you are comfortable making modifications in ServiceNow, you could add your own variables to the App Portal Variable Set, or manually add an additional variable set, that asks install/uninstall and then applies that variable in the Submit Order step of the workflow. This would also involve modifying the logic in the Submit Order activity to look at that variable and modify the REST call being made to reflect install or uninstall.
Sep 13, 2021 01:11 PM
The REST API documentation does not really mention it, but you would need to add the following to the request body for the submit order endpoint:
"request":1
(the default value is 0, which is install).. A Jim had mentioned you would have to figure out how to modify the workflow logic in ServiceNow. I hard-coded the above value in the submit order script and now my ServiceNow instance only submits uninstall requests :). I just wanted to show where this might be done. I'm hesitant to get into anything involving the modification of the default workflow, but I did want to illustrate that it should be fairly straightforward.. The following screen capture illustrates:
Sep 13, 2021 03:17 PM