function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDC_Dev_2009SFDC_Dev_2009 

FIELD_INTEGRITY_EXCEPTION,

I am creating a Apex trigger that fires when a picklist value equals some value in an object and a record is created .

 

The newly created record (Trip)is a child record for another custom object(Planner).

 

trip.Trip_Name__c = planner.Id;

 

When  i tried updating with id field i ger FIELD_INTEGRITY_EXCEPTION error

 

Trip name is a lookup field to planner record.

 

 How do i update the lookup field in the child record with parent object id

 

 

 

Please Help

SFDC_Dev_2009SFDC_Dev_2009

Thanks.I resolved it.

 

I mapped

 

trip.Trip_Name__c = planner.Trip_Name__c;

 

 

Thanks