on ‎2023 Jan 17 3:01 PM
Hello guys,
I'm calling the S/4 Sandbox Business Partner OData Service. Now I want to check if there's any results or a specific number of results etc.
The only value in the conditions is count:

But count will not even be returned, so I don't see how I need to design my condition!?

Thank you,
Christopher
Request clarification before answering.
Hello Christopher,
List are not yet supported in SAP Build Process Automation. It is in the roadmap. You cannot directly map a List output to condition fields. You can however map to Form fields but by-default it will pick only the first list-set.
For example, if you mapping the output of business partners to a form field, it will assume that its like BusinessPartner[0].Name etc.
If you want to map the output, then you have to use the API that gives single output like you can get specific business partner via A_BusinessPartner('businesspartnerID') and then map the output to condition and form fields.
Regards,
Archana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, there are lists, and if you want you can find out how many items are in the list with a script task.
Let's say I create a trigger form and it has a table of names. I can write a script to retrieve the list and then calculate how many items there are. I could then return the value in a custom variable.
var mylist = $.context.startEvent.namesTable;
$.context.custom.count = mylist.length;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can certainly do this now with script task, one of its main use cases is working with lists.
unless someone does this before, when I return later today I will give example
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.