I have (hopefully) a simple problem. I am calling a flow from a Detail Page Button:
/flow/Send_Message?objectId={!Account.Id}
Send_Message flow starts on a Screen block. The Screen has two String input fields:
These input fields I save to a variable and pass to an APEX class:
When I run the flow, I am able to get into the APEX class but the Message
and Email_or_Text
values are not carrying over. This means to me that they are not saving in the flow. I THINK it has to do with the fact that there is no finish button on the flow. My end goal is to have the APEX class do a redirect. So there is no need for a end screen. I am not sure if there is a way around this. Am I setting the flow and apex correctly?
APEX Class:
public class SendMessage implements Process.Plugin {
public String objectId;
public String message;
public String email_or_text;
public Process.PluginResult invoke(Process.PluginRequest request) {
Map<String, Object> result = new Map<String, Object>();
objectId = (String) request.inputParameters.get('objectId');
message = (String) request.inputParameters.get('message');
email_or_text = (String) request.inputParameters.get('email_or_text');
system.debug('values:: ' + objectId + message + email_or_text);
return new Process.PluginResult(result);
}
public Process.PluginDescribeResult describe() {......