How to compare string field with reference field in transform map?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2021 11:29 PM
I have a field in Excel named "Schedule" it maps with "Schedule" in cmn_schedule_span table...
so here my issue is...
Suppose in Excel If I provide like "India Schedule" while transforming it is referring to "Schedule" which is a reference field due to this my transform map is not working...
so can anyone please explain how can we compare a string with reference field in transform map
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2021 03:49 AM
Hi,
you have set the schedule field as coalesce
So if it finds the schedule in schedule span and if the records are already up-to date as per the latest import row then it would ne ignored
If you have 2 rows with identical data
1) 1 row will show updated
2) 2nd row will show ignored as the 1st row already updated the target record based on coalesce
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2021 03:56 AM
Hi
So how should I proceed? here my aim is to check start date and end date...suggest me how to proceed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2021 04:02 AM
HI
I was not clear ankur...can you please explain me a bit?
as per my work...there are 13 schedule entries...by 1st transform map...I have updated all 13..
next time I ran the transform map again...then 12 are again updated...only 1 is ignored..
here my requirement is to check start date and end date...if schedule is not right as a coalese field let me know what should I do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2021 04:22 AM
Hi,
You need to decide what is unique in the target table
Is it Combination of Schedule + Start Date + End Date then make all 3 fields as Coalesce = True
So even if any 1 match not found then it would insert when all 3 matches then it would update
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2021 07:13 AM
Just give me clarity for below query ankur...
suppose assume in my target / source table having 4 fields
1. User ID
2. Name
3. department
4. Experience
So consider userID is a coalesce field...then
Initially in target '0' records by first transform map we have inserted 3 records..
1. 123 sathvik ITSM 2
2. 456 Ankur SN 5
3. 789 shanmuk Network 6
All three records got inserted....
If I load the same data again what will I get? whether ignored? or updated? or skipped? or anything else?