cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
470
Views
10
Helpful
1
Replies

Query on part of a value in the Query API

lightfep1
Level 1
Level 1

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. 

1 Accepted Solution

Accepted Solutions

lightfep1
Level 1
Level 1

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.

 

View solution in original post

1 Reply 1

lightfep1
Level 1
Level 1

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.