I have successfully invoked a workflow using a php script. The script authorises itself as a service account. There are a couple of issues with the workflow that gets created.
- The email sent after the request is submitted does not mention which service has been requested. In the request monitor within SNOW AP, the correct service is shown and the correct workflow is executed.
- The request user in the request monitor is shown as the service account not the requesting user although the email does get sent to the correct address. If you then go to the SNOW AP, the requests do not show in the My Requests tab. I am assuming that if the request needs authorisation, the service account will be shown as the requestor, not the actual user.