Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

In the table fields should be updated but should not be inserted?

Ramanjaneyuv
Tera Contributor

In the table fields should be updated but should not be inserted ?

Scenario:1. we are importing data through import set , 

2, here fields should be updated but should not insert new rows in the Tables.

 

Thanks

Ram

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Ramanjaneyuv 

 

Use the coalsec.

 

https://youtu.be/6dU9yBQPq_I

 

*************************************************************************************************************
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]

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

Thanks for your response @Dr Atul G- LNG ..

Here my point 1. Records should be updated  otherwise records will bet insert in the table (coalsec) .

2. my question is records should be updated but records should not be inserted or  new rows in the table.

Thanks

Hi @Ramanjaneyuv 

 

Its decided by coalsec. If coalsec match it will update else insert the record.

*************************************************************************************************************
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]

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

luffy3478
Tera Guru

in on before transform script

 

 

if (action == "insert") ignore = true;