You need to sign in to do that
Don't have an account?
Stefan
Button to open new custom object from Account
I have created a new button on the related list on account to a custom object. When I save the new object I want the object to close and return to the account.
The following code opens the new object but throws an error: /a0E/e?retURL=%2F{!Account.Id}&saveURL=%2F{!Account.Id}&CF00N40000001fj0E={!Account.Id}
Account: 0014000000FurVB
Error: no matches found
0014000000FurVB is a valid Account ID
CF00N40000001fj0E should be {!Account.Name}. CF00N40000001fj0E_lkid should be {!Account.Id}.
Hi Werewolf, that's brilliant, thanks.
For anyone who is having the same problem, I couldn't get the code quite right until I put the original button and the custom back on the related list on the Account page.
Clicking on new from the related list gave me:
https://na2.salesforce.com/a0E/e?CF00N40000001fj0E=XYZCompany&CF00N40000001fj0E_lkid=0014000000FSSPf&retURL=%2F0014000000FSSPf%3Fnewid%3Da0E40000000pCb2