- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2024 02:18 PM
Hi,
I want to copy the name of the company from my form(u_reference1) into the filter condition, but i am having troubles(it keep saying that is undefined). This is my script from the flow designer, the company is a reference and i think i need a strig to be in the filter condition, what should i do?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2024 12:41 AM
Hi everyone, I found the solution, I had to make some changes because fr_data was not working as expected, is a bug that ServiceNow is working on it:
var encodedQuery = 'sys_id=' + fd_data._1__get_catalog_variables.company.sys_id;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2024 02:35 PM
Hi @ada241,
Try replacing the first line of code with the following:
var companyNamePrefix = fd_data.trigger.request_item.variables.u_reference_1.name.toString();
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2024 02:57 PM
Hi @James Chun
is not working, still undefined.
I also tried var encodedQuery = 'nameSTARTSWITH' +" " + companyNamePrefix.toString(); ,still undefined
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2024 03:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2024 12:41 AM
Hi everyone, I found the solution, I had to make some changes because fr_data was not working as expected, is a bug that ServiceNow is working on it:
var encodedQuery = 'sys_id=' + fd_data._1__get_catalog_variables.company.sys_id;