-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Enhancement Requests
Posts posted by Chris Bayliss
-
-
Hi all,
I'm trying to dynamically kick off change requests using the Hornbill api and using the logChangeRequest method, but in order for it to be logged correctly and the BPM to kick in I also need to feed it the expected answers from a progressive capture form. I've tried answering the questions using their field id within the "questions" param, however no matter which way I try to format them I get a FlowCode exception.
I'm making the call within a PoSh script and have successfully logged Service Requests/Incidents, just this is currently giving me grief!
Example params:
$xmlmcParams = "<summary>$summary</summary><description>$description</description><requestType>Change Request</requestType><teamId>STB/IT_#####/IT_#####/</teamId><status>status.new</status><sourceType>API</sourceType><questions><Question_1>Standard</Question_1><Question_2>Low</Question_2><Question_3>Standard process</Question_3><Question_4>Low</Question_4><Question_5>Standard process</Question_5><Question_6>Roll back</Question_6><Question_7>n/a</Question_7></questions><changeType>Standard</changeType>"Exception:
FlowCode Exception (com.hornbill.servicemanager/entities/ChangeRequests/fc_ops/logChangeRequest): Input parameter validation error: The simple type value contains unexpected child elements at location '/methodCall/params/questions'
Do I also need to supply the questionFieldMap param for this to work?
If anyone has a working example of making a call which contains answers which would normally be fed from a prog capture that would be b e a u tiful.
Feeding PCF answers to request via API
in Integration Connectors, API & Webhooks
Posted
@Steve G Legendary. Thanks Steve!