I am using the new (Spring '20) Lightning URL hack functionality. This is the URL that I have constructed so far, it is invoked by a detail page button on the Opportunity object:
/lightning/o/Quote/new?defaultFieldValues=Name={!URLENCODE(Opportunity.Name)},
OpportunityId={!Opportunity.Id},
ExpirationDate={!TEXT(Opportunity.CloseDate)},
ContactId={!Opportunity.ContactpersoonId__c}
It works perfectly, as long as all those Opportunity fields have values. But I have Opportunities for which Contactpersoon__c, hence also ContactpersoonId__c, is empty. When clicking the custom button, Salesforce complains:
Looks like there's a problem.
Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details. Error ID: 1031679058-169998 (-1922518417)
With Classic URL hacks, empty fields were no problem. How do I deal with them under Lightning?