NOWCommunity Live Stream - Code Decoded - Creating new records

preview_player
Показать описание
Community member John asked about various ways to create record with script and from the URL. Chuck will shed some light on some options.

Join us Mondays and Thursdays at 2PM UTC.

Topics covered in this episode include:
Episode topics include:
* GlideRecord initialize vs. newRecord
* Using sys_id=-1 to create a new record
* Using sysparm_query to populate fields

References:

Рекомендации по теме
Комментарии
Автор

One other thing I forgot to mention about newRecord() vs. initialize(), if you have auto-numbering on your table, a number will be consumed with newRecord() even if you don't insert. I haven't (yet)checked this against the system property to see if it's impacted.

ChuckTomasi
Автор

Thanks Chuck, love your sarcastic behavior a lot !!! Amazing personality !!! You're an inspiration 🖤🙏🏿

codingsutra