Question6Replies132Views JaewoongS9924 Member since 2018 14 posts Morgan Stanley Posted: 1 year agoLast activity: 1 year 6 months ago Closed Solved Treating Instance from C# in OpenspanHi,I am a beginner of RPA and have some questions about to use an instance from C# code(script component) in openspan.Let's say we have a class called "person" which contains properties string name, int age.1. Automation calls GetPerson method from a script component and if I want to save this instance in openspan, which component should I use?2. Also, if we can store that person instance in openspan, how can we access to the person's instance to get its properties "name" and "age"?Thank you so much for your help in advance! Robotic Process Automation ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Accepted Solution Posted: 1 year agoJayachandra Reddy K Infosys replied to JaewoongS9924If you are able to return the person object from script then in the automation generate the proxy of the result and it will give all properties of the person object and appear in the object explorer. Posted: 1 year agoJaewoongS9924 Morgan Stanley replied to Jayachandra Reddy KThank you so much for the answer! Posted: 1 year agoJaewoongS9924 Morgan Stanley replied to Jayachandra Reddy K Do you know which variable type should I use? (It seems that I can create an instance or use proxy) Also, is it possible to update the properties of the instance in openspan? Posted: 1 year agoJayachandra Reddy K Infosys replied to JaewoongS9924To declare variable type, add entry point in the automation and click on + to add params. By default it is string, to change the data type then click on string -> dropdown->browse then select required data type. Yes, you can update the properties of proxy. Posted: 1 year agoJaewoongS9924 Morgan Stanley replied to Jayachandra Reddy KThank you so much Jaya, I am looking at the proxy class, but not sure how I can update properties. Is there any method inside of proxy such as "set"? Posted: 1 year agoJayachandra Reddy K Infosys replied to JaewoongS9924In object explorer, you can see all properties, methods, events of proxy object by selecting proxy object. If the object variables have get and set properties then you can assign values.