mmensah Posted October 31 Posted October 31 Hello Everyone, I've been trying to explore hornbill's API capabilities to connect power automate. I followed the instructions to set up a flow, and Power Automate had no issue with the json references, but the test still failed. Upon reading the failure output i noticed the error messages are the same as the message you see when you browse the endpoint url, suggesting the the problem is with the endpoint. How would i go about rectifying this?
Jim Posted October 31 Posted October 31 What are you sending over? Can we see the payload and method url minus the instance name
mmensah Posted October 31 Author Posted October 31 Hi Jim, The end goal of this test was for it to log a request in my testing team on the platform, please see below:
Jim Posted October 31 Posted October 31 you'll want this on the end of the uri for one, an example is here Service Manager API Reference - Entity API / logServiceRequest xmlmc/apps/com.hornbill.servicemanager/ServiceRequests
Jim Posted October 31 Posted October 31 you also need the @service and @method in the body that your invoking for example mine look like this to update a request, notice the double @ sign for power automate otherwise it throws errors, This is how they should be structured generally, with varying params for each method needed { "@@service": "apps/com.hornbill.servicemanager/Requests", "@@method": "update", "params": { "requestId": "", "customFields": "", "h_external_ref_number": "" } }
Jim Posted October 31 Posted October 31 so at the very minimum, I would expect the below fields to be set to set a customer, follow a process, map to a service and catalog item, etc URI https://mdh-p01-api.hornbill.com/walthamforest/xmlmc/apps/com.hornbill.servicemanager/ServiceRequests { "@@service": "apps/com.hornbill.servicemanager/ServiceRequests", "@@method": "logServiceRequest", "params": { "summary": "my test request", "description":"The description", "customerType":"0", "customerId": "{userId}", "teamId": "{teamId}" "requestType": "Service Request", "serviceId": "{serviceId}", "catalogId":"{catalogId}", "bpmName":"{my-process-name}" } }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now