Posts

Showing posts from April, 2017
Image
Winter 17 Platform Developer 1 Maintenance
Image
Salesforce Optimizer - Spring 17 New Feature Salesforce introduced the new feature in Spring'17 -  Salesforce Optimizer . This is really a nice tool which will evaluate your implementation in terms of the Salesforce features you are using and then identifies the ways to improve the implementation. We all know that continuous improvement is very important, but in reality driving that continuous improvement sometimes becomes a challenging task. In my Salesforce experience, I faced the below problems when it comes to improvement - I know I need to do improvement, but where is the time? Where to start from? I really need trustworthy tools and guidance to help me driving the improvement I need to convince business in terms of the importance of improvement. I don't want to go to bed every day with the worry that I may be missing something which might break my implementation tomorrow. That's quite a lot!!  But now with Salesforce Optimizer, I have the a...
External Id plays very important role if you want to update records without knowing the record Ids or want to relate the child record with parent record without knowing the parent record Id. As a best practice, you should always make External Id unique. If you are performing upsert with External Id, then following situations will occur: If no record is found in table with provided External Id, then it will create record in table. If 1 record is found in table with provided External Id, then it will update record in table. If more than 1 records is found in table with provided External Id, then system will throw an error. I am going to cover 2 different aspect of using external Id in apex. Updating a record with External Id Create a External Id field on Account as Account_Unique_Number__c and mark it as External Id and unique while creating it.Now we will create a new record using upsert. Execute below command in developer console List<Account> acclist=new list...
Running a scheduled job every 1 minute and 15 miutes. 1) 1 Minute logic: i) ClassName cls = New ClassName();             String myDateTime = String.Valueof(datetime.now().addseconds(10));             String[] strs =myDateTime.split('-',5);               String[] strs2=strs[2].split(':',5);             String[] strs3=strs2[0].split(' ',3);             String schdul= strs2[2]+' '+strs2[1]+' '+strs3[1]+' '+strs3[0]+' '+strs[1]+' '+'?';                           system.schedule('jobid',cls,wfbatch); ii)           ClassName cls = New ClassName();             Datetime dt = DateTime.now();             Integer nextMinute = dt.minute() + 1;     ...
Salesforce Certified Platform App Builder - Transition Exam (WI16) 1 of 20. Users would like to be able to enter multiple paragraphs of notes on a custom object. Which field type will allow them to do so? Choose 2 answers Ans: Text Area (Rich) Text Area (Long) 2 of 20. Universal Containers introduces a custom object called Service, which has a lookup to Account. Field operators need to 20. enter Service using th Salesforcel mobile app. Operators create new Service records when viewing Accounts, so the Account name needs to automatically display the current Account. How can this be accomplished? A. Create an action in the Account object and add it to the Service page layout. B. Create an action in the Service object and add it to the Account page layout. C. Create an action in the Account object and add it to the Account page layout. D. Create an action in the Service object and add it to the Service page layout. C 3 of 20. When changing a field...