What is COALESCE explain with example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 09:32 AM
Please Help me

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 09:46 AM
Coalesce is commonly used with Transform maps in ServiceNow. It is used to set a field as unique, so that when data is imported :
- If ServiceNow identifies the data against an existing record using Coalesce, then it will update that record.
- If ServiceNow identifies the data against no existing records, it creates a new one.
So lets take this as a simple example, we want to load the below User information through Transform Maps into our User table. We set Employee ID as the Coalesce field
Here is the data we are loading in.
Employee ID | Name | Country | Role |
001 | John | Ireland | Sales |
002 | Sarah | England | IT |
003 | Amy | Scotland | HR |
004 | Brad | America | Marketing |
Here is the data that exists in the User table already
Employee ID | Name | Country | Role |
001 | John | Sales | |
002 | Sarah | England | |
003 | Scotland | HR |
Here is what the table would look like after the transform map runs
Employee ID | Name | Country | Role |
001 | John | Ireland | Sales |
002 | Sarah | England | IT |
003 | Amy | Scotland | HR |
004 | Brad | America | Marketing |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2024 02:55 AM
Nice explaination thankyou !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2024 02:48 AM
Nice Explanation thankyou!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2024 01:50 AM
Thanks for explaining in simple way.