Transform Map coalesce field

SohamJ
Tera Contributor

In a transform map for user table, there are 2 coalesce fields with an OR condition. If the source user_id is found in the user table, then update the record. If source user_id is not found, then check for source email. If source email is found in the user table, then update the record. If neither source user_id is found, nor source email is found in the user table, then create a new record.

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @SohamJ 

 

here is working:

 

When coalescing on multiple fields, all coalesce fields must be a match for there to be a collision. Matching some coalesce fields but not all does not produce a match.

  • If a match is found using the coalesce fields, the target record is updated with the information imported from the staging table.
  • If no match is found, a new record is inserted in the database.
  • If no fields are coalesce fields, records are always inserted on import.

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

J Siva
Tera Sage

HI @SohamJ 
Coalesce field doen't works like this.
Please chcek the reposne from @Dr Atul G- LNG .
You should plan accodingly.
Regards,
Siva

SD_Chandan
Kilo Sage

Hi @SohamJ ,

For more info & detail understanding you can refer the solution of this Thread 
https://www.servicenow.com/community/itsm-forum/what-is-coalesce-explain-with-example/td-p/2341075

Mark it helpful if this helps you to understand. Accept solution if this give you the answer



Thank you
Chandan

Ankur Bawiskar
Tera Patron
Tera Patron

@SohamJ 

You cannot handle it via Coalesce field.

Don't have field map for this.

Handle this using onBefore transform script.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader