Skip to main content

Script to add a new record

  • June 21, 2021
  • 4 replies
  • 83 views

Forum|alt.badge.img+2

are there any examples of scripts that add a new record? i built a script that updates a field on a record when the email exists. now i want to modify it to add a new record if the email doesn’t exist yet. i don’t see any examples and not sure what the syntax is for adding records. thank you!

4 replies

Kamille_Parks11
Forum|alt.badge.img+27

The bottom of the Script App panel has an “examples” and “API” section that show both examples of how scripts that create records and the generic syntax necessary.


Forum|alt.badge.img+2
  • Author
  • New Participant
  • June 21, 2021

i saw those but don’t see anything about adding a new record. which example are you looking at?


Kamille_Parks11
Forum|alt.badge.img+27

i saw those but don’t see anything about adding a new record. which example are you looking at?


“Record template” and “Spreadsheet importer” bot show how to create records, and the generic syntax to create one or more new records is under API => Table. You can also just search for the word “create” to jump to that section of the documentation.


Forum|alt.badge.img+2
  • Author
  • New Participant
  • June 21, 2021

oh thanks! i was looking under API => record. that helped :grinning_face_with_big_eyes: