I need to get the GUID of a record from Dynamics CRM 4 workflow. It's a record that's created during the workflow's execution. I thought of writing a w/f assembly that accepts a lookup and returns a string containing the GUID (which is enough for my purpose). However, the Lookup in the assembly must specify the type of entity. As the requirement exists for many entities already, and for many others that will e created by the customer without notice, this won't work for me.
Is there any way to do this easily, or any way to create a lookup parameter for a workflow assembly that will accept any entity type?
Your best bet would be to create a post create plugin that will set the GUID into a custom field (new_myguid) and then your workflow will be able to read the field as soon as it has been executed.