How to include the GUID in the workflow email?

When a new Lead is created, a corresponding unique GUID is generated. I can refer that GUID using $contact_id in the campaign emails but the most I've been able to do is send  the SugarCRM link (the full link including the GUID at the end) in the email. I am however interested in the number only. How can I do that? Please help.