You need to sign in to do that
Don't have an account?

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
Thanks.I resolved it.
I mapped
trip.Trip_Name__c = planner.Trip_Name__c;
Thanks