cancel
Showing results for 
Search instead for 
Did you mean: 

How to set Property in Unity Script

Bharath_Nanjapp
Champ in-the-making
Champ in-the-making

Hi Abhishek,

 

If the force case-insensitivity option is selected, I would recommend reaching out to your first line of support for more troubleshooting. 

 

Best,

Daniel

1 ACCEPTED ANSWER

Scott_McLean
Elite Collaborator
Elite Collaborator

Hi Bharath,

I'm assuming you're doing this in an IWorkflowScript

If you review the SDK section on the WorkflowEventArgs class, you'll find:

  • args.PropertyBag (this is scoped to the current workflow action)
  • args.SessionPropertyBag (this is scoped to the current session and is usually the one you want to access)

Either one includes the Set() method that takes the name of the property and a value as:

args.SessionPropertyBag.Set("MyPropertyName", "MyValue");

View answer in original post

2 REPLIES 2

Scott_McLean
Elite Collaborator
Elite Collaborator

Hi Bharath,

I'm assuming you're doing this in an IWorkflowScript

If you review the SDK section on the WorkflowEventArgs class, you'll find:

  • args.PropertyBag (this is scoped to the current workflow action)
  • args.SessionPropertyBag (this is scoped to the current session and is usually the one you want to access)

Either one includes the Set() method that takes the name of the property and a value as:

args.SessionPropertyBag.Set("MyPropertyName", "MyValue");