Skip to main content
14-Alexandrite
January 22, 2020
Question

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

  • January 22, 2020
  • 6 replies
  • 3897 views

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

raluca_edu
17-Peridot
January 23, 2020

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-IKEA14-AlexandriteAuthor
14-Alexandrite
January 23, 2020

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-IKEA14-AlexandriteAuthor
14-Alexandrite
January 23, 2020

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