What is the best/most efficient way to populate (or set-on-save) a Contact lookup field with the Contact who is currently logged into the Portal? We want to capture the Contact that created the record.
I've tried using Entity Form Metadata and Setting the Value on Save to Current Portal User, but this only works when the field you are trying to populate is a text field rather than a lookup field.
I then created a text field and using the Entity Form Metadata, Prepopulated the field with the contactid of the Current Portal User but rather than the guid of the Contact it put the value "Microsoft.Xrm.Sdk.EntityReference" which I can't then use in a workflow to populate the contact field.
I've also tried checking the Associate Current Portal User field on the Entity Form and selecting my custom Contact lookup field but this doesn't seem to do anything at all (unless I'm misunderstanding what this function should do).
Is there any way to achieve this using configuration? Or does it require javascript at a minimum?
Does the Associate Current Portal User on Insert functionality on Entity Forms actually work for any portals out there?