You need to sign in to do that
Don't have an account?

Return URL for a Custom Button
Hi
I need to auto-populate the account lookup for a new Contact by using custom button.
When i click on the standard Button New Contact , the retUrl and accId denotes the Id's of the account for which a new contact is created , somthing like this .. https://ap1.salesforce.com/003/e?retURL=%2F0019000000FecuW&accid=0019000000FecuW
I dont wanna hard code it so ,
I create a new custom button say New My Contact .. as a list button and content source as URL ..
I gave something like this ,
/003/e?retURL=/{! Account.Id }& accid={!Account.Id}
but its returning null for account Id ..
Please Help
Thanks
Aj
Hi Mukul
Thanks for ur assistance.
As per my requirement , i should use a custom button to auto pop it .
I used a class n invoked it thro sforce.apex.execute and this code works fine
script
Thanks
Aj
All Answers
hi ..
i used a onclick javascript code and
this code works for auto-populating account lookup for a new contact ,
but now i want to auto pop a recordtype of account record to contact record
can anyone please help
you can write a trigger or workflow do that on contact creation.
Hi Mukul
Thanks for ur assistance.
As per my requirement , i should use a custom button to auto pop it .
I used a class n invoked it thro sforce.apex.execute and this code works fine
script
Thanks
Aj