Sunday, 10 April 2016

#Salesforce Certified Platform Developer II : Sharing Experience

Hi All,
After long time of 5 months I went for another certification and this one is a new one, didn't get allot of information about the experience of the this new salesforce certification, now I have 8 salesforce certs, I must say this one is made me nervous, but felt great when I cleared this one.



Here are few important things that should be looked into before appearing in the exam

Compound Field Considerations and Limitations

Address and geolocation compound fields are convenient and result in more concise, clear code. Here are some things to consider when using them in your apps.
Both address and geolocation compound fields have the following limitations.
  • Compound fields are read-only. To update field values, modify the individual field components.
  • Compound fields are accessible only through the SOAP and REST APIs. The compound versions of fields aren’t accessible anywhere in the Salesforce user interface.
  • Although compound fields can be queried with the Location and Address Apex classes, they’re editable only as components of the actual field. Read and set geolocation field components by appending “__latitude__s” or “__longitude__s” to the field name, instead of the usual “__c.”
Use convertCurrency() in a SOQL query to convert currency fields to the user’s currency. This action requires that the organization is multicurrency-enabled.
Use this syntax for the RETURNING clause:
convertCurrency(Amount)
For example,
FIND {test} RETURNING Opportunity(Name, convertCurrency(Amount))

If an org has enabled advanced currency management, dated exchange rates are used when converting currency fields on opportunities, opportunity line items, and opportunity history. With advanced currency management, convertCurrencyuses the conversion rate that corresponds to a given field (for example, CloseDate on opportunities). When advanced currency management isn’t enabled, the most recent conversion date entered is used.

Continuation :Make Long-Running Callouts from a Visualforce Page

Use asynchronous callouts to make long-running requests from a Visualforce page to an external Web service and process responses in callback methods. Asynchronous callouts that are made from a Visualforce page don’t count toward theApex limit of 10 synchronous requests that last longer than five seconds. As a result, you can make more long-running callouts and you can integrate your Visualforce pages with complex back-end assets.

An asynchronous callout is a callout that is made from a Visualforce page for which the response is returned through a callback method. An asynchronous callout is also referred to as a continuation.


Transaction Control

All requests are delimited by the trigger, class method, Web Service, Visualforce page or anonymous block that executes the Apex code. If the entire request completes successfully, all changes are committed to the database. For example, suppose a Visualforce page called an Apex controller, which in turn called an additional Apex class. Only when all theApex code has finished running and the Visualforce page has finished running, are the changes committed to the database. If the request does not complete successfully, all database changes are rolled back.
Sometimes during the processing of records, your business rules require that partial work (already executed DML statements) be “rolled back” so that the processing can continue in another direction. Apex gives you the ability to generate a savepoint, that is, a point in the request that specifies the state of the database at that time. Any DML statement that occurs after the savepoint can be discarded, and the database can be restored to the same condition it was in at the time you generated the savepoint.

DML Statements vs. Database Class Methods

Apex offers two ways to perform DML operations: using DML statements or Database class methods. This provides flexibility in how you perform data operations. DML statements are more straightforward to use and result in exceptions that you can handle in your code. 


Set Up Test Data for a Test Class

Test setup methods are defined in a test class, take no arguments, and return no value. The following is the syntax of a test setup method.
@testSetup static void methodName() {
}
Use test setup methods (methods that are annotated with @testSetup) to create test records once and then access them in any test method in the test class. Test setup methods are useful and can be time-saving when you need to create a common set of records that all test methods operate on or prerequisite data.

Best Practices for Improving Visualforce Performance

Defining Transient with variable and minimizing the view state, using lazy loading and  the minification of JavaScript and CSS,

InvocableMethod Annotation

Use the InvocableMethod annotation to identify methods that can be run as invocable actions.
Invocable methods are called with the REST API and used to invoke a single Apex method. Invocable methods have dynamic input and output values and support describe calls.
The following code sample shows an invocable method with primitive data types.

 public class AccountQueryAction {  
  @InvocableMethod(label='Get Account Names' description='Returns the list of account names corresponding to the specified account IDs.')  
  public static List<String> getAccountNames(List<ID> ids) {  
   List<String> accountNames = new List<String>();  
   List<Account> accounts = [SELECT Name FROM Account WHERE Id in :ids];  
   for (Account account : accounts) {  
    accountNames.add(account.Name);  
   }  
   return accountNames;  
  }  
 }  



Pagination Strategies 

When to use standardsetcontroller, or when to offset and SOQL, best that you can have about this topic is this post

Few more topics

1. Lightning components
2. Using Developer console.
3. Test class best practice
4. SOQL and SOSL
5. Apex charts
6. Rollup summary
7. Http callout and its testing

If you cover all these topics, then for sure you can clear this exam.
thanks


30 comments:

  1. Hi Abhi,

    Nice blog post! Could you please share some tips for passing Salesforce Developer1 exam? Or have got any dumps for that? Thanks

    ReplyDelete
    Replies
    1. Hi Abhi,

      I am preparing for PD2 transition which I have to give before 6th. Could you please help me more topics and material.Could you please guide me more?

      Thanks

      Delete
    2. Great Article Cloud Computing Projects

      Networking Projects

      Final Year Projects for CSE

      JavaScript Training in Chennai

      JavaScript Training in Chennai

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. Do you have sample questions? Or dumps?

    ReplyDelete
  3. The information on this blog is very useful and very interesting. If someone needs to know about the just click Salesforce Developer Training | Salesforce Developer Certification

    ReplyDelete
  4. if any one needs PD2 MCQ Exact dumps kindly contact salesforcedumpspd2@gmail.com

    ReplyDelete
  5. I have latest PD2 MCQ dumps if you would like to buy please email to salesforcedumpspd2@gmail.com for rs 6k

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. For latest dumps reach out to me on rakesh.sdna@gmail.com

    ReplyDelete
  8. DIAC is offering Salesforce.com Training with on admin, developer, salesforce lightening, crm. Call @ +919310096831 for details on course fees, syllabus, placement facilities, batch timings, course duration.

    ReplyDelete
  9. I just cleared the PD2 and Service Cloud exam. Please mail me at salesforcecertguide2018[at]gmail.com for latest exact questions and guidance or any help required for the examinations.

    ReplyDelete
  10. For Latest winter 19 Salesforce Certification questions with answers,Please write to me on suri.sdna@gmail.com

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. The first step should be to research the potential company online. Check the year of their domain registration because sometimes offshore companies state on their website that they have about 10 years of experience, but strangely their domain was only registered the previous year. https://www.dbdesigner.net

    ReplyDelete
  13. I completely agree with you. I take to deliver the “hair expansions weaves” and its rather interesting. Thanks for sharing your article Platform-App-Builder dumps questions

    ReplyDelete
  14. Hi all, Anyone needs updated salesforce certification Self study guides - Sample questions with correct answers and training materials contact us at abhishekpowar76@gmail.com

    More Details visit: Salesforce Certification sample questions

    ReplyDelete
  15. It is additionally adaptable which means organizations will almost certainly utilize this instrument as indicated by the development of their association. salesforce for nonprofits

    ReplyDelete
  16. Participants of this course also get a proper understanding of the functionalities related to app deployment as well as app development lifecycle. Salesforce training in Chennai

    ReplyDelete
  17. Hey TrailBlazers,

    I have below mentioned Winter 21 SFDC dumps. Email me at sfdccertification2019[at]gmail.com (PAID SERVICE)

    1. Salesforce Certified ADM201 Wi21.
    2. Salesforce Certified APP BUILDER Wi21.
    3. Salesforce Certified PD1 Wi21.
    5. Salesforce Certified ADV ADMIN Wi21.
    6. Salesforce Certified SALES CLOUD Wi21.
    7. Salesforce Certified SERVICE CLOUD Wi21.
    8. Salesforce Certified COMMUNITY CLOUD Consulatant Wi21.
    9. Salesforce Certified MARKETING CLOUD Email Specialist Wi21.
    10. Salesforce Certified DATA ARCHITECTURE Wi21.
    11. Salesforce Certified SHARING VISIBILITY Wi21.
    12. Salesforce Certified DEVELOPMENT LIFECYCLE Wi21.
    13. Salesforce Certified IDENTITY ACCESS Wi21.
    14. Salesforce Certified INTEGRATION ARCHITECTURE Wi21.
    15. Salesforce Certified Field Service Lightning Wi21.
    16. Salesforce Certified Einstien Discovery Wi21.
    17. Salesforce Certified CPQ Wi21.

    Thanks
    Your trusted sfdccertification2019

    ReplyDelete
  18. Thanks mate. I am really impressed with your writing talents and also with the layout on your weblog. Appreciate, Is this a paid subject matter or did you customize it yourself? Either way keep up the nice quality writing, it is rare to peer a nice weblog like this one nowadays. Thank you, check also event marketing and Event Insights: Trigger Timing

    ReplyDelete
  19. Thanks for sharing this information its really very help full to me we also writing a blog of technology if you want to read you can go through Salesforce Certification Preaparation Material , Salesforce Project Materials

    ReplyDelete
  20. How could that person be true to the values and the brand of the company, which the chief executive has spent so much time, energy and money developing? Salesforce training in Chennai

    ReplyDelete
  21. MAJOR168 is open for football betting today. There are many big camps together BTi SBOBET IBCBET CMD365 if you are looking for a football betting website. Do not miss this site, there is football, there are all sports in the world. คาสิโนออนไลน์. Betting is available 24 hours a day with the best odds per pair in Thailand. Guaranteed automatic deposit and withdrawal system 10 seconds.

    Live sports betting Online football betting Good price with every football match open for today online football betting SAGAME88 There are many big camps together, SBOBET IBCBET BTi CMD365, the only website complete in online football betting คาสิโนออนไลน์. There is every sport on the planet in here. With the automatic deposit and withdrawal system for 10 seconds, we have a live football system to watch every night.


    We offer a wide variety of services. Called him the only player to finish with everything else does not have to go to the web preview ufabet as online. Online casinos Baccarat online Online betting games, Slot online, and with new technology, you can play ufabet via mobile phone today. Mobile Baccarat, play online via the website


    Ufabet1688 of us again the way we are websites directly, not through a General Services, where customers will know it absolutely was extremely really no cheating possible on-site gambling online, it is ufabet1688 of us will hit prices.

    ReplyDelete
  22. With a convenient, fast and complete service of สมัคร ufa, whether depositing - withdrawing, asking for various usage And can place bets anywhere There are many gambling games to choose from. UFA88WIN UEFA 88 Win answers your needs the best. No problem about being cheated Because we provide services directly from the parent web UEFA Bet Thailand is 100% safe, supports online ufa football betting via the Internet. And online casinos with more than 1000 games to choose from

    ReplyDelete
  23. บาคาร่าออนไลน์ ถือว่าเป็น เว็บบาคาร่าออนไลน์ ที่นอกจากทำการรวบรวมเหล่า เกมคาสิโนออนไลน์ที่ดีที่สุด 2021 ทุกรูปแบบที่มีแล้วนั้น ทางเว็บเรา ยังพร้อมมอบสิทธิพิเศษ และผลประโยชน์ต่าง ๆ มากมาย เพื่อคืนกำไร และเอื้อสิทธิผลประโยชน์ที่ผู้เล่นควรได้รับ ไม่ว่าจะเป็นสมาชิกเก่าหรือใหม่ก็ตาม อาทิเช่น โปรโมชั่นแรกเข้า 30% ทันที โปรโมชั่นแนะนำเพื่อนรับ 20% และ โปรโมชั่นคืนยอดเสียที่ผู้เล่นสามารถกดรับได้ในทุก ๆ เดือน 5 % อีกทั้งทางเว็บไซต์ยังได้พัฒนาระบบทางการเงิน เข้าสู่รูปแบบออโต้ หรืออัตโนมัติ เพื่อความปลอดภัยและมั่นคงในธุรกรรมทางการเงินของเหล่าสมาชิก รวมไปถึงการให้บริการติดต่อสอบถามตลอด 24 ชม. กับทีมงานเจ้าหน้าที่มืออาชีพ บาทคาร่าออนไลน์ ที่พร้อมให้คำปรึกษาด้วยเช่นกันนั่นเอง.

    ReplyDelete
  24. If you are looking for a good website, ufa, UEFA BET casino site. Which can be played as a complete solution, able to answer Both in terms of quality and performance that are quite diverse It is best to have a lot of these things.

    ReplyDelete
  25. ufabet Parent company, the most popular online gambling website, whether it is online football betting Online casinos Baccarat online All of them were not less popular than each other. Become a member of UEFA Bet Playing with the parent company Did not pass agent Bet on a variety of casino games Especially the gambler who likes to Online football betting Our website provides 4 football odds, football betting, a minimum of 10 baht , betting is easy


    ReplyDelete
  26. แทงบอล กับ i99CLUB เว็บแทงบอล ที่ตอบโจทย์ให้กับคุณได้อย่างดีเยี่ยมที่สุด เท่าที่จะเป็นไปได้แล้วก็บอกได้เลยว่าการทำเงินตรงจุดนี้ เป็นอีกหนึ่งทางเลือกที่ข้างๆ ที่จะการันตีได้อย่างชัดเจนแล้วว่า เป็นสิ่งที่ดีที่สุดและทรงประสิทธิภาพมากที่สุด เท่าที่จะเป็นไปได้และเชื่อได้เลยว่า มันจะเป็นอีกหนึ่งตัวเลือกที่พร้อมจะเปิดกว้างให้กับคุณได้ อย่างมั่นคงและทรงประสิทธิภาพมากที่สุด

    ReplyDelete