Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Strip the App Code out of the string in Flow Designer

Community Alums
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

Community Alums
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. 

Community Alums
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?