ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 142 - Certified B2C Commerce Developer discussion

Report
Export

Given a job step configured in the steptype.json that calls a script module, a developer needs to add a custom status code "NO_FILES_FOUND" in the script. The status does not represent an error condition.

Which code snippet completes this requirement?

A.
var Status = require ('dw/system/Status');return new Status (Status.OK, 'NO_FILES_FOUND');
Answers
A.
var Status = require ('dw/system/Status');return new Status (Status.OK, 'NO_FILES_FOUND');
B.
this.status = 'NO_FILES_FOUND'; return this;
Answers
B.
this.status = 'NO_FILES_FOUND'; return this;
C.
return 'NO_FILES_FOUND';
Answers
C.
return 'NO_FILES_FOUND';
D.
var status = {success: 'OK', message: 'NO_FILES_FOUND'}; return status;
Answers
D.
var status = {success: 'OK', message: 'NO_FILES_FOUND'}; return status;
Suggested answer: A
asked 23/09/2024
Sana Mehak
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first