Skip to main content

EnterpriseVariable.UpdateVariableAsync

Description

Updates the specified Enterprise Variable details inside the connected Control Room

Signature [C#]

Task UpdateVariableAsync(EnterpriseVariable eVar)

Properties

Input

PropertyDescription
EnterpriseVariable eVarEnterprise Variable details to update

Remarks

Use UpdateVariableAsync API to update enterprise variables inside the connected Control Room.

Example

C#
public void UpdateEnterpriseVariable()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");

string updateValue = "510";

EnterpriseVariable eVar = new EnterpriseVariable()
{
ID = 1,
Value = updateValue
};
Task.Run(() => context.EnterpriseVariables.UpdateVariableAsync(eVar)).Wait();
}
C#
public IControlRoomContext LoginControlRoom()
{
IControlRoomContext context;
string connectionString;

connectionString = "ServerUrl=https://demo.onnitellibuddies.com;UserName=demoadmin;Password=password";
context = new ControlRoomContext(connectionString);

context.Open();
return context;
}