You need to sign in to do that
Don't have an account?
Marco!
Pre-populating lookup field on a case.
Hi,
Can anyone help me complete a code for a custome button I am creating to copy the same thing the "New Case" button does from the Account object.
So basically it has to open a new case with the Account name prefilled. What do I have to add the the line below to accomplish this?
https://xxxxxx.my.salesforce.com/500/e?retURL=%2F001A000000yqabv
Thank you,
M
Hi,
Try a custom button with URL source :
{!URLFOR($Action.Case.New, null,
[
"p3" = "012W00000004QKj",
"accid" = Case.AccountId,
"retURL" = Account.Id,
"saveURL" = Account.Id,
"save" = 1
],
true)}
p3 is recordtypeid
Thanks. But that didn't work.
The following code below did open a new case (edit screen), but all that was missing is the Account Name filled out already.
The input part of the code is not prefilling my Account Name (lookup field).
{!URLFOR($Action.Case.NewCase , null,
[
"accid" = Case.AccountId,
"retURL" = Account.Id,
"saveURL" = Account.Id
],
true)}
Do you know what's wrong?
Thanks for your help.
Marco
Try with cas4 instead of accid.
You can get the right param for the field you want to pre-populate like described here :
http://simplysfdc.blogspot.fr/2012/11/custom-button-to-prepulate-field.html