Functions

Functions

#

execute(function_name, parameters, functions_body) → {CRMResponses}

Execute Custom Functions

Parameters:
Name Type Attributes Description
function_name String

name of the custom function

parameters object <optional>

function paramters as json

functions_body object <optional>

function body as json

response object

CRMResponses
Examples

Sample 1Copycopied

var response = ZDK.Apps.CRM.Functions.execute("dealtoquote2");

Sample 2Copycopied

var response = ZDK.Apps.CRM.Functions.execute("dealtoquote2", { "page": 1, "per_page": 10 });

Sample 3Copycopied

var response = ZDK.Apps.CRM.Functions.execute("dealtoquote2", { "page": 1, "per_page": 10 }, {"amount": 100, "name": "test"});