You need to sign in to do that
Don't have an account?
SFDC_BigDog
Auto Populate a Lookup Field based on a field value
We have a custom object "OrderItem__C". This custom object has a lookup field to standard contact object. It also has a field called "Shipping_customer_number__c".
We have this same field(Shipping_customer_number__c) in contact object too. Now when the user enters a shipping customer number in the order item object, based on the value in the shipping customer number field it should auto populate the contact lookup field.
This is because each contact record has an unique shipping customer number. I am trying different ways. Any insights can be helpful for us.
Thank you.
We have this same field(Shipping_customer_number__c) in contact object too. Now when the user enters a shipping customer number in the order item object, based on the value in the shipping customer number field it should auto populate the contact lookup field.
This is because each contact record has an unique shipping customer number. I am trying different ways. Any insights can be helpful for us.
Thank you.
All Answers
Hi, Is the code bulkified, because i using the code, that is running for single record manual insertion but for multiple records it is failing with the below error...
"caused by: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, "