Happy Friday!

Looking to see if the following is possible using only Javascript. I have two Custom Objects - Obj1 & Obj2 (both have child relationship to Account).

Using a List View Button on Obj1, create new records in Obj2 (based on selected records in List View). Ideally this would create unique records by Account. For example, if 5 records were selected associated to 3 Accounts in total, only 3 records would be created in Obj2.

I have looked for posts on similar inquiries but haven't found anything matching this use case with a confirmed answer if it's even possible or not.

Any help/guidance/programming help is greatly appreciated.


1 Answer 1


You can override the list view button with the vf page and there you can have your logic based on selected records. Here is the link to another question where you would get help how to create such list view button :

Overriding new button in List view to point to custom apex page

  • Thanks for the response - Wouldn't this then require Apex coding from the Visualforce page? I'm looking to see if this is possible using only Javascript.
    – sqlbane
    Apr 3, 2020 at 18:01
  • Yes. It will require apex coding Apr 3, 2020 at 18:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .