Skip to main content

Posts

Salesforce Visualforce Apex - Getter and Setter methods – How to use them

Getter and setter methods are used to pass data from your visualforce page to your controller and vice versa. Get accessor : The "get" accessor is used to pass data from your Apex code to your Visualforce page. The code in a get accessor executes when the property is read. public string getuserinput() { return userinput; } Set accessor : The "set" accessor is used to pass values from your visualforce page to the controller. The code in a set accessor executes when the property is assigned a new value. public void setuserinput(String userinput) { this.userinput=userinput; } In our example what we see is, the variable "userinput" is declared as string data type. Apex is strongly typed language and when you declare a variable you need to specify its data type. The value entered in visualforce page via inputfield : userinput , is passed to the Apex code ( setuserinput ) . The value is stored in declared variable - userinput .The value is returned back to ...

Salesforce flow validation to check if a record has file attached in files related list

Flow is part of salesforce flows which collects data via user screens from business users inside your salesforce organization or we call as ORG hereafter .  Salesforce flows comes in two flavors  a) Screen flows  b) Auto launched flows  Screen flows are used in business scenario where data is collected from users screens. Auto-launched flows runs in background which are triggered or launched automatically based on certain system conditions . That is a bit of basis check  on flows . 

Salesforce Black Tab Feature

Salesforce tabs comes in two flavors , the standard tabs and custom tabs . As like standard tabs , custom tabs show custom object data or other web content embedded in the app. The discussion of the post is not into types of tabs in salesforce but more on salesforce black tab . What is Salesforce Black Tab ? Salesforce black tab is only visible to salesforce employees to perform higher tier support duties . This tab allows support duties for salesforce end customer.  Apart from duties performed listed in Jeff douglas blog  some of the other features available to salesforce support team are via  Salesforce Black TAB :

Code coverage for salesforce low code tools : Workflow rules , Process builders and Flows

Apex code coverage indicates how many executable lines of the code in your apex classes and apex triggers have been exercised by test methods. To deploy Apex or package to Salesforce AppExchange, test class code must cover at least 75% of your Apex code, and those tests must pass. In salesforce user interface we can check the organization code coverage for APEX classes by navigating as follows  Setup ==> search ==> Apex Classes ==> Apex Classes Page TAB. 

Flow Basics - Meet Flow Builder

  With great automation comes great power All organizations have their process in place to perform a set of tasks or achieve business requirements. Few unique practices allow customer support reps in call center to create customer bank accounts and create a task to field agents to verify the customer authenticity. This task could be repetitive and could add up hundreds of human hours. If the same process could be automated, could help to save hundreds of human hours. Repetitive works is human error prone and good quality process should be in place to deliver quality of data.