Change string to HTML in flow designer.

Samiksha2
Mega Sage

Hi All,

I am using Flow designer to create the Request through email.

I have created two variables:

Short description- Single text line

Description- HTML.

Samiksha2_0-1693288939085.png

Samiksha2_1-1693289054203.png

For Short description I have added Subject Line and for Description Body Text. But the value is coming as string. How to change that to HTML because users will send images as well in the body. I am not finding script option also in the flow designer
There is a syntax in inbound action "email.body_html". But how to use this in Flow Designer. Or can we change the String to HTML using Business Rule on update.

 

Please help in this.

 

Thanks,

Samiksha

 

 

10 REPLIES 10

HI@Samiksha2 

What spoke are you using?  

Can you post a full screenshot?

 

 

Please mark my answer as correct and helpful based on Impact.

Hi @newhand ,

Samiksha2_0-1693370118448.pngSamiksha2_1-1693370218817.png

Samiksha2_3-1693370360349.png

 

 

@Samiksha2 

I tried it on my pdi.
The same as the pic you posted, there are no inline script buttons displayed on the right side of the Discription field。

And on my pid,It seems that the data pill  doesn't work well with rich text (html vairable).
※ a strange blank is shown on the request item created by the spoke.

 

However,i found another way: submit a  catalog request by script !

refer this post:Here 

And i have tried the script ,it works well。

Html string value setted to the catalog item vairables works well!

 

 

 

Please mark my answer as correct and helpful based on Impact.

Hi @newhand ,

 

Please add the link. Are you using Email Inbound Action?

I am not using inbound action because I have to fetch requester for's account(CSM Module). And when I am testing,  request is creating but a case is also creating with that and that RITM is added in the case related list

 

Samiksha2_0-1693389184998.png

 

@Samiksha2 
Here: 

https://www.servicenow.com/community/developer-articles/submit-catalog-item-via-script-automate-cata...

 

I used flow designer with trigger Inbound Email.

However,I didn't use the trigger's email ...

I used a normal flow vairable for testing...

 

Normally case will not be created after a request is submitted.

Maybe you should check if there are any business rules or other trigger  working behind the request ..

 

 

 

Please mark my answer as correct and helpful based on Impact.