- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 10:17 PM
Hi @Ankur Bawiskar,
I am getting this error "Error: Cannot read property "variables" from null,Detail: Cannot read property "variables" from null" in flow designer while using flow designer for creating new user.
code:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 11:33 PM
Hi,
Since yours is a custom action refer this link which would give you an understanding of input, output etc
Custom Action in ServiceNow Flow Designer
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 10:21 PM
try this format
var field1 = fd_data.trigger.current.variables.variable_name;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 10:23 PM
Hi,
the syntax to get variable values is this
var nameProvided = fd_data.trigger.request_item.variables.employee_name;
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 10:31 PM
Hi
New error occurs "java.lang.IllegalArgumentException: variables.employee_name is not a valid dot-walk for record".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 10:37 PM
Hi,
can you help knowing this
1) your flow is on which table
2) is the variable name correct
the syntax to get variable value should work fine
fd_data.trigger.request_item.variables.<variableName>
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader