I have a custom button on the order called Clone with Products. what it does:
- Clone the order
- Modify some order fields
- clone the LineItems
Now I want to add a function to it so it will also modify the LineItem fields.
The URL hacking looks like this:
/{!Order.Id}/e?clone=1&retURL=%2F{!Order.Id}&cloneli=1&00N4E00000E9qFF=&00N4E00000E9qFE=&00N4E00000E9qFG=&saveURL=%2Fapex%2FCloneWithProductsAfterSave
My question: is there a way to modify the LineItem fields using URL hacking. if not, I am thinking of either use flow or a before insert trigger on LineItem to modify the fields. pros and cons on each? love to discuss.