Friday, May 26, 2017

Identify Tools to Build Your App

What is true about the Apex programming language?

  • It’s designed to work with custom objects you create declaratively
  • It’s the easiest way to build and customize your Salesforce application
  • Anyone can use it in GE, PE, PXE, and UE orgs
  • It’s just a replacement for Java or C#

What is a use case for the SOAP API?

  • Keeping your data integration squeaky clean
  • Embed a page from an external system into the UI
  • Connecting to an external database using OData
  • Moving data between Salesforce and an external app

How does Chatter foster collaboration?

  • By social interaction through groups, feeds, and record following
  • By enabling your customers to message you from their org
  • By creating a group video-chat environment for real-time collaboration
  • Through public chat forums only

You’re building a supply requisition ISVforce app for companies that want to manage complex projects. For each vendor being considered for a given component, a Lead record is created. Once the supplier submits a bid, the Lead is moved to an Opportunity. After talking to your customers, you know they will want the vendors to see the status of their own bids. What type of Community should be created for vendors and for what reason?

  • Customer Community, because it restricts the data that vendors can access
  • Partner Community, because vendors must view Opportunity objects
  • Customer Community, because approval processes must be able to specify vendors
  • Partner Community, because vendors must use Chatter

What is the fastest way to provide your Salesforce customers a mobile-ready version of the app you’ve built for Sales Cloud?

  • Build a mobile app on the Heroku platform using Heroku Connect
  • Optimize your pages for mobile and use the Salesforce1 mobile app
  • Create custom objects for Leads and Opportunities, then use custom code to develop the app
  • Create native device apps using the Salesforce Mobile SDK

Thursday, May 18, 2017

Refresh : If break in inner loop , will it break entire loop?

Sometimes it good to have refreshment.

for(Integer i=0; i<20 ;i++){

    for(Integer j = 0;j<10;j++){
           system.debug('@@@ j ='+j + 'i ='+i);
            system.debug('@@@ FIVE');

Will it break entire loop if inner loop contains break?

As we can see, inner loop will have break at five, but outer loop still continue

Sunday, May 14, 2017

Spring ‘17 Platform Developer I Release Exam

I just passed my first Maintenance Exam.Actually, I doubt to take it today but as I went through the Release Note, I just asking myself... why not just take it now.I could not hold the stress anymore, it should been thrown somewhere.Luckily it was not hard as I thought.As long you reviewing the release note, you should be okay.=)

Here some questions that I remember to capture.I have the answer but I won't display here =).You can try to answer it in Comment below.

Question 1 : Which three types of content can shortcut be created for using Favorites.Choose 3 answers.
B.Chatter Groups
C.Global Actions
D.Record  home pages
E.Custom tabs

Question 2:Which two options are available to display detailed information about the status of an Apex Job?Choose two answers.
A.Submitted Date
B.Heap Size
C.Submitted by user
D.Elapsed time

Question 3:Which feature enables creating,updating and deleting records in other Salesforce org?
A.Database.WriteableObject interface
B.Apex Trigger for Writeable External Objects
C.Lightning to Lightning Connector
D.Salesforce Connect Cross-Org Adapter

Question 4:Which three actions can be taken from the Global Actions Menu?Choose 3 answers.
A.Launch a custom Visual force page
B.Launch a custom Lightning Component
C.Post to a Chatter Feed
D.Execute Anonymous blocks of Apex code
E.Launch a custom Canvas App

Question 5:Which component type will display the details of the parent Account from a custom Lightning record page for the Contact object?
A.Parent object component
B.Filter list component
C.Hierarchy component
D.Related Record component

Question 6:Custom Lightning Record Pages can be assigned to which three items?Choose 3 answers.
A.Public Group
D.Record Types

Question 7:A Platform Developer wants to reference an image included in the Salesforce Lightning Design System from a Visualforce page.
Which two references should be included in the page markup?Choose 2 answers.

Friday, May 05, 2017

Javascript in Salesforce Formula Custom Field

Starting with the Spring ‘17 release*, we will begin a three-phase effort to eliminate the use of JavaScript in hyperlink formula fields.Read more...
With this implementation, we will no longer to use javascript in hyperlink custom field formula and will retrieve this error :
Error: Incorrect argument value for function operator '"xxxx"'. Javascript is not allowed.
But still for certain condition , we still need to implement javascript.In order to achieve this, we can call Visualforce page or html page(static resource) and execute javascript inside the page itself.

Example : I want a link that can open two window .Previously it can be achieve by using hyperlink below:

HYPERLINK("'tel:+6xxxxxxxxx');''); window.close();", IMAGE("/servlet/servlet.FileDownload?file=01526000000GsNh","Click To Call") , '_blank')

But now the above code no longer work.The workaround for this is to create a new Visualforce page that contains javascript like below :

<apex:page standardController="Lead" showHeader="false" standardStylesheets="false" sidebar="false">
window.onload = function () {
    window.onload = function () {"tel:+6xxxxxxxxx");"");

In custom field we just point to our Visualforce page.

HYPERLINK("/apex/my_vf?Id=" & Id, IMAGE("/servlet/servlet.FileDownload?file=01526000000GsNh", "Click To call"))

The concept also work by using html page that store in Static Resource, but I personally think Visualforce page might be useful especially we can use standard controller which enable us to use object fields.