Skip to main content
Jul 23, 2020 8:08 AM UTC
Solved

Do we have any service to remove or detach Value Stream to Assets?

Hi All,

 

 

I know we have a service SetValueStream that can be used to add the ValueStream to an Asset. In the same way, Do we have have any service to remove or detach a Value stream to an Assets?

or we have any other options to remove the values.

Please let me know.

Thanks for your reply.

c_lowyAnswer
Jul 23, 2020 1:00 PM UTC

Hi @koushal ,

 

As far as I know there is no out of the box service for that, but you can create a custom JavaScript service and use the SetValueStream service with an empty input like this :

me.SetValueStream({
name: "" /* THINGNAME */
});

 

I hope this helps.

3 replies

c_lowyAnswer
Jul 23, 2020 1:00 PM UTC

Hi @koushal ,

 

As far as I know there is no out of the box service for that, but you can create a custom JavaScript service and use the SetValueStream service with an empty input like this :

me.SetValueStream({
name: "" /* THINGNAME */
});

 

I hope this helps.

koushalAuthor
Jul 24, 2020 5:31 AM UTC

HI @c_lowy,

 

Do we need to enable and restart the Asset Thing after removing the Value Stream?

or Is it fine to remove the ValueStream without restart the Thing?

Jul 24, 2020 6:19 AM UTC

Hi @koushal ,

 

I believe the SetValueStream service does not require a Restart after it has been called. Service GetValueStream can be used to validate change of assigned Value Stream.