The CreatorCon Call for Content is officially open! Get started here.

Create a record in a table and populate fields

Summer
Kilo Contributor

Hi all!

Im creating a fix script as I was trying to create a new record in a table with populate fields and here's what I did.

 

find_real_file.png

 

Result: When I tried to run the fix script and check the table, I cannot see the record in the table..  Can you guys help me with this? Thanks in Advance!

10 REPLIES 10

Chandu Telu
Tera Guru

Hi Summer,

Remove the u_notification line and insert and let us know and we need to table name if it's OOTB and check is there Business Rule - Script contain setAbortAction True

Please Mark the answer if correct/helpful , if it helps

 

Thanks

Chandu Telu

Hi @Chandu Telu Thank you . I tried to remove the u_notification line and insert. It still doesnt show in the table

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

is that a custom table which you created?

Are you sure there is some value in NotificationSysId.SONGWBS ?

Is it breaking at that line? try to comment that line and verify

Regards
Ankur

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

Hi @Ankur Bawiskar 

1.Yes this is a custom table 

2. Yes there's a value for the NotificationSysId.SONGWBS (sysi id of the notification) and it is stored in script include.

3. It says here find_real_file.png