After each VMs deployment, through the event broker I run a workflow to build a HTML report with the list of VMs settings and send it to the requester by email.
In the report , I collect the deployment name with a Rest API request on vRA :
var restUrl = "catalog-service/api/consumer/resources"
var restMethod = "GET"
var restFilter = "name eq '" + vraVmName + "'"
I the workflow is launched manually its works fine, the deployment name is found.
But if the workflow is running by event broker, the deployment name is not found, The workflow is triggered on
Any idea why ?
Is your REST endpoint configured with per user session? vRA use a different user from your vRO login credentials, and the API may not allow to read the same info.
Try to change it to shared session.