http://raydehler.com/cloud/clod/salesforce-url-hacking-to-prepopulate-fields-on-a-standard-page-layout.html
More button code notes that are Task Button specific:
/00T/e?
who_id={!$User.Id} // Set "Assigned to" to current user
&what_id={!ExpenseAccount__c.
&tsk1=Roger Wicki // Override "Assigned to" with this name
&tsk2={!User.Name} // Related Contact's Name
&tsk3={!ExpenseAccount__c.
&tsk3_id=01ID0000000OiBz // My custom object's ID
&tsk4={!(TODAY() + 7)} // Due Date
&tsk5=Print%20Expenses // Subject
// &save=1
// &save=x
&retURL=/{!ExpenseAccount__c.
&cancelURL=/{!ExpenseAccount__
For other objects you when using Google Chrome you can right click and "Inspect Element" to identify the field ID and use '&00Ni000000CKJg7' to preset a field value. This is most helpful for standard fields because you can get the same ID for custom fields by clicking on the field in the setup and pulling the ID from the URL.
No comments:
Post a Comment