Good Day Experts,
Can any one please explain how to pass the robotic process variables dynamically when we are invoking start Appian method?
I'm able to pass the initial value but i would like to pass that dynamically. Please let me know if you need more details on this.
Thanks in advance.
Cheers,
Kalai.
Discussion posts and replies are publicly visible
At this time robotic process variables cannot be sent as parameters. To use dynamic values, you should create Instructions on your robotic process. In your process, you can then reference instructions and even map them to robotic process variables. https://docs.appian.com/suite/help/20.1/rpa/develop/configuring-a-robotic-process.html#instructions
Good Day Danny,
Thanks for your response,
I got the instruction value by server.getParameters().get("parameter_name") and can you please help me how to pass this value to parameter?
Kalai
You can create Robotic Process Variables. You can create them in the Robotic Process Configuration page, and then dynamically set them during your process execution. Checkout the MS Outlook or Browser Scraper Robotic Processes on the App Market. These processes make use of Dynamic Robotic Process Variables.
Please reference the pictures below of the Robotic Process Configuration Page:
Please see the Java code example:
private void setLowCodeVariables(List<String> documentIds){ Map<String,IRobotVariable> workflowVariables = server.getWorkflowVariables(); // string array workflowVariables.get("documentIds").setValue(documentIds.toArray()); // strings workflowVariables.get("emailBody").setValue(currentItem.getBody()); workflowVariables.get("fromEmail").setValue(currentItem.getSenderEmailAddress()); workflowVariables.get("fromName").setValue(currentItem.getSenderName()); workflowVariables.get("subject").setValue(currentItem.getSubject());}
Thank you so much Sam,
I'll try this .