In this repo you will find the following:
- Lightning App (EALtngOutApp.app)
- Lightning Component (EALtngOut.cmp)
- Visualforce page (EALtngQuickActionTest.page)
EA bulk Action happens in this sequence:
- User clicks the custom action - Bulk Action
- EA passes the query parameter to the Visualforce page (in our case: EALtngQuickActionTest.page) wired in this custom action (bulk action)
- EALtngQuickActionTest.page gets the SAQL in url parameter named query
- EALtngQuickActionTest.page make POST call to /services/data/v45.0/wave/query with query we got
- EALtngQuickActionTest.page uses Lightning Out feature to createComponent to create the component EALtngOut.cmp via EALtngOutApp.app.
- And in this process, the Lighting component gets SAQL query as well as the result of that SAQL query
- EALtngOut.cmp can now create records or do any bulk actions based on the results of the SAQL query returned by the EA