Skip to main content
Jan 22, 2020 11:59 AM UTC
Question

How to pass Collection(Edm.String) parameters to oData SaveUserTask POST API from ThingWorx?

Hi,

 

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.

6 replies

Jan 23, 2020 10:00 AM UTC

Hi,

 

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,

Raluca Edu

Prem-IKEAAuthor
Jan 23, 2020 10:07 AM UTC

Hi,

 

Sorry, my mistake. SaveWorkItem is the reference in (Windchill REST Services)WRS 1.5 documentation at page no 152.

 

Please check and assist. thanks!

 

SaveWorkitem
The SaveWorkitem action saves the specified task. The action is bound to the
Workitem entity.
You must provide the following mandatory parameters as input to the action in the
request body:
{
"UserEventList":[<routing_options >],
"WorkitemComment":"<comment_for_the_workitem>",
"VoteAction":"<Vote_option_selected_by_the_participant>",
"AutomateFastTrack":<option_to_specify_if_change_notice_should_be_
explicitly_created, valid values true or false>,
"Variables":[<workflow_activity_variables>]
}

Prem-IKEAAuthor
Jan 23, 2020 10:15 AM UTC

Even if we pass We Agree to the Request still issus exists. please refer the attachment