How to parameterize attribute in CAML query?

Hey guys,

Requirement is as below:
For CAML query, I am looking to parameterize an attribute that is passed in that query.
Query is as below:
image

The part I am looking to parameterize is where Name= “Data”, I am trying to store this value “Data” in asset and be able to use that variable here as this value may change so don’t want to keep it hard coded.

Is there a way this can be achieved?

Regards
Sonali

2 Likes

Hey @sonaliaggarwal47

You can use a placeholder that can be replaced later maybe if that is useful.

{{data}}

Thanks
#nK

1 Like

Dear Sonali,
You can store the Data as Asset, then retrieve the value using Get Asset activity into a variable strVar(assuming) of type string before passing it to the query
Then
" …
…Name="+ strVar +"/…"

Hope this helps

Thanks,
Geetishree Rao

2 Likes

HI @geetishree.rao,

Thank you, it worked:)

Regards
Sonali

Happy to hear that :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.