hey everyone,
so I’m using http request and odata notation.
right now i’m using this to get e.g. all jobs with name “roboticscaseXYZ”. is there also a way to get all the jobs that contain “case”? and how do i write that?
hey everyone,
so I’m using http request and odata notation.
right now i’m using this to get e.g. all jobs with name “roboticscaseXYZ”. is there also a way to get all the jobs that contain “case”? and how do i write that?
Could you try the following expression once & let us know if it helps?
/odata/Jobs?$filter=substringof('case', Name)
Best Regards.
hey @arjunshenoy thanks for your reply! unfortunately it doesn’t work for me.
to continue the mentions from above - depending on the consumed ODATA version
substringof method can be used for simulating a contains logic
Are you prototyping in swagger?
hey, it also doesn’t work.
depending on the comsumed odata version we can use diffeent techniques
SubstringOf (OData 2.0,3.0)
Contains, indexOf (OData 4.0)
https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#_Toc31360982
As mentioned, we can fast prototype within swagger
both dont work hm
check the Docu and kindly note the positions of Propertykey (first), value (second)
we also simulate the contains by
return: -1 not contained
return: > -1 contained
thanks! it works
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.