cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Valuestream with script

SOLVED
Marble

How to create Valuestream with script

Hi Guys,

I would like to achieve a following thing.

I would like to create a script wich will create a Valuestream and assign that VS to Thing from which the script is called.

I know how to create Things automatically, I dont know how to bend that code to create a Valuestreams.

Any ideas?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How to create Valuestream with script

Hi Tomas,

  1. Creating a ValueStream it's the same as Creating a thing, the only difference it's the base template.
  2. Assigning a ValueStream to a Thing, as easy as: me.SetValueStream({ name: "value_stream_name" });

Best Regards.

Carles.

2 REPLIES 2
Highlighted

Re: How to create Valuestream with script

Hi Tomas,

  1. Creating a ValueStream it's the same as Creating a thing, the only difference it's the base template.
  2. Assigning a ValueStream to a Thing, as easy as: me.SetValueStream({ name: "value_stream_name" });

Best Regards.

Carles.

Re: How to create Valuestream with script

Sorry should have try it on my own. It was easier than I anticipated.

Thanks a lot.