
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2020 11:17 AM
I have built a few custom tables, extending the Task table, to bring our HTML forms into our new Service Portal. I've been working on this for a couple weeks, testing each form as I go. I build a Flow to route the form and send an email notification to the right people.
That email is scripted in Flow Designer, using a string literal and concatenation to fill in the blanks from the Record Producer. I use fd_data to access the data in the Flow. It has been working great, until this morning. I finished my last form, and tests are failing. I'm seeing the error in the Execution "fd_data is not defined"
I went back to one of the other flows that was working great to see if I accidentally did something different, but the code is identical. fd_data pops up when I type it in, and I can dot walk through the Flow data as usual.
The crazy part is, now even the Flows that were working great are giving the same error.
This is a tiny snip of what I'm doing. It's pretty standard, and was working great yesterday.
var body = "<table>\
<tr><td><a href='https://rcchelpdesk.service-now.com/now/workspace/agent/record/u_user_account_form/" + fd_data.trigger.current.sys_id + "'>Link to form</a></td>";
body = body + "</tr>\
<tr>\";
I didn't change any of the code, it just stopped working. I suspect the code is fine, and it's something elsewhere in my instance, but I'm not really sure what. Any ideas?
Solved! Go to Solution.
- Labels:
-
flow designer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2020 09:05 AM
I figured it out.
I'm still not sure why, but it suddenly decided it didn't like the way I was concatenating the strings inline with the sys_id. When I separated those out to three different lines, it works now.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2020 09:05 AM
I figured it out.
I'm still not sure why, but it suddenly decided it didn't like the way I was concatenating the strings inline with the sys_id. When I separated those out to three different lines, it works now.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2020 02:44 PM
I am having the same issue. Can you please explain how you separated these out? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2022 11:15 PM
Thank you! I encountered this bug as well and I was tearing my hair out trying to understand what was wrong. I followed your advice by separating a string concatenation over several lines and everything works perfectly!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2022 07:12 AM
Thank you for sharing. Your solution worked for me!