Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Demonstrates the Aras Best Practice of using the idlist attribute to retrieve items based on an array of ids.
// ...
string inRange = string.Join(",", openWorkflows)));
Item getWorkflows = inn.newItem("workflow process", "get");
getWorkflows.setAttribute("idlist", inRange);
getWorkflows = getWorkflows.apply(); // Single query
// ...
// generates the following AML query, returns one response with all items
// <AML>
// <Item type="Workflow Process" action="get" idlist="openWorkflows[0],openWorkflows[1],...openWorkflows[n]" />
// </AML>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment