Which syntax would a developer use when creating test data for - ProProfs Discuss
Topics
Products
Follow Us:

Which syntax would a developer use when creating test data for products and pricebooks?

This question is part of Salesforce Platform Developer 1
Asked by Cmduquer, Last updated: Jan 27, 2020

+ Answer
Request

2 Answers

M. Porter

Here to relax my mind a bit

M. Porter, Senior Executive, Master of Art, San Jose

Answered Jan 03, 2019

The proper syntax that will be used for this is Id pricebookId = Test.getStandardPricebookId();. It can be hard for people to understand what this is unless they have a clear view of what syntax is. The syntax is known to be a set of rules or codes that can be used to gain a certain result. In the above-mentioned syntax, one wrong symbol can make the effect different or the syntax will not work at all. By definition, syntax means that it is a study that will be in certain word order....Read More
 

cmduquer

Cmduquer

Answered Sep 18, 2018

A. Id pricebookId = Test.getStandardPricebookId();

####
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.