Forum Replies Created

Page 5 of 5
  • Saddam

    Member
    August 22, 2019 at 7:41 am in reply to: What are the key benefits of asynchronous processing in Salesforce?
  • Saddam

    Member
    August 19, 2019 at 1:57 pm in reply to: Is there a way to perform validation for apex:inputField?

    Hi Somendra,

    You can add something like this:
    1. Check the Empty
    <apex:page id="page">

    <script>
    function show()
    {
    var name=document.getElementById('page:f1:p1:ip1').value;
    if(name== "" || name==null)
    {
    document.getElementById("page:f1:p1:op2").innerHTML = "Please enter your name";
    }
    }
    </script>

    <apex:form id="f1">
    <apex:pageblock id="p1">
    <apex:outputlabel value="Enter u r name" id="op1" />
    <apex:inputtext id="ip1" />
    <apex:commandbutton value="submit" onclick="return show();" reRender="op2"/>
    <apex:outputlabel id="op2" />
    </apex:pageblock>
    </apex:form>

    </apex:page>

    ---> Besides salesforce has the on field validation, so u can have that option.

    2. create formula syntax
    Regression : '([a-zA-Z0-9_\-\.]+)@(((\[a-z]{1,3}\.[a-z]{1,3}\.[a-z]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3}))'

  • Hi Piyush,

    Data bindings refer to the data set in the controller.
    Action bindings refer to action methods in the controller.
    Component bindings refer to other Visualforce components

    Data bindings refer to the binding dataset to your page from the controller. Action bindings refer to the binding action methods to your page defined in the controller. Component bindings refer to the binding of other Visualforce components with your page.

  • Saddam

    Member
    August 19, 2019 at 12:42 pm in reply to: Standard and Custom Controllers

    Hi Piyush,

    The Controllers are used to control data behavior on a Visualforce Page. If you want your page to have the standard behaviors that are provided by Salesforce than you will be using Standard Controllers. Salesforce Provided standard controllers for most of the standard and custom objects.

    Extensions are not actually controller, they are used to extend the functionalities of a standard salesforce controller. These are used in conjunction with standard controllers. You can have a single controller and multiple extensions on a visualforce page.

    The custom controllers are apex classes which are used provide custom behavior to a visualforce page.

  • Saddam

    Member
    August 16, 2019 at 6:01 am in reply to: How can I look at the user license information in Salesforce Org?

    Hi Laveena

    Go to setup | Administration Setup | Company Profile | Company Information. Scroll to the bottom of the page, you will see a list of license types, the number you have available and the number you are using.

  • Saddam

    Member
    August 16, 2019 at 5:58 am in reply to: What is Fiscal year in Salesforce?

    Hi Laveena

    – Used for an organization's financial planning
    – Usually a year in length
    – Impacts forecasts, quotas, and reports

    Salesforce allows two types:

    Standard Fiscal Years are periods that follow the Gregorian calendar but can start on the first day of any
    the month of the year. (A Gregorian Year is a calendar based on a 12 Month Structure and is used throughout
    much of the world.)

    Custom Fiscal Years are for companies that break down their fiscal years, quarters and weeks into custom fiscal periods based on their financial planning requirements.
    Forecasting can NOT be used with Custom Fiscal Years
    Customizable Forecasting must be enabled for use with Custom Fiscal Years

    you can also refer this link>>> http://sfdcsrini.blogspot.com/2015/10/fiscal-year-and-its-customization-in.html

  • Saddam

    Member
    August 16, 2019 at 5:54 am in reply to: What is the Bulkification best practice in Salesforce?
  • Hi Piyush

    Trigger.NewMap means it is a map<Id, Custom_obj__c>
    In before insert context your Trigger.NewMap always be null because in before context records is not submitted to database so Id is not generated that’s why in before insert we don’t useTrigger.NewMap

    But in After insert Id is generated so We can use Trigger.NewMap

    In case of before and After update since id is already generated in Insert event.

    SO we can use Trigger.NewMap in before and After update

  • Saddam

    Member
    August 14, 2019 at 6:28 am in reply to: What is the order of operation for triggers in Salesforce?

    Hi Piyush

    When you save a record with an insert, update, or upsert statement, Salesforce performs the following events in order.

    Before Salesforce executes these events on the server, the browser runs JavaScript validation if the record contains any dependent picklist fields. The validation limits each dependent picklist field to its available values. No other validation occurs on the client side.

    1 – System Validation rule (SV) – Checks for the Required fields and field format like email should in the correct format.

    2 – All Before Triggers are executed (BT) – Before trigger will execute and do the manipulation.

    3 – Custom Validation rules are checked (CV) – In this step, Custom validation run and check for the error

    4 – Executes duplicate rules (DR) – All duplicate rule will execute for the Object if any

    5 – After Triggers are executed (AT)

    6 – Assignment Rules are executed (AR)

    7 – Auto-Response Rules are executed (ARR)

    8 – Workflow Rules are executed (WR)

    If workflow rule update any field then before and after triggers are executed one more time if the workflow rule updates a field (BT & AT)

    9 – Process Builder (PB)

    If process builder update any field then before and after triggers are executed one more time if the workflow rule updates a field (CV, BT & AT)

    Note: – Custom Validation executes when there is any update is being             made by process builder.

    10 – Escalation Rules are executed (ER)

    11 – Parent Rollup Summary Formula or Cross Object Formula fields are updated in the respective objects. (RSF, COF and These parent records also goes through the entire execution order)

    12 – Grand Parent Rollup Summary and Cross Object Formula Fields Calculation – ( GPRSF, GPCOF, and Grandparent also go through with the same process).

    13 – Criteria Based Sharing rules are evaluated (CBS)

    14 – Commits the data into Database!

    15 – Any Post-Commit Logic is executed (PCL)  (like sending an email)

    You can use the below sequence to remember the sequence of the execution and it will help to debug any problem that you will be facing

    SV -> BT -> CV -> DR -> AT -> AR -> ARR -> WR (BT, AT) -> PB(CV, BT, AT)  -> ER -> RSFCOF ->  GP RSFCOF  -> -> CBS -> PCL

  • Hi Hariom

    Setter method : This will take the value from the visualforce page and stores to the Apex variable name.
    getter method : This method will return a value to a visualforce page whenever a name variable is called.

    Visualforce is a markup language that allows you to describe the user interface components that live on your Force.com .Visualforce is the component-based user interface framework for the Force.com platform. The framework includes a tag-based markup language; similar to HTML.Visualforce is used for building various attractive and dynamic applications.Visualforce lives on the server. So any code you write will be generated and run on the server.

     

  • Saddam

    Member
    August 13, 2019 at 6:13 am in reply to: Is it possible to schedule a Dynamic Dashboard in Salesforce?

    Hi Achintya,

    no we cannot schedule a dynamic dashboard. That is because whenever we open the dashboard, it will show the data generated in real-time.

  • There are various reasons why you should use Apex over declarative automation options:

    -Workflow rules and Process Builder operations sometimes have feature limitations that can be overcome with Apex. For example, pulling information from an external system.
    -When dealing with certain or large sets of data, Apex can be more efficient than declarative options due to less limitations.

  • Saddam

    Member
    August 9, 2019 at 6:11 am in reply to: How to Add Javascript Remoting to VF page in Salesforce?

    Hi Achintya

    You can't use apex method directly in javaScript, first of all, you will have to annotate your method with @RemoteAction

    after that, you call the apex method

    ex:

    Visualforce.remoting.Manager.invokeAction(
    '{!$RemoteAction.NameofApexClass.NameOfApexMethod}',

    you can pass parameters,

    callback function,

    )

  • Saddam

    Member
    August 9, 2019 at 6:01 am in reply to: How to Invoke Batch Class in Salesforce?

    1) Go to Setup --> Open Developer Console.
    2) Select "Debug" tab --> Open Execute Anonymous Window
    3) In this window, type Database.executeBatch(new NameofBatchClass());

  • Saddam

    Member
    August 9, 2019 at 5:51 am in reply to: What is Web-to-Lead in Salesforce?

    Salesforce web to lead is to directly collect capture the leads form your website and loaded into Salesforce. This is built in functionality in Salesforce.

    There are many ways to capture leads into your account, Web to lead is one of the popular way in capturing a leads is from website.

    1) Goto Setup -->Customize -->Lead --> Web-to-Lead
    2) Check whether Web-to-Lead is enabled for your organisation
    3) Click Create Web-to-Lead form, in the next window select the list of fields do you need to collect from your customers
    4) Click Generate button, it will generate the HTML code, just use that HTML code in your website

Page 5 of 5