I'm currently working on a Robotic Desktop Automation item where it would be extremely beneficial to be able to access Interaction variable values in a lookup-table-like fashion (accessing variable values by interaction key + variable name).
I see that the Robot Inspector populates a full list of the available interaction variables, and allows successful retrieval of variable values by clicking the items in the list. I am looking to achieve something similar. Could someone explain how Robot Inspector does this, and/or provide a suggestion on how I might be able to access interaction variable values by their variable name?
***Edited by Moderator: Pooja Gadige to change content format from Discussion to Question, add platform capability tag***
There are a couple of methods not exposed to the automation designer interface that should allow you to get and set Interaction Manager context variable values by name: GetPropertyValue and SetPropertyValue. These properties are accessible in C# script.
The InteractionManager also has a string property that should contain the Interactions.xml document, allowing you to parse the context variables from the document string without having to worry about locating/accessing the file on disk.