You need to sign in to do that
Don't have an account?
faceroy123
Populating Lookup to Parent
Hi,
Is the following possible?
I have create a new custom object (let's call it custom__c).
This holds records that I want a case to be related to, if the case meets a certain criteria. I want to automatically populate the look up field on the case. Is this possible? and how would I do this without hardcoding the record id's?
e.g
if case_region__c = 'x'
& case__date__c = 'y'
custom__r /custom__c = record id of parent record to relate.
Many thanks, as always.
you can you custom setting.
Thanks Anu.
How would I write the above trigger with the custom setting?
Thanks
see this link
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_custom_settings.htm
Thanks again,
Alot of this is new to me, so I'm struggling to understand these references.
Thanks
you asked to hardcord some value. But after hardcord if it is need to be changed after some period of time then again we need to touch the code, so with out touching the code it is a simple way to create a custom setting and add value to it so the the clint it self can make changes.
refer : http://login.salesforce.com/help/doc/en/cs_define.htm
Does it make sence.
Thanks
Anu
I think I understand Anu,
In the custom setting do I include the record ID's of the object I want to map too?
Thanks for your help
yes it is possible.