Jump to content

Recommended Posts

Posted

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?

 

image.thumb.png.24ddebbcf10fa59463d739aada700929.png

image.thumb.png.66fa965878c9657e6cc2fd5456c1a4b3.png

Posted

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:image.png.ea73e51302ef315f2309405e8e8e2039.png

Posted

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": ""
}
}

Posted

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}"
}
}

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...