Hi Vaun:
An approach that I suggest is to get the ConversationId of the transfered call that you received in the second Call Flow and then excecute a Custom Action that request to the /api/v2/conversations/calls/{conversationId} API endpoint the details of that interaction in particular you have to identify the participants[i].id --> if participants[i].purpose == "agent". And then make a request to the /api/v2/users/{userId} API endpoint to get the agent´s name (passing the participants[i].user.id as the userid), or make a request to the /api/v2/routing/queues/{queueId} API endpoint to get the queue name - which is the queue which the interaction was come from to this participant (Secont Call Flow), passing the participants[i].queue.id as the queueId).
This approach is based on the analysis that a conversation has multiple participants and once the conversation arrives to the Second Call Flow the penultimate participant has to be the agent or the queue that sent the conversation to this second flow.
References:
https://developer.mypurecloud.com/api/rest/v2/conversations/index.html - /api/v2/conversations/calls/{conversationId}
https://developer.mypurecloud.com/api/rest/v2/routing/index.html - /api/v2/routing/queues/{queueId}
https://developer.mypurecloud.com/api/rest/v2/users/index.html - /api/v2/users/{userId}
I hope that helps.
------------------------------
William Martín Chávez González
Global Networks Solutions S.A.
------------------------------