- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2020 01:49 AM
Hi,
When i am tring to create a catalog task through workflow getting an error
Create a Task: org.mozilla.javascript.Wrapped ConversionError:The undefined value has no properties
Any solutiion for this
Solved! Go to Solution.
- Labels:
-
Service Catalog
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2020 02:50 AM
Did you check the property name is proper?
I could see spaces in between
Is it group _ name or group_name
Also does it contain group sys_id or group name
If sys_id then this is fine
task.assignment_group = gs.getProperty('group_name');
If group name then this should work
task.assignment_group.setDisplayValue(gs.getProperty('group_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
09-01-2020 01:57 AM
Hi Gowtham,
please share screenshot of catalog task activity or script you used
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
09-01-2020 02:03 AM
task.short_description = "Please fulfill the Request for :" +current.variables.v1.getDisplayValue();
var l = current.variables.v2.name;
if(l == 'x' || l=='y'){
task.assignment_group = gs.getProperty('group _ name');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2020 02:50 AM
Did you check the property name is proper?
I could see spaces in between
Is it group _ name or group_name
Also does it contain group sys_id or group name
If sys_id then this is fine
task.assignment_group = gs.getProperty('group_name');
If group name then this should work
task.assignment_group.setDisplayValue(gs.getProperty('group_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
09-03-2020 12:46 AM
Hope you are doing good.
Let me know if I have answered your question.
If so, please mark appropriate answer as correct & helpful to close the thread.
If not, please let us know if you need some more assistance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader