You need to sign in to do that
Don't have an account?
Ravi kumar 292
How to write a code
Hi all,
I have a requirement. I need to write a code based on a custom field of custom object. Custom object(XYZ__c) is lookup to Contact object and Contact is lookup to Lead Object.. for example
if(picklist field == 'test'){
if(custom field == text value){
String text ='done';
}
}
Here am confused that how to take the custom filed with relation..
Please help on this..
I have a requirement. I need to write a code based on a custom field of custom object. Custom object(XYZ__c) is lookup to Contact object and Contact is lookup to Lead Object.. for example
if(picklist field == 'test'){
if(custom field == text value){
String text ='done';
}
}
Here am confused that how to take the custom filed with relation..
Please help on this..
If you can explain little bit more in detailed then it will be easy to help you.
Regards,
Mahesh
On Contact Oject i have a Lookup(Lead) field called Lead__c and On Custom Object(XYZ__c) also i have a Lookup(Contact) field called Contact__c. And Score__c is custom field on custom object(XYZ__c). Now i want to fetch the custom field from contact. Here am confused that how to fetch.
Now am writing trigger on Contact obejct whenever record is updated. In this trigger i need to write some calculation based on custom field(Score__c).
if specific, any conditions are there?
IF(Sector__c=='Salaried'){
IF(score__c >=600 && score__c<650){
InterestRate = 12.00%;
}
Here Sector__c picklist is in Contact object, Score__c is in XYZ__c custom object and InterestRate is in Lead object. Now based on Sector__c and Score__c, i need to update the InterestRate in Lead Object.
Can i fetch them by querying 3 objects seperately?? give me some example...
Thanks
Ex:
Contact: Test Contact 1 and it has 3 child record(XYZ__c) Child 1, Child 2 and Child 3. So which child record you consider for Score__c
Still I am not 100% clear with the requirement, please provide us your full details.
Regards,
Mahesh