- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I am trying to create a ritm for each of a particular type of record from a custom table. I am getting the req, ritms, and tasks normally. However, the variables are displayed as '{}'. Here is a screenshot of the issue:
Here is a snip of the code that I am using to create the variables:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @NeoGeo ,
try this
item = ({
'sysparm_id': 'df9051da879fe21027c6426d0ebb35a8',
'sysparm_quantity': 1,
'sparm_requested_for': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'variables': {
'server_name': helperGR.u_name.toString(),
'purpose': helperGR.purpose.toString(),
'app_code': helperGR.u_app_code.toString(),
'application': helperGR.u_application.toString(),
'department': helperGR.u_department.toString(),
'contact': helperGR.u_contact.toString(),
'secondary_contact': helperGR.u_secondary_contact.toString(),
'assignment_group': helperGR.u_assignment_group.toString(),
'vendor': helperGR.u_vendor.toString(),
'notes': helperGR.u_notes.toString()
}
});
use toString and try
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @NeoGeo ,
try this
item = ({
'sysparm_id': 'df9051da879fe21027c6426d0ebb35a8',
'sysparm_quantity': 1,
'sparm_requested_for': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'variables': {
'server_name': helperGR.u_name.toString(),
'purpose': helperGR.purpose.toString(),
'app_code': helperGR.u_app_code.toString(),
'application': helperGR.u_application.toString(),
'department': helperGR.u_department.toString(),
'contact': helperGR.u_contact.toString(),
'secondary_contact': helperGR.u_secondary_contact.toString(),
'assignment_group': helperGR.u_assignment_group.toString(),
'vendor': helperGR.u_vendor.toString(),
'notes': helperGR.u_notes.toString()
}
});
use toString and try
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Chaitanya you are my hero! This 100% solved my issue. Thanks for your speedy and insightful answer.