cancel
Showing results for 
Search instead for 
Did you mean: 

How to get tag values of dynamic tags in BLS

former_member186805
Participant
0 Kudos

I have a PCo query in FixedQuery mode and passing tag names dynamically using "RETRIEVE [Param.1]" where Param.1 is tag name stored in SQL. I am trying to get each tag value. I created one transaction variable to assign tag name in variable (Transaction.DynamicTagName). I am trying to access this tag value using Output.Results{/Rowsets/Rowset/Row/['#Transaction.DynamicTagName#']} but it is not returning any value. Kindly help getting the value of dynamic tag

Accepted Solutions (0)

Answers (2)

Answers (2)

abhinaste
Explorer

Hi,

Can you try withbelow path i.e. by removing square brackets & quotes.

Output.Results{/Rowsets/Rowset/Row/#Transaction.DynamicTagName#}

Regards,

Abhijeet

swaroop_anasane
Active Contributor
0 Kudos

Hi Ayush,

Did you reach at a solution? If not I would suggest Abhijeet's solution here. We generally use square brackets when we have some comparisons to do.

Regards,

Swaroop

former_member186805
Participant
0 Kudos

Hi Swaroop,

I did it using Output.Results{/Rowsets/Rowset/Row/*[2]}