I want to write expression rule VM_getAllCustomers which will return hardcoded customer values. I tried below
'type!{urn:com:appian:types:VM}VM_Customer'(firstName: "Pravin", lastName: "Sawant")
This gives single record. I want list of Customers, What is syntax for list of Customers.
Discussion posts and replies are publicly visible
Hello Pravin,
There is one more way to accomplish this.
cast( 'type!{urn:com:appian:types:VM}VM_Customer?list', /* Pass the data */ { { firstName: "Pravin 1", lastName: "Sawant 1" }, { firstName: "Pravin 2", lastName: "Sawant 2" } } )