You need to sign in to do that
Don't have an account?
SeawardT
Populate Case Field from Custom Object Field
We populate a few fields within a custom object, but want to be able to add this information to a case. Therefore we have created fields in Case by using a lookup relationship.
This fills in the one field which is great, however, we want to pull over 3 or 4 other fields that correspond to the custom object field.
Also, as a separate problem, if trying to lookup a number (field) from the custom object and it doesnt exist, i would like to be able to create a new one if it doesnt already exist, but there is no 'New' button available when doing the lookup.
Any help would be greatly appreciated!
Thanks.
Tony Seaward
This fills in the one field which is great, however, we want to pull over 3 or 4 other fields that correspond to the custom object field.
Also, as a separate problem, if trying to lookup a number (field) from the custom object and it doesnt exist, i would like to be able to create a new one if it doesnt already exist, but there is no 'New' button available when doing the lookup.
Any help would be greatly appreciated!
Thanks.
Tony Seaward
Message Edited by SeawardT on 10-05-2007 07:51 AM
Message Edited by SeawardT on 10-05-2007 07:54 AM
Here is an example of a custom button that does a similar thing to what you want to do:
/a0A/e?retURL=%2Fa0A%2Fo
&00N50000001SuWS={!MTD_Agent_Lender__c.Agent_Name__c}
&00N50000001SuTZ={!MTD_Agent_Lender__c.Lender_Insured_Name__c}
&00N50000001T5qd={!MTD_Agent_Lender__c.Legacy_Transaction_ID__c}
&CF00N50000001T247={!MTD_Agent_Lender__c.Name}
You set up the button as a url. Copy the first part of the url (in the example the /a0A/e?retURL=%2Fa0A%2Fo part) from the Case edit page you are passing data to (do not copy the nan.salesforce.com part)
The 00N50000001SuWS, 00N50000001SuTZ, etc. are the ids of the Case fields you want to populate, the rest is the fields selected from the merge list.
To get the field id you right click on the field name in the field list in setup, customize, cases, fields. This is for custom fields. For Case standard field ids see the list below.
When the user clicks the button on the custom object detail page the case edit page will open with the fields prepopulated with the data from your custom object record.
Contact ID cas3_lkid
Text cas3_lkold
Type cas5
Case Reason cas6
Case Currency cas24
Status cas7
Priority cas8
Case Origin cas11
Visible in Portal cas27
Subject cas14
Internal Comments Cas15
Assignment Rules cas21
Send notification to Contact cas22
Is this my only option?
tmbarry - in the case of a custom object you get the field id's by clicking onthe field name on the detailpage of the object.
Setup/App Setup/Build/click on the object name (label)/find the filed(s), right click on them, select Properties,, copy the id from the address.