i'm trying to call the selected apex class from my function.


<template if:true={apexclass.data}>
        <template for:each={apexclass.data} for:item="apex">
                <lightning-input type="checkbox" key={apex.Id} label={apex.Name}></lightning-input>


import { LightningElement,wire, track } from 'lwc';
import getClass from "@salesforce/apex/SchedulableClasses.SchedulableClasses";
export default class LightningExampleInputDateTime extends LightningElement {
    @wire (getClass) apexclass;`

I'm using these two html and javascript with addition to an apex class to get the schedulable classes i want. But i'm having a problem with execution process to these classes. my question is, is it possible to call an apex action that is outside my project without trying to import each of them one by one?

  • The HTML + JS looks ok. What do you mean by "outside my project?" To invoke an Apex method you must import it from the scoped module @salesforce/apex/... Commented Jul 8, 2019 at 22:04
  • You parse the return of Apex function?
    – Alex M.
    Commented Jul 9, 2019 at 13:10
  • @KevinVenkiteswaran oh okay i was trying to make sure that built in functions aren't also auraenabled Commented Jul 10, 2019 at 11:08
  • @RamiAbouKhalil can you give an example of a “built in function?” Commented Jul 10, 2019 at 14:17
  • @KevinVenkiteswaran for example the interface schedulable Commented Jul 12, 2019 at 8:04


You must log in to answer this question.

Browse other questions tagged .