calling apex method from java script in Skuid

edited March 3, 2019 in Questions
in my model i have a 4 fields like VIN(vehicle Identification number), make, model,year. whenever i enter VIN number, i want to cal the apex method from javascript. for this how to cal the method from javascript. can any one give some sample code for javascrpt to cal Apex method when i enter VIN number


  • Hasantha Liyanage
    edited March 3, 2019
    In order to do this, first you need to have a global class and your method should be a webservice method:
    global class TestClass {    
    webservice static void testMethod(String testParameter) {
            ..Do your stuff..
    and then, you could call your apex method via javascript;
            testParameter : 'VIN'
  • rajasekhar reddy
    edited January 29, 2016
    Hasantha Liyanage Hi this is not firing the class , 

    global class SkuidTest{
        webservice static ID createEmployee(String companyName) {
          Employment_Experience__c  emp=new Employment_Experience__c();
          insert emp;
          return emp.Id;


    alert('vin check');var redult=sforce.apex.execute( 
            companyName : 'VIN'
      Is there anything we are missing in the approach

  • Hasantha Liyanage
    edited January 31, 2016

    Please refer the link  to the post by Ant Belsham : Calling apex function will explain everything for you :)
  • Arne-Per Heurberg
    Arne-Per Heurberg ✭✭✭✭
    edited October 1, 2017
    raj- you need to have added external resource for ajax tookit
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!