Skip to main content
A Negotiation object looks up to an Opportunity. The Opportunity Id is in the event but it is gone in the trigger, hence the required field missing error.

lightning:inputField is not working with lookup field
2 件の回答
  1. 2018年5月29日 1:34

    This is a bug in lightning:inputField with Master-Detail relationship. The same error has been rasied 3 months ago already: https://salesforce.stackexchange.com/questions/207479/anyone-got-a-lightninginputfield-working-for-a-lookup/207935

    Sadly Salesforce doesn't care about this bug so it is not fixed.

    The only solution is:

    1. Check "Allow reparenting" checkbox for the Master-Detail field on the child object

    2. Change the relationship to a lookup