Dear,
I know this function to get parameter inside Qaction C#:
Example:
string s_city = Convert.ToString(protocol.GetParameter(50));
But how can I retreive the IP and Port/Bus in C# property of an element?
Regards Cedric Buerfent
Bram Devlaminck [SLC] [DevOps Enabler] Answered question 24th September 2025
Hi Cedric,
You can achieve this by defining 2 parameters in your XML
- One of the type bus
- A second with the type ip or pollingip (you can choose one or the other option, depending on whether you are also interested in the port or not)
Then those parameters behave as normal ones, and you should be able to follow the same as you already have for your example with parameter 50 to fetch them.
João Severino [SLC] [DevOps Catalyst] Answered question 24th September 2025