I'm working on a functionality where I need to be able to filter users by metadata.
I'm currently using the user webservice using the url: /config/${P_customer}/user/?P_metadata={"meta.field":"metavalue"} and it works just fine.
The issue is that need to be able a more complex filter, so my question are:
1.Is it possible to get the users that have the "meta.field" metadata equals to "metavalue1" and "metavalue2" for example?
2. Is it possible to get the users that have the "meta.field1" metadata equals to "metavalue1" or the "meta.field2" equals to "metavalue2"?
Do notice, that both of this functionalities could be achieved by performing multiple requests but I'd need to perform paging and sorting in the client instead of in the server.
Thank you in advance.
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/3c0b6acf-e1d7-4b43-a4b5-24f7f087641a%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
I'm not able to post using the registered account as it is not under my control. My account ID is 11321419011823922.
I was wondering if this used a syntax similar to MongoDB. It's working properly now, in my case I ended up using the $or keyword:
P_metadata={"$or":[{"metadata1":"value1"},{"metadata2":"value2"}]}
Thank you once again.