Year: 2016

How to generate Debug Logs for Guest Users || Changes done in Winter’17 Release

Recently while working on public sites, I have noticed that debug logs are not getting generated for guest users in the same way it was used to work earlier. Debug log is always handy while working in Salesforce. It will help you to debug the problems, help you to understand the flow etc. So while debug log was not getting generated, it became so difficult for me to debug the issues. After few hours of searching in Google, I have realized that in Winter’17 release, Salesforce changed the way of debug log generation for Guest Users. By “Guest User” I wanted to mean users having Guest User License. The reason behind the change is – Public sites are getting used by many users(Guest Users). So setting up a debug log for Guest sUer may generate multiple debug logs which will quickly fill up the debug log.  After Winter’17 release, Salesforce made some changes and due to that debug logs will be generated only for those targeted users. But what will differentiate those target users from the all other users using that public sites? Good questions. Answer to the question is that debug log will only be generated for those Guest users using the browser which has a special cookie.  Really is it “Cookie”? Yes, now cookie will decide whether the debug log will be generated or not.  Ok, the next...

Read More

Salesforce Platform Developer – I Certification Tips

I have cleared another Salesforce Certification yesterday – It’s Platform Developer – I. In this post, I am going to share my study notes. Hopefully it will help others as well.If you are an experienced developer or admin having more than 6 months of experience, it is very easy to clear this certification. But if you are new to Salesforce, then I think this study note is going to help you. I found 50% – 60% questions are scenario based.During the exam, I am sure you will get multiple questions which will make you confuse in terms of more than one correct answers. My suggestion is that read the question/scenario 2-3 times, there will be one/two words which will lead to the correct answer. If you still not able to find the correct answer, mark the question for review and go to the next question. Don’t spend too much time in one question.Note – Don’t treat this as a Certification dumps. Rather the intention of the post is to share my strategy, topics I covered during my preparation.Another important point to mention here is that when I gave this certification the release from Salesforce was Winter’17. With every release, Salesforce brings new features so you need to go through the release notes as well.Let’s start by topics mentioned in the Certification Syllabus. Salesforce Fundamentals [Weighting: 10% i.e. # of Questions: 6]Describe...

Read More

All about Git – “Git Stash” Part – II

In this post, I am going to discuss on a very powerful command “git stash”. It is a very powerful command and that is why I want to dedicate a single blogpost discussing only about this important command.WHAT IS GIT STASH:This command will temporarily shelve the changes you’ve made to your working copy so that you can work o something else, and then come back and re-apply those changes at later point in time.HOW TO STASH YOUR WORK:The command git stash takes the uncommitted changes (both staged and unstaged) and saves them away for later use, thus reverting them from your working copy.For example, I have two files “test.txt” and “NewOne.txt”. Out of these two files, “test.txt” is staged and ready to be committed whereas the file “NewOne.txt” is yet to be staged.So if I issue the command git status, below is the result -Now if I issue the command git stash, let’s see what happens -So if I open the file, I will notice that all my changes to these two files are gone. But where? How can I get those changes back? So many questions!! 🙂 I will come into each of these questions slowly.One important point to tell here is that stash is local to your Git repository; stashes are not transferred to the server when you push.HOW TO RE-APPLY THE STASHED CHANGES:One can re-apply the stashed...

Read More

All about Git – Cheat Sheet – Basic Part – I

WHAT IS GIT?In today’s world, the most widely used modern version control system is Git. Git is a mature, actively maintained open source project originally developed in 2005 by Linus Torvalds, the famous creator of the Linux operating system kernel.SETTING UP A REPOSITORY:Git uses the below command to create a new Git repository.git initExecuting this command will create a .git subdirectory in the project root and transforms the current folder into a git repository.The below command will create a new folder named directory and initialize the repository by creating .git subdirectorygit init BARE REPOSITORY:The below command will create the bare repository.git init –bare The –bare flag will create a repository which is having no active working directory. This is very important. You should always consider creating your central directory as a bare directory and from there create all your branches (non-bare directory) where the developers will work. Once the work is done, developers will merge their code from branches (non-bare directory) to central repository(bare directory). Since the central repository is bare directory and does not have any active working directory, there is no chance of editing the files and committing them.CLONING AN EXISTING REPOSITORY:The git clone command copies an existing Git Repository. Cloning always creates a remote connection called origin pointing back to the original repository. This makes it very easy to work with the central repository.The below command will...

Read More

How to choose between Trigger and Lightning Process Builder

With the introduction of Lightning Process Builder, we can do many things which were kind of limitations of Workflows. Salesforce introduces Lightning Process Builder as successor of Workflow rules, thus allowing more config options through click and reducing amount of apex customization required. Process Builder supports all the features from Workflows with the exception of sending outbound message without apex code. I will not be surprised if Salesforce decides to decommission Workflow in near future.Previously there were few scenarios (listed below) which were not possible through workflow and we need to write Apex trigger to achieve those. Here are few of them -If we need to perform complex validationBefore/After logic for record insert/update/delete/undelete operation.Update/insert any objects or related records.Problem with workflow is we can’t update child records with workflow. Workflow supports only updation of parent record. So earlier we need to go for Trigger. But with the introduction of Process Builder, now we can update child records as well. Below is one case study -Case Study:It’s a library management system – Universal Library. Library is having many books. If the book is not available, user will send the request for the book. The moment book is available, all the request status will change from ‘Hold’ to ‘Ready to Pickup’. To achieve this below is the object model -Here Book and Book Request are connected through Master-Detail relationship. Previously to...

Read More

How to choose correct Process Automation tool || Process Builder vs. Visual Workflow vs. Workflow vs. Approval Process

With process automation, we now have multiple solutions available which we can use to implement the requirements. The solutions that we have are -Lightning Process BuilderVisual WorkflowWorkflowApprovalsWith so many options, it brings responsibilities as well to the developer to decide which tool to use. In this post, I will try to provide a comparative study on which tool is best based on some situations. But at the end, it is upto you as a developer to decide and select the best tool available. I hope this post will help you to take the decision.Let’s start with the easy one -Approval Process ::As the same suggests, whenever you need to take approval actions, you need to go for Approval process. This is an automated solution which will work based on the record creation or record value change. Below are few important points about approval process -Complexity of Approval process is very simple. It can support only one if/then statement.It doesn’t support time-based approval process i.e. trigger the approval after 24 hours or something like that. It is a complete real-time solution.Approval process can’t call Apex code or delete any records.But Approval process can create only Tasks (nothing else).Approval Process can update the same record or it’s parent.Workflow :;Workflow is the automation tool which should be used when you need to take action based record creation or record’s value change. Below are few important points...

Read More

Earlier Posts

  • 2024 (17)
  • 2023 (47)
  • 2022 (25)
  • 2021 (35)
  • 2020 (41)
  • 2019 (13)
  • 2018 (16)
  • 2017 (14)
  • 2016 (18)
  • 2015 (74)
  • 2014 (20)