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-23-2024 11:41 PM
Hi @NARASIMHA REDD5,
How are you importing the data? IntegrationHub ETL? Data import?
What is the value of the 'monitor' field on the source record?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2024 12:36 AM
Hi @James
Thanks for your replay. I was importing through the import sets.
Source field value are in the Excel sheet given true/false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2024 02:08 AM
I think you can resolve the issue with one of the two options
- Modify the source field (import set field) type to 'True/False'. You will probably have to delete the existing source field and create one with the same name with the type set to 'True/False'. Or
- Create a Field Map with a script that transforms data from string to boolean. e.g.
answer = (function transformEntry(source) {
if (source.getValue('monitor') == 'true') {
return true;
} else if (source.getValue('monitor') == 'false') {
return false;
} else
return '';
})(source);
Hope it helps, thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2024 09:30 PM