Hi,
For an element with multiplicity, the last() function will return the last element in the array.
However, in this case, each prospect element is a different instance in Tamino, so the last() method will not help you.
If you just want the value of the highest id, you could try max(/prospect/id).
For the purposes of auto increment, you could consider writing a generic schema in Tamino which stores an ID, and some code that automatically increments it when the next sequence is requested.
Hope this helps!
Regards,
Puny Sen
#webMethods-Tamino-XML-Server-APIs#webMethods#API-Management