We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Strip the App Code out of the string in Flow Designer

Not applicable

Hi,

 

I have a requirement where i have to strip the App Code out of the string in Flow Designer. In the picture I have to show for the Short Description as DTTS Request for SUMAN PALISETTY (MFT). Kindly help.

 

st.png

 

str.png

 

s.png

 

Regards

Suman P.

5 REPLIES 5

Not applicable

Hi @Runjay Patel,

Please help me if you have some time.

Regards

Suman P.

Hi @Community Alums ,

 

I didnt get you fully, based on current configuration short description will show as highlighted. 

Not applicable

I have completed this. Here is the script to strip the string in Flow Designer.

 

var a = fd_data._1__get_catalog_variables.application_service.u_regions_ci_display_name;
var st = a.toString();
var index = st.indexOf('-');
var req = st.substring(0,index-1);
var output = 'DTTS Request for ' + '(' + (req) + ')';
return output;

 

Regards

Suman P.

What is the expected output are you expect?

with current congratulation what value are you getting?