Copy HTML script into a variable

Leonardo Chave1
Kilo Sage

Hello SN experts,

 

I'm reaching out for assistance or if you can guide me, I need to copy the HTML of an email to an HTML variable as this needs to be visible for the agents in the same format. I know that this is possible through the classic way (inbound action) but I'm trying to do this through flow designer, for this I created a custom action to obtain the value. 

 

Testing the action standalone it's working but once I test it in the flow it doesn't, this is how I've the action configured:

 

LeonardoChave1_0-1740158665124.png

 

LeonardoChave1_1-1740158694204.png

LeonardoChave1_2-1740158721349.png

LeonardoChave1_3-1740158748938.png

The strange thing is that in the flow when I try to use the data pill of the action it appears this way:

LeonardoChave1_4-1740158802367.png

 

Thanks in forwards,

 

 

 

2 REPLIES 2

Martin Friedel
Mega Sage

Hello Leonardo, 

 

I tried the same thing (except I used 'Send Email' action and it works for me fine. Please be more specific what is the issue. When you run test, check flow exection details.

  1. Has the action returned needed values?
  2. If so, what are runtime values of a step where you trying to put HTML into Request details field?
  3. What is field type of Request details field?
  4. Also include screenshots with Action Outputs configuration.

I included screenshots from my testing below.

 

Martin

 

flow.JPG1.JPG2.JPG3.JPG4.JPG5.JPG6.jpg7.JPG

Hello @Martin Friedel 

Thanks for your assistance! In this case, I'm trying to copy the HTML of the email and paste it into an HTML variable, so the variable has the same format. I followed the same steps you did and set the variable with the data-pill but I'm encountering the following error when I test the flow: com.snc.process_flow.exception.OpException.

I assume there might be some restriction preventing this operation. As a workaround, I used Maik Skoddow's article, "Set Value of a Catalog Variable at Flow Designer".