Strip the App Code out of the string in Flow Designer
This content was last updated in 2024. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 05:58 AM - edited 11-26-2024 07:41 AM
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.
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 06:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 06:28 AM
Hi @Community Alums ,
I didnt get you fully, based on current configuration short description will show as highlighted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 07:05 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 07:52 AM
What is the expected output are you expect?
with current congratulation what value are you getting?