Can anyone please provide some sample code for this in Javascript.
Thanks for you help!
1 answer
I would not do this in a custom button (especially if you are not a javascript expert). Instead, use a Process Builder and Flow to create records that you need. The Process Builder can be 'triggered' by a field that gets set by a Quick Action.