Reference field value is coming but which is not visible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2023 06:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2023 07:40 PM
What do you mean by they are populating but not visible? Where are they not visible?
If you submit the car item from the portal are the variables visible on the RITM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2023 09:48 PM
Hi @DanielCordick Thanks for replying
reference field value not populating when i send the some value from postman integration,
please find the attached snapshot
Please help me how can I get these fields values visible.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2023 10:19 PM
What are the values you are sending with
request.body.data.company & request.body.data.exsisting_department
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2023 10:51 PM
I have written below scripted rest API :
(function process( /*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response)
{
var error = '';
var catItem = '';
var cat = new GlideRecord('sc_cat_item');
if (cat.get('name', 'New Hire/Transfer')) {
catItem = cat.sys_id;
}
var cart = new Cart();
var item = cart.addItem(catItem);
cart.setVariable(item, 'company', request.body.data.company);
cart.setVariable(item, 'existing_department', request.body.data.existing_department);
var cartGR = cart.getCart();
cartGR.update();
var rc = cart.placeOrder();
response.setBody({ result: 'Catalog Item request' + rc.number + 'created.'
});
})(request, response);
we have sending "company" name and "department" name both variable are reference field
so could you please me how can I those value in that field.