This small custom workflow step allows you to get the GUID of any record within a workflow whether built-in or a custom entity.
The project and all source code are available on GitHub, feel free to use it in any manner you see fit.
To use the code in it’s current state you will need to open with Visual Studio and build the project. You then need to use the CRM Plugin Registration Tool to register the built .dll and then utilize it in a workflow in CRM.
Happy to provide advice on any of these steps.