Which SSJS statement adds a new row to a Data Extension?

Study for the Marketing Cloud Developers Certification Test with flashcards and multiple choice questions. Each question offers hints and explanations. Prepare effectively for your exam success!

Multiple Choice

Which SSJS statement adds a new row to a Data Extension?

Explanation:
In SSJS, adding a new row to a Data Extension is done by calling the Add method on the Data Extension’s Rows collection and passing a mapping of column names to the values you want in the new row. The example shows setting each column (col1, col2, Column3) to specific values, which creates a single new record with those fields populated. This is the operation designed specifically for insertion; it doesn’t retrieve existing rows or modify or delete them. Lookup is for fetching rows, Update modifies existing rows identified by keys, and Delete removes rows. So using Add with the column-value map is the correct way to insert a new row.

In SSJS, adding a new row to a Data Extension is done by calling the Add method on the Data Extension’s Rows collection and passing a mapping of column names to the values you want in the new row. The example shows setting each column (col1, col2, Column3) to specific values, which creates a single new record with those fields populated. This is the operation designed specifically for insertion; it doesn’t retrieve existing rows or modify or delete them. Lookup is for fetching rows, Update modifies existing rows identified by keys, and Delete removes rows. So using Add with the column-value map is the correct way to insert a new row.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy