Return some ID created in an Application by RPA bots to the application which has trigerred Bot

I have an application which will be initiating UI path BOT using Orchestrator. Bot once initiated will create new record and application will assign new unique ID for the same.
Bot has to pass this ID created to the application which has initiated it.

e.g. Application 1 has gathered some data to create new customers.
Application 2 is owned by different entity where new customers are created.

So we have a bot which goes and creates new records in Application 2.
Now user of Application 1 wants the id for the customer which was created by bot. . I am facing issue in getting this info back to Application1

Any solution or idea will be of great help & Appreciated

Thanks in Advance