Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dancinllama/e96d6cdced7418e9b0a67aae62b9488b to your computer and use it in GitHub Desktop.
Save dancinllama/e96d6cdced7418e9b0a67aae62b9488b to your computer and use it in GitHub Desktop.
/**
* @description Simple invocable class (can be called via process or flow). For logging a message or messages to the debug logs.
* @author James Loghry
* @date 8/1/2016
*/
public class InvocableLogger {
@InvocableMethod
public static void log(List<String> messages){
if(messages != null){
for(String message : messages){
System.debug(message);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment