Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2023 01:05 PM
how can I pass the incident category value dynamically in key value format
var inccategory = current.category.getDisplayValue();
var result = "{'category':inccategory} // this gives me error but if I print logs then I am able to see correct value
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2023 01:44 PM
Remove the quotes around the curly braces:
var result = {"category":inccategory};
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2023 01:49 PM
Awesome it worked!!!
can you please explain as well so for future any one can take reference from this