Suppose I have the following payload with nested array, how do I combine the array inside the nested array for the same externalId as well as some logic on certain field lik