You need to sign in to do that
Don't have an account?
pierrefrazny.ax358
Browse a relationship to retrieve information on parent record
I have a lookup to Contact on an record o and would like to retrieve the value of a field on contact. This syntax does not seem to work:
o.Contact__r.number__c
Do I really have to run a SOQL query the information?
Thanks
Pierre
The value is always null.
Thanks
Can you tell us how you are populating your object? I.e. is it a soql query?
Posting code always helps.
trigger RegistrationRepeat on Registration__c (before insert, before update) { if(Trigger.IsInsert || Trigger.IsUpdate){ for (Registration__c r : Trigger.new) { if (r.Status__c == 'Completed'){ if(r.Contact__r.Number__c == NULL) {r.Repeat__c = 0;} else {r.Repeat__c = 1;} } } }}