Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Einstein Bot Invocable method for Returns with Zenkraft
public without sharing class BotReturnOrder {
@InvocableMethod(label='Bot Return Order')
public static List<Response> returnOrder(Request[] requests) {
List<Response> resp = new List<Response>();
String orderNumber = requests[0].orderNumber;
Response r = new Response();
return resp;
public without sharing class Request {
@InvocableVariable(label='orderNumber' required=true)
public String orderNumber;
public without sharing class Response {
@InvocableVariable(label='labelUrl' required=true)
public String labelUrl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.