ExamGecko
Question list
Search
Search

Question 82 - Certified B2B Commerce Developer discussion

Report
Export

Which service method should be overridden in order to allow 'without sharing' queries?

A.
ccrz.ccService.queryWithoutSharing()
Answers
A.
ccrz.ccService.queryWithoutSharing()
B.
ccrz.ccAPI.queryService()
Answers
B.
ccrz.ccAPI.queryService()
C.
ccrz.ccService.query()
Answers
C.
ccrz.ccService.query()
D.
ccrz.ccService.initSVCDAO()
Answers
D.
ccrz.ccService.initSVCDAO()
Suggested answer: D

Explanation:

The service method that should be overridden in order to allow ''without sharing'' queries is ccrz.ccService.initSVCDAO. This method is responsible for initializing the service data access object (SVCDAO) that is used by the service class to perform queries. By overriding this method, the user can specify the sharing mode of the SVCDAO, which will determine whether the queries respect or ignore the sharing rules of the current user. For example,ccrz.ccService.initSVCDAO(ccrz.ccAPI.SZ_WITHOUTSHARING)will initialize the SVCDAO with the without sharing mode. Salesforce

Reference:B2B Commerce and D2C Commerce Developer Guide,Service Classes,ccService Class

asked 23/09/2024
Anna Panagiotidou
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first