03-10-2020 11:39 AM
I am having a little trouble finding any documentation if this is possible, I would like to submit part of a field and get back all the results that contain that value in the query api. example it I have name [ "NameA", "NameB', "Today"] and I query for "Name" I would get back the first two only. Is this possible via the Query API or is there another solution.
Solved! Go to Solution.
03-10-2020 01:52 PM
Well after posting the question, I figured out the answer so I will post the answer along with the question for others that might be searching as well.
To query the xpath 1.0 you need to use one of a couple functions.
contains(<Field Name>, <Search Value>)
in my example
"foreach": "/names[contains(name,'Name')]"
this would then result with only NameA and NameB and not return Today.
03-10-2020 01:52 PM
Well after posting the question, I figured out the answer so I will post the answer along with the question for others that might be searching as well.
To query the xpath 1.0 you need to use one of a couple functions.
contains(<Field Name>, <Search Value>)
in my example
"foreach": "/names[contains(name,'Name')]"
this would then result with only NameA and NameB and not return Today.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide