Edit a Boolen asset

HI

I created a boolen asset where the value is False on each Machine. I want to read and Edit that value. Lets say
Asset “Settings” has boolen False

How can i read that asset through inconfig and Edit the value to True when perticular setting is changes.

I’m not using Orchestrator API so is there any way to changes by using inConfig in if statement?

Thanks.

@Latif

set asset activity can be used to edit it

to get from config you just need to add the asset to assets page in config..that gets it automatically..but be sure if you are changing value using set asset then config variable value would not change as the assets are retrieved only at the start of the process..so if you want updated values explicitly you need to set the value in config variable or use a separate variable and use get asset when needed

cheers

@Latif you can read the asset using in_Config(“Settings”), and update it during the run like this: in_Config(“Settings”) = True But this only changes it in memory it won’t update the actual Orchestrator asset. To change the real value you will need the Orchestrator API. For simple cases, writing to a local file like Excel or JSON is a good workaround.

I have define an asset in orchestrator as boolen.
Have set that asset name under inconfig “assets” sheet.

now when im reading inconfig(“ReadValue”).tostring it gives me error.

Act we are not using get asset and set asset så thats the issue we.. want to retrieve and work with inconfig..

We only want to check that value each time we start the process. As after process is started we are not changing it.

1 Like

Hello @Latif

You cannot update the actual asset value globally by only changing inConfig during runtime.

To make a permanent asset value change (for example, from False to True), you must use the Orchestrator interface

Local value changes in your workflow (using inConfig or a variable) do not affect the Orchestrator asset after the process ends.

Regards,
Rajesh Rane

Hey @Latif absolutely yes you can do that. Just use Get Asset once at the start to read the boolean then use an If to branch your logic. You don’t need to change it mid‑process thats clean, simple and fully valid

@Latif

if you only need to check then use get asset..and after checking if needed to change use set asset

cheers