You need to sign in to do that
Don't have an account?
Laura StanleyHubbard
Custom Detail Button to Link to New Case from Account
We have several custom fields on our case page that need to be prepopulated for certain scenarios. Ideally, a case would be created from a contact detail page custom button (as we need it to have a custom name -- Benefit Confirmation-- the fields would be filled in, the contact and account name from that contact would also be on the case page. Any suggestions on method? Best practice? I have minimal experience with code and am really reaching for answers as we have a week and a half turn around.
Parameters:
I need these fields prepopulated:
Appreciate all suggestions: Please post code/steps.
Parameters:
I need these fields prepopulated:
Contact Name on Case would be Contact Name from Contact Page (Lookup Field)
Account Name on Case would be pulled from Contact Page (Lookup Field)
Contact Email and Phone would be pulled if available on Contact Page (Lookup Field)
Status = Open (Picklist)
Priority = Low (Picklist)
C3X = WSE (Picklist)
Service = Health and Welfare (Picklist)
Type = Eligibility (Picklist)
Action = Enrollment (Picklist)
Channel = Internal (Picklist)
Subject = "Benefit Confirmation Statement"
Description = "Benefit Elections Audited. Confirmation Statement created. Sent to WSE via email."
Account Name on Case would be pulled from Contact Page (Lookup Field)
Contact Email and Phone would be pulled if available on Contact Page (Lookup Field)
Status = Open (Picklist)
Priority = Low (Picklist)
C3X = WSE (Picklist)
Service = Health and Welfare (Picklist)
Type = Eligibility (Picklist)
Action = Enrollment (Picklist)
Channel = Internal (Picklist)
Subject = "Benefit Confirmation Statement"
Description = "Benefit Elections Audited. Confirmation Statement created. Sent to WSE via email."
Appreciate all suggestions: Please post code/steps.
[1] http://raydehler.com/cloud/clod/salesforce-url-hacking-to-prepopulate-fields-on-a-standard-page-layout.html
[2] http://salesforce.stackexchange.com/questions/937/how-do-i-prepopulate-fields-on-a-standard-layout
1. New case pops opens not in the console view
2. Custom fields (dependent picklists) are not populated
3. I have to click 'back to console' to get in the console and it doesnt default open that case in the console.
- To get it in the console view, you'll need to use the sforce.console.openPrimaryTab method [1]
- The process above should work for custom fields. Does it work for some but not all?
- I think #1 would fix that.
[1] https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_openprimarytab.htm