You need to sign in to do that
Don't have an account?
Jane Marchand 15
Order Product Custom Clone Button
Hi
I am trying to create a custom clone button on Order Product.
The code I am using is as follows
All appears to function correctly until such time as I try to save this new record. I then get the following error:
Of which the URL is: https://cs81.salesforce.com/802/e
Is there any way I could reference the OrderId in the RetURL? I think that may fix the problem.
Thanks
Jane
I am trying to create a custom clone button on Order Product.
The code I am using is as follows
/{!OrderItem.Id}/e?clone=1
All appears to function correctly until such time as I try to save this new record. I then get the following error:
Of which the URL is: https://cs81.salesforce.com/802/e
Is there any way I could reference the OrderId in the RetURL? I think that may fix the problem.
Thanks
Jane
You need to add &retURL={!OrderItem.OrderId} in the button URL.
Regards
Tej Pal Kumawat
Skype : tejpalkumawat1991
If this answers your question mark Best Answer it as solution and then hit Like!
I tried that but getting an error in the formula builder.
See below.
I also tried changing the RetURL to be &retURL={!OrderItem.Order.Id} but get the same error....
&retURL={!OrderItem.OrderId}
You can read a great blog about this here (http://agilecloudconsulting.blogspot.co.uk/2013/08/customizing-standard-clone-button.html)
Have you tried it in an org? Is it working for you?
Thanks
You can write below code and select java script behaviour.
window.location.href = '/{orderitem.id}/e?clone=1&retURL=%2F{orderitem.id}&isdtp=mn';
-Thanka
Ashlekh Gera