We are trying to call a post method oData API with different set of params. I have attached a picture which has parameters and error thrown by API. Please assist, how to pass collection(edm.string) to oData API.
Unfortunately, there is no reference of SaveUserTask service in ThingWorx documentation, but I recommend to try to set parameter only to : "we agree to this request"
Hope it helps,
Sorry, my mistake. SaveWorkItem is the reference in (Windchill REST Services)WRS 1.5 documentation at page no 152.
Please check and assist. thanks!
The SaveWorkitem action saves the specified task. The action is bound to the
You must provide the following mandatory parameters as input to the action in the
explicitly_created, valid values true or false>,
Even if we pass We Agree to the Request still issus exists. please refer the attachment
Thanks for info.
Question: the same service is running from Postman?
Please check Application.log/Error.log and Tomcat logs, it is useful to see a stacktrace of the error. (Enable Strack tracing and Enable Script Stack Tracing should be checked in LoggingSubsystem)
Appreciate your assistance.
Yes, it is working from postman and enclosed the attachment.
I have enabled the stack trace in logging subsystem and still shows the same message.
[context: com.thingworx.webservices.context.HttpExecutionContext@7b122fc6][message: Unable to Invoke Service SaveWorkitem on PSM_WindchillODataConnector_V1 : Your route exchange has failed. Resource Error [Illegal argument for type: Collection(Edm.String) value: We Agree to this request]]
A case was open for this kind of error and a dedicated engineer is looking into the issue.
Please follow that case.