Skip to main content
1-Visitor
April 1, 2020
Solved

Flow's Set Thing Property Action to set parameter of Infotable type?

  • April 1, 2020
  • 7 replies
  • 3113 views

Hi all,

Anybody used Thingworx Flow "Set Thing Property" Action to set parameter of Infotable type?

Seems like it could only be used to set basic types like string or number?

Any ideas of how to use it for parameters of type Infotable ?

Thanks

Best answer by slangley

Hi @anickolsky_2022.

 

Per the case opened for this issue, the following is the workaround:

 

Create another javascript service which assigns the Property value of Infotable P1 to P2.  Example: me.P2=me.P1.  In Workflow, instead of using SetThingProperty, use another Execute Service action for executing this new Service.

 

If you agree that this is the solution, please mark this post as the Accepted Solution for the benefit of others on the community.

 

Regards.

 

--Sharon

7 replies

raluca_edu
17-Peridot
April 2, 2020

Hi,

 

I tested in TWX Flow 8.5.3 and it is working on my side:

 

raluca_edu_0-1585816056317.pngraluca_edu_1-1585816092379.png

 

What version are you using?

 

Raluca Edu

1-Visitor
April 2, 2020

Hi Raluca,

I'm on 8.5.4

Issue is if input is infotable (and holds multiple rows) it's not possible to map it as infotable to infotable.

I cannot see input in your silde.

Pls see attached screenshots.

Many thanks,

Andrey

raluca_edu
17-Peridot
April 2, 2020

Hi,

 

I have added infotable as input for set property and I am getting the following error in Application.log:

 

"An Invalid Property Value Was Sent To [thing1 Property: [[{"name":"tom","age":1},{"name":"jerry","age":2}]]"

 

Can you see same error in Application.log after running flow?

 

Thanks,

Raluca Edu