| Exam Name: | Salesforce Certified B2C Commerce Developer | ||
| Exam Code: | Comm-Dev-101 Dumps | ||
| Vendor: | Salesforce | Certification: | Developers |
| Questions: | 154 Q&A's | Shared By: | navy |
A developer has a sandbox with code to log a message during execution, and the following code:
varLogger=require( ' dw/system/Logger ' );
Logger.info(message);
After the code executes, the developer does not see any log file with the message in the WebDAV folder.
What could the developer do to correct this issue?
A merchant has asked their development team to add a new site.
Which task is essential for correct site configuration prior to launch?
Below is a form definition snippet from the newsletter.xml file:
< ?xmlversion= " 1.0 " ? >
< formxmlns= " http://www.demandware.com/xml/form/2008-04-19 " >
< fieldformid= " email " label= " Email: " type= " string "
mandatory= " true " max-length= " 50 " / >
< /form >
Which line of code creates a JSON object to contain the form data?
The developer needs to add custom category debug logging into the " contact " script, to ensure that a third-party service call responds as expected.
Assuming that the logging configurations for the contact category are correctly in place, which line of code should the developer add in the 06 placeholder to meet this requirement?
01varLogger=require( ' dw/system/Logger ' );
02varservice=dw.svc.LocalServiceRegistry.createService( ' contact.http.submit ' ,options);
03varserviceResponse=service.call(requestJSON);
04
05if(serviceResponse.ok) {
06// Insert logging code here
07}