Field Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2024 10:36 PM
Hi Team,
Good Morning.
"I am facing an issue with mapping the field from source to target. We have a 'monitor' field on the CMDB form. I attempted to map the value, but instead of 'true' or 'false', I am receiving '0' or '1'. How can I resolve this issue?"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2024 09:36 PM - edited 02-25-2024 09:43 PM
May I know what type of field you have chosen for 'is Monitored' ?
Is it true or false choice, yes or no or it's a integer type ?
Try this :
answer = (function transformEntry(source) {
if (source.getValue('monitor') == '1') {
target.u_is_monitored = true;
} else if (source.getValue('monitor') == '0') {
target.u_is_monitored = false;
}
})(source);
;
You can update the value to 0 & 1 in dictionary.
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2024 10:49 PM
Thanks for quick Response. The Field Is Boole along with true/false choices.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2024 10:54 PM
Please change the type of field to True/False or create a choice field with true and false value...
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 12:38 AM
Still I am getting same
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 12:43 AM
can you brief your source and taget fields a little bit more... ? i need a over view on what your trying and were the isssue is ...
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....