You need to sign in to do that
Don't have an account?
shoba shoba
Button feature in Account object
Hi
For an opportunity there is a feature called "Save and Add" button,while clicking this button it will save the opportunity and redirect to opportunitylineitem to add products. Is there is any feature in account object that while saving account it should save and redirect to its contact.
Thanks in advance.
I don't think we have any OTB (Out of The Box) functionality but you can able to achieve it with writing a simple trigger on Account Object.
Please check below:
Please do let me know if you need more information.
Regards,
Mahesh
thank you for your reply. My scenario is to create a custom button "save and add" while clicking this button i want to save the account and should redirect to the contact page. Actually my doubt is can we do this through javascript.
Please find the modified code:
Please do let me know if it helps you.
Regards,
Mahesh
Thank you for your reply. when we create a new account it working good. but if i view the exist accont its direct goes to contact i cant able to see account details. whether am in right way or not. Can you please give me sugession.
- Create a List button on Account "Save & Add Contact"
- On click of this button, redirect to '001/e' and here set the saveURL and returnURL as '003/e' (URL comes to /001/e?retURL=003/e&saveURL=003/e&cancelURL=001/o)
- This overrides the callbak url of SAVE and takes you to the NEW CONTACT page.
One tricky part here is to pass AccountId in the saveURL/retURL.... If you can select the Account manually then this should work...
- Harsha