Activity Forums Salesforce® Discussions How to call apex method with parameter in the lightning web component?

  • Aditya

    Member
    December 15, 2020 at 7:41 am
    1. First, import the Apex method into the JS.
    2. If it is wired, make sure cacheable=true decorator is set.
    3. Parameters are passed as an object.
    4. For simple results: wire to a property.
    5. For some processing: wire to a function.
    6. For controlling when to call: imperative

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Free 5 Day Salesforce Challenge!

Video in

To access the signup form head over to www.talentstacker.com/Salesforce TalentStacker Podcast Salesforce Episode: https://talentstacker.libsyn.com/how-to-earn-60k-100k-a-year-within-6-months-without-a-college-degree-say-what-salesforce-career-development-path-with-bradley-rice Do you already have a job as a Salesforce Professional and…