You need to sign in to do that
Don't have an account?

Test class for Visual Flow page variables
Hi All,
I have a Visual Flow class like this
global class VF implements Process.Plugin {
global Process.PluginResult invoke(Process.PluginRequest request) {
String CustNo= (String) request.inputParameters.get('Cust_No');
String recordId = (String) request.inputParameters.get('{!varRecordId}');
.......
}
}
I am able to set the value to Cust_No variable from Map but how can pass the value to {!varRecordId} from test class? Please help.
{!varRecordId} is the ID of the record
Thanks
I have a Visual Flow class like this
global class VF implements Process.Plugin {
global Process.PluginResult invoke(Process.PluginRequest request) {
String CustNo= (String) request.inputParameters.get('Cust_No');
String recordId = (String) request.inputParameters.get('{!varRecordId}');
.......
}
}
I am able to set the value to Cust_No variable from Map but how can pass the value to {!varRecordId} from test class? Please help.
{!varRecordId} is the ID of the record
Thanks



Here's an example of an apex plugin test class: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_process_plugin_example_lead_convert.htm