Martyn Houghton Posted July 25, 2022 Posted July 25, 2022 I am currently testing the creation of some reoccurring scheduled requests via the API Scheduler, but even though the requests get logged via the call to 'logServiceRequest' and the 'bpmName' parameter is passed with the correct and valid name, no BPM is being spawned against the request. Any suggestions as why it is not spawning? Cheers Martyn { "APIKey": "REMOVED", "InstanceID": "REMOVEd", "Schedule": [{ "Enabled": true, "CronSchedule": "15 * * * * *", "DayOfMonthANDDayOfWeek":false, "ScheduleFrom": "2022-07-25T00:00:00.000Z", "ScheduleTo": "2022-07-26T00:00:00.000Z", "Service": "apps/com.hornbill.servicemanager/ServiceRequests", "API": "logServiceRequest", "APIParams":{ "0": { "Type":"Content", "Parameter":"summary", "Content":"UKLive:- Prepare Detail Health Status report" }, "1": { "Type":"Content", "Parameter":"description", "Content":"# Check critical BI Jobs status\r\n# Check and verify the essential functionalities of Idox software solution\r\n# Take preventive action if any failure" }, "2": { "Type":"Content", "Parameter":"requestType", "Content":"Service Request" }, "3": { "Type":"Content", "Parameter":"customerId", "Content":"11152" }, "4": { "Type":"Content", "Parameter":"customerType", "Content":"1" }, "5": { "Type":"Content", "Parameter":"priorityId", "Content":"3" }, "6": { "Type":"Content", "Parameter":"sourceType", "Content":"Scheduler" }, "7": { "Type":"Content", "Parameter":"serviceId", "Content":"245" }, "8": { "Type":"Content", "Parameter":"catalogId", "Content":"973" }, "9": { "Type":"Content", "Parameter":"bpmName", "Content":"Idox SR SLM" } } }] }
Martyn Houghton Posted July 25, 2022 Author Posted July 25, 2022 Resolved this, as even though I set the 'bpmName' parameter to the correct display name of the BPM, the internal name used by Hornbill is all lower case with the spaces replaced with hyphens, so had to use 'idox-sr-slm' rather than 'Idox SR SLM'. Cheers Martyn 1
Victor Posted July 25, 2022 Posted July 25, 2022 @Martyn Houghton when it comes to API params, display name is not necessarily the param name, for example on the BP param. But yes, it needs to be the ID which is the hyphenated name. 1
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