Hi,
I have a question about the capabilities of the Filter Criteria FetchXML on entity list buttons.
My scenario involves showing an Edit button next to an Entity List record if the record's Contactid matches the Current Portal User.

I have tried the following FetchXML in the Filter Criteria:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="test_contact">
<attribute name="test_contactid" />
<attribute name="test_name" />
<attribute name="test_createdon" />
<link-entity name="systemuser" from="systemuserid" to="test_contactid" link-type="inner" alias="ad">
<filter type="and">
<condition attribute="systemuserid" operator="eq-userid" />
</filter>
</link-entity>
</entity>
</fetch>
However this did not work (as it's wrong).
Is there an attribute which stores the ID of the currently logged in portal user?
I haven't come across anyone else trying to achieve this functionality so any help would be appreciated.
Thanks