Skip to main content
I have two custom objects, Event Registrants and Program Attendees.  I have added a custom button on the Event Registrants object that says add to Program Attendees.  I would like for the Event Registrants to be added Program Attendees.

 

Can anyone please provide some sample code for this in Javascript.

 

Thanks for you help!

 

 
1 answer
  1. Sep 8, 2016, 5:05 PM
    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.