Skip to content

Instantly share code, notes, and snippets.

Created October 19, 2021 06:00
What would you like to do?
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