I've spent the last few hours looking at various articles and posts trying to find an answer with no luck. I'm trying to create a button using URL Hacking (I know some people frown on it with my skills it's the only way I can do it)
The Scenario:
I have a custom object called Training Form which I would like to add a button to the page layout to create a Case pre-filling the new Case with some of the fields for the Training Form. I've managed to get most of it working except for the following:
- I would like the Case.Account field to be populated with the related Account from the training form. I am aware of the need of a -lkid reference for the id as well as the account name but however I format the URL it does not fill in Case.Account.
- I'd also like to populate another lookup with a link back to the Training Form as well. Pretty much the same as 1.
Here's the url I have with parts I am struggling with highlighted in bold:
https://oursalesforceinstance.my.salesforce.com/500/e?
&RecordType=01224000000Eu2W
**&{!Case.Account}_lkid={!Trainer_Form__c.SiteId__c}
&{!Case.Account}={!Trainer_Form__c.Site__c}
&{!Case.Academy_Form__c}_lkid={!Case.Academy_FormId__c}
&{!Case.Academy_Form__c}={!Trainer_Form__c.Name}**
&cas14={!Trainer_Form__c.Name}
&cas5=Configuration&cas11=form
&cas15={!Trainer_Form__c.Configuration_Comments__c}
Where am I going wrong?