I have one scenario, where one employee can hold multiple passports of different countries, that has be fetched from FOWorkPermit SuccessFactors.
But, those multiple passports are fetched in the form of multiple documents.
..................and so on............
I am adding this documents into one cache.
When i try to retrieve this documents from cache in final map, i receive error as found more than one document in document cache.
How can i achieve above scenario, and have below expected output
**Note: firstname and lastname are from main profile.