Hey @georgew,
Welcome to the community
This looks to be unrelated to this thread, Could you open a new thread and include what you have tried? In theory what you are after looks to be possible but it would be nice to see an example of what comes in and what is expected to be returned.