2025 Dec 13 12:36 PM - edited 2025 Dec 13 4:59 PM
Request clarification before answering.
I still would rework the data connection, and I think it more elegant to do this with OData IN $filter, but if you want to do the filtering in the Get Record Collection flow function, what about this.
Create a filter page variable like this.
Set the page variable with the fields you want. Here I hard-code the values but you could use a MAP function to parse your IDs. The property field is a list but you just put a single string, the name of the field on which to filter.
And then in the Get Record Collection filter, you set to formula and do something like this:
Would this work?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I made a little app/UI where I return values from our OData service for our CodeJam.
I'm able to create a list of strings and then use that to filter the list of emails.
I used a formula like this:
MAP(pageVars.strings,{type: "startswith", property: ["customer"], value: item.mystring})Of course you will get the filter values from your app variable
Hi @Dan_Wroblewski,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dan_Wroblewski,
Let me bring more details to clarify. Actually, the app variable where we store the account technical IDs has already been created:
Once we retrieve the account technical IDs, we set the above variable as follows:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Once we retrieve the account technical IDs, we set the above variable as follows:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your answer. Yes, that's exactly what we want: we need to return all items of the data set whose account.id field is in the accountTechnicalId variable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would you have any idea how to do this please? We really need to move forward with this.
Many thanks,
Best regards,
LM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are saying you have an array of IDs in the accountTechnicalId field, and you want your Get to return all items whose account.id field is in that list?
In general, I would not use that GetRecordCollection feature but try to construct a $filter that looks something like this:
GET /service/Products?$filter=Name in ('Milk', 'Cheese', 'Donut')I wrote this about creating $filter in Build Apps, but that was before Build Apps supported Actions, which I think would be the better way: https://community.sap.com/t5/technology-blog-posts-by-sap/odata-filtering-in-sap-build-apps-could-th...
Let me know exactly what you need and I will try to see how this can be done.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.