Have read thru multiple post on this but not getting the results. I have a Flow formula that calculates OK using the flow native debug. However, this flow is called via apex showing the same variable in the debug logs with & #124; instead of the pipe'|' symbol.
Here is the formula: ("UPDT:"& {!fDocCodeOLD} &"|"& {!fDocCode})
Output in native Flow debugger shows: "UPDT:529|529AR"
Adjusting the formula as: ('UPDT:' & {!fDocCodeOLD} & '\'|\'' & {!fDocCode}),
Update a record calls apex which launches the flow.
Output in the debug logs shows: UPDT:529\'|\'529AR
I am sure the syntax is off but could use some suggestions given this is a flow variable being interpreted via apex.
This is the calling apex....using a flex queue to support the use of callouts for async support.
// from calling class setting the parameteres to pass into the flex queue class.
String docCodeCSL = "UPDT:"& oldCase.DocCode__c & "|" & c.DocCode__c;
as String docCodeCSL = docCodeCSL.unescapeHtml4();
Params.put('document_code' , docCodeCSL);
public class CaptivaQueuableCallout implements Queueable, Database.AllowsCallouts
{
Map<String, Object> params = new Map<String, Object>();
public CaptivaQueuableCallout(Map<String, Object> Params){
this.params = Params;
system.debug('Constructor CDR Flow Params received in flexQueue: '+Params);
}
public void execute(QueueableContext context) {
system.debug('Execute CDR Flow Params for flow Interview call: '+params);
Flow.Interview.Case_CDR_FlowController stage = new Flow.Interview.Case_CDR_FlowController(params);
stage.start();
}
}