Skip to content

Instantly share code, notes, and snippets.

Created October 19, 2021 06:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save heijmerikx/35c9c149365a8cdd6e186023464b2d6e to your computer and use it in GitHub Desktop.
MyFunctionRequest req = new MyFunctionRequest();
req.inputPropertyOne = false;
req.inputPropertyTwo = ’String value’;
String jsonconfig = JSON.serialize(req);
Functions.Function myFunction = Functions.Function.get('MyNamespace.myFunction');
Functions.FunctionInvocation invocation = myFunction.invoke(jsonconfig);
String jsonResponse = invocation.getResponse();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment