ExamGecko
Question list
Search
Search

Question 191 - Certified B2B Commerce Developer discussion

Report
Export

A developer needs to bulk export all of the Product data from an org and does not have access to Data Loader or Workbench. However, the Command Line Interface (CLI) is available. Which command allows the developer to accomplish this task?

A.
sfdx force:data:treeiexport -q -x export-demo -d /tmp/sfdx-out -p
Answers
A.
sfdx force:data:treeiexport -q -x export-demo -d /tmp/sfdx-out -p
B.
sfdx force:data:tree:export -Product2 -all
Answers
B.
sfdx force:data:tree:export -Product2 -all
C.
sfdx force:data:tree:export -o Product?
Answers
C.
sfdx force:data:tree:export -o Product?
D.
sfdxforce:data:tree:export -h
Answers
D.
sfdxforce:data:tree:export -h
Suggested answer: A

Explanation:

The Salesforce CLI commandsfdx force:data:tree:exportis used to export data from an org into one or more JSON files1.The-qflag is used to specify the path to a file containing a SOQL query,-xis used to specify the name of the exported file,-dis used to specify the directory where the exported file will be saved, and-pis used to indicate that all records returned by the SOQL query should be exported12.This command allows developers to bulk export data from an org without needing access to Data Loader or Workbench12. Therefore, option A is the correct answer. Please note that the actual SOQL query and the directory path would need to be replaced with the appropriate values for the specific use case.

asked 23/09/2024
Hossein Nasri
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first