If Coalesce failed record should not create

SANJEEV4
Tera Contributor

I have a requirement. We should not create a single record when coalesce fails(coalesce for update only )

 

That should be updated only.

I created onBefore with 

if(action == 'insert'){
ignore=true}

//Still it's creating new records

 

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@SANJEEV4 

script looks good.

Did you check the action object contains what value?

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

@SANJEEV4 

what came in logs?

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

@Ankur Bawiskar Value is insert

Can we use this

if(action == 'insert'){
ignore=true
return;
}