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


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


Thanks.I resolved it.


I mapped


trip.Trip_Name__c = planner.Trip_Name__c;