I am trying to create an unmanaged package which has one custom object with lookup filter on a master detail field.
<fullName>Contact__c</fullName>
<externalId>false</externalId>
<label>Contact</label>
<lookupFilter>
<active>true</active>
<errorMessage>Contact must have a community user.</errorMessage>
<filterItems>
<field>Contact.IsPortalEnabled__c</field>
<operation>equals</operation>
<value>True</value>
</filterItems>
<isOptional>false</isOptional>
</lookupFilter>
<referenceTo>Contact</referenceTo>
<relationshipLabel>Account Group Users</relationshipLabel>
<relationshipName>Account_Group_Users</relationshipName>
<relationshipOrder>1</relationshipOrder>
<reparentableMasterDetail>false</reparentableMasterDetail>
<trackTrending>false</trackTrending>
<type>MasterDetail</type>
<writeRequiresMasterRead>false</writeRequiresMasterRead>
I tried to add name tag in lookup filter but it didn't work. Below error keeps coming:
GSD_CEP_Account_Group_User__c.Contact__c) LookupFilter should have a name during package installs.
I couldn't find any document for this if this is not allowed in packages.