Notifications
Clear all
Topic starter
Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object and persist it to the database?
- A . Var customobject = dw.object.CustomObjectMgr.createNewsletterSubscription(‘email’,
newsLetterForm.email.value);
B. Var customobject =
dw.object.CustomObjectMgr.createCustomObject(newsletterForm.email.value,
‘NewsletterSubscription’);
C. Var customobject = dw.object.CustomObjectMgr. createCustomObject (‘NewsletterSubscription’, newsLetterForm.email.value);
D. Var customobject = dw.object.CustomObjectMgr. createCustomObject (‘NewsletterSubscription’,’email’, newsLetterForm.email.value);
Suggested Answer: C
Posted : 10/12/2022 3:46 am