function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ganesh HegdeGanesh Hegde 

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
Best Answer chosen by Ganesh Hegde
ShashankShashank (Salesforce Developers) 
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