Forum Replies Created

Page 3 of 6
  • Anjali

    Member
    September 11, 2018 at 12:59 pm in reply to: Use Lightning Components in Visualforce Pages in salesforce.

    Hi Shradha,

    To add Lightning Components to VisualForce Page proceed with the following steps-

    1.Create a lightning,named "XYZ" component either through developer console or through your IDE

    2.Post creation of lightning component, create a style class for the same component

    3.Now use this Lightning component in a Lightning app. For this, we recommend you to create a new Lightning app, named “XYZapp” and use the lightning component in this app.

    4.Create a VisualForce page that will display this lightning component.

    5.VisualForce page should provide the interface where the lightning component that we are going to use in the page can be viewed.

    Once the page is created and previewed, the Lightning component will appear in your VisualForce page.

  • Anjali

    Member
    September 10, 2018 at 1:33 pm in reply to: What are the different AJAX action tags in Salesforce?

    Hi Madhulika,

    Different AJAX Action tags are:

    1.ActionFunction-It helps to call controller method from JavaScript using AJAX request.

    2.ActionPoller-This component is used to set the timer in Visualforce. Based on time interval applied in the ActionPoller, an Asynchronous request will send to server.We must specify the interval, rerender id (component in the  page to be reloaded),and action(controller method to be invoked) as attribute in ActionPollar.

    3.ActionSupport-It adds AJAX support to another visualforce component and then call the controller method.

    4.ActionRegion-This tag is used for a particular field or component which we don’t want to refresh or send to server on postback call.

    5.ActionStatus:It is used to display start and stop statuses of AJAX requests.

  • Anjali

    Member
    September 10, 2018 at 1:19 pm in reply to: What is salesforce1 and what is its use?

    Hi Madhulika,

    Salesforce1 is a platform that enables application development and data exchange through application programming interfaces (APIs) and prebuilt programming code components.

    Salesforce1 are a mobile-firstapproach to application development, where applications are developed for the Web first and desktops second, and an open architecture that enables the Salesforce platform to work relatively easily with third-party apps.

    With Lightning, admins can create applications quickly and easily without having to code from scratch, because many items can draw on prebuilt Lightning Components. Salesforce1 also enables developers to use alternatives to Force.com, including the Heroku platform, through capabilities like Salesforce1 Heroku Connect, which make it easier to build customer-facing apps. Force.com has traditionally been used for creating internal employee-facing apps built on the Salesforce platform.

  • Anjali

    Member
    September 7, 2018 at 1:39 pm in reply to: What is Approval Process?

    Hi Prachi,

    Approval process in Salesforce is an automotive process which approves records for salesforce. As the process is automotive it works on certain criteria. The approval process may include rejection, recalled or first time submission of approval.This automated process is handled using steps defined by the developer. It may be single step approval or for more secure it can be multi-steps approval.

    Common steps for approval in salesforce are:

    Setup -> Create -> Workflow and Approval -> Approval Process
    Select object for approval process to be written
    Click on Create New Approval Process
    Select Standard Setup Wizard from drop down
    Enter the Process name, Unique Name and description for your process
    Specify Entry criteria

  • Anjali

    Member
    September 7, 2018 at 1:34 pm in reply to: Define managed sharing in APEX?

    Hi Prachi,

    As we know, we have different ways of sharing a record in Salesforce. One of the ways is Apex Managed Sharing which is a bit adavanced compared to others and has to be builit programmatically through Apex or Soap API.

    Apex managed sharing provides developers with the ability to support an application’s particular sharing requirements programmatically through Apex or the SOAP API. This type of sharing is similar to Force.com managed sharing. Only users with “Modify All Data” permission can add or change Apex managed sharing on a record. Apex managed sharing is maintained across record owner changes.

    Basically, if you want to share a record programmatically we use Apex Managed Sharing.
    For example, AccountShare is the sharing object for the Account object, ContactShare is the sharing object for the Contact object, and so on. In addition, all custom object sharing objects are named as follows, where MyCustomObject is the name of the custom object:
    MyCustomObject__Share

  • Anjali

    Member
    September 7, 2018 at 1:29 pm in reply to: What is Cross Filter in Salesforce?

    Hi Madhulika,

    Use a cross filter to find just the records you need in a report. Cross filters let you fine-tune your results by including or excluding records from related objects, without having to write formulas or code.

  • Hi Madhulika,
    Follow the CamelCase Java conventions, except for VF pages and components start with a lower case letter.

    Triggers:  <ObjectName>Trigger - The trigger itself. One per object.
    <ObjectName>TriggerHandler - Class that handles all functionality of the trigger
    <ObjectName>TriggerTest

    Controllers:    <ClassName>Controller
    <ClassName>ControllerExt
    <ClassName>ControllerTest
    <ClassName>ControllerExtTest

    Classes:  <ClassName>
    <ClassName>Test (These might be Util classes or Service classes or something else).

    Visualforce pages and components:  <ControllerClassName>[optionalDescription] (without the suffix Controller). There might be multiple views so could also have an extra description suffix.

    Object Names and custom Fields:  Upper_Case_With_Underscores

    Variables/properties/methods in Apex:  camelCaseLikeJava - more easily differentiated from fields

    Test methods in test classes:  test<methodOrFunctionalityUnderTest><ShortTestCaseDesc> - For example, testSaveOpportunityRequiredFieldsMissing, testSaveOpportunityRequiredFieldsPresent, etc.

    Working on something that would be used as an app or  a project, then do the following:

    Prefix all custom objects, apex classes, Visualforce pages and components with an abbreviation so that they are easier to identify (e.g., easier for changesets). For example the WidgetFactory app would have the prefix wf on those. Additionally, when adding custom fields to a standard object they would also be prefixed to identify them as part of the app/package.

  • Anjali

    Member
    September 6, 2018 at 5:21 am in reply to: Can Boolean value be Null or not in Salesforce?

    Hi Shradha,

    Boolean must be constructed with a boolean or a String. If the object is unintialized, it would point to null.The default value of primitive boolean is false.

  • Anjali

    Member
    September 5, 2018 at 1:46 pm in reply to: what is the use of setStorable() in Salesforce?

    Hi Prachi,

    A storable action is a server action whose response is stored in the client cache so that subsequent requests for the same server method with the same set of arguments can be accessed from that cache.Server action is an Apex method that you invoke remotely from your Lightning Component.

    To make an action storable, you simply call its setStorable() function.

    For example:

    var action = component.get("c.getListOfItem");
        action.setStorable();
        action.setCallback(this, function(response) {
        // handle response
    };
    $A.enqueueAction(action);

    When an action is marked as storable, the framework automatically returns the response from the client cache (if available) so that the data is immediately available to the component for display or processing. The framework might then call the server method in the background, and if the response is different, invoke the action callback function a second time.

    Hope it may help you.

  • Anjali

    Member
    September 5, 2018 at 5:43 am in reply to: Explain use of Junction Object in Salesforce.

    Hello Madhulika,

    Junction objects are used to create many to many relationships between objects. If you take the Recruiting application example, you can see that a Position can be linked to many Candidates, and a Candidate can apply for different Positions. To create this data model you need a third object "Job Application" that links the two.So you'd create a lookup field for both Position and Candidate object on the "Job Application" object. This will establish many to many relationship between Position and Candidate via the "Job Application" object known as the junction object.

    Creating the many-to-many relationship consists of:
    Creating the junction object.
    Creating the two master-detail relationships.
    Customizing the related lists on the page layouts of the two master objects.
    Customizing reports to maximize the effectiveness of the many-to-many relationship.
    Creating the Junction Object

    To create the junction object:
    From Setup, click Create | Objects.
    Click New Custom Object.

    In the custom object wizard, consider these tips specifically for junction objects:
    Name the object with a label that indicates its purpose, such as BugCaseAssociation.
    For the Record Name field, it is recommended that you use the auto-number data type.
    Do not launch the custom tab wizard before clicking Save. Junction objects do not need a tab.

  • Anjali

    Member
    September 4, 2018 at 11:10 am in reply to: What is AMPscript in Salesforce?

    Hi Madhulika

    AMPscript is a scripting language that you can embed within HTML emails, text emails, landing pages, SMS messages, and push notifications from MobilePush. The system processes the script at the point where you include it in the message to render content on a subscriber-by-subscriber basis. The Marketing Cloud application handles all AMPscript calls at the end of the email send.

    AMPscript can also interact with your data extensions. Use AMPscript to include information from your data extensions in your messages and to update data extensions with information from your landing pages.

    Use AMPscript to process information and include information from your data extensions in the body of your messages and landing pages to provide advanced personalization for the subscribers.

  • Anjali

    Member
    September 4, 2018 at 11:04 am in reply to: Action poller in visualforce

    Hi Shradha,

    Action poller acts as a timer in visualforce page. It is used to send an AJAX request to the server depending on the time interval (time interval has to be specified or else it defaults to 60 seconds).

    In the action attribute a controller method gets called. The method gets called with a frequency defined by the interval attribute which has to be greater than 5 seconds.

  • Anjali

    Member
    September 4, 2018 at 5:35 am in reply to: Why do we need Account Hierarchy in Salesforce?

    Hi Anurag,

    Account hierarchy allow you to create a self parent/child relationship between account records. On an account you can define a parent account, which will display just like any other child record on a related list if you have it on the parent account page.

    This can be used to model departmental or divisional accounts. Where Company A is the parent account and Department A, Department B and Department C are related to the parent company, and the same with divisions, subsidiaries or any other segmentation you might find in business.

    It really becomes useful in B2B companies that deal with very large organizations, that deal with smaller segmentations within that larger company and want to track deals/contacts/opportunities etc. within those smaller segmentations as well as the whole company.

  • Anjali

    Member
    September 3, 2018 at 1:45 pm in reply to: How can I reduce my usage of API calls?

    Hi Chanchal,

    For reducing the number of API calls you can do following things:

    • Optimize your code to eliminate any unnecessary API calls
    • Cache frequently used data
    • Cache data that is not changed often
    • Use webhooks in order to track changes
    • Consider batching multiple requests into a single request

     

  • Anjali

    Member
    September 3, 2018 at 1:34 pm in reply to: How many records can a sosl query return ?

    Hi Avnish,

    Salesforce searches across up to a maximum of 50k records per partition and can collect up to a maximum of 10k records per entity per partition of SOSL query. After searching all partitions, the maximum results that can be returned per entity is 2,000.

  • Hi Shradha,

    In  category such as Workflow ,Apex Code or user generated statement, use the level to specify the amount of information to be recorded in the debug log. The combination of category and level specify which events get logged. Changes to the filter only apply to future logged events.

    Log level provide amount of information of user generated debug statement to be recorded in debug log and after the validation changes to filter applied.

  • Hi Avnish,

    You can not avoid duplicates using apex data loader which we can do through import wizard

  • Hi Avnish,

    Condition we need to specify in process builder to specify schedule action are-

    1.Only when record is created

    2. When record is created or edited and while define criteria select the checkbox for following setting- "Do you want to execute the actions only when specified changes are made to the record?"

  • Anjali

    Member
    August 30, 2018 at 1:28 pm in reply to: What user permission is required to create edit and view process?

    Hi Avnish,

    User permission required to create edit and view process are “Manage Force.com Flow” AND “View All Data” in profile.

     

  • Anjali

    Member
    August 30, 2018 at 1:16 pm in reply to: What are the Limitations of the workflow?

    Hi Avnish,

    Limitations on the workflow:

    1. For each workflow rule, you can have the following:
      10 time triggers
      40 immediate actions
      40 time-dependent actions per time trigger
    2. For both immediate and time-dependent actions in one workflow rule,
      there can be no more than:

      10 email alerts
      10 tasks
      10 field updates
      10 outbound messages

    3. The workflow time trigger per hour limit for different editions are as follows:
      Professional Edition: 250
      Enterprise Edition: 500
      Developer Edition: 50
      Unlimited and Professional Edition: 1,000
    4. The workflow time trigger per hour limit for different editions are as follows:
      Professional Edition: 250
      Enterprise Edition: 500
      Developer Edition: 50
      Unlimited and Professional Edition: 1,000
    5. The workflow e-mail limit per day is as follows:

      1,000 per Salesforce standard license
      200,000 per organization

  • Anjali

    Member
    August 30, 2018 at 1:06 pm in reply to: Explain Render and Rerender in Salesforce Lightning.

    Render in lightning:To override the base render()function after component initialization,You need to call superRender()function.It returns value (DOM or NULL).Anything needs to be changed during default rendering.

    render : function(component, helper) {
    var ret = this.superRender();
    // custom rendering logic here
    return ret;
    }

    Rerender in lightning:This is triggered due to anything change to the components.Need to call superRerender()function.Generally, it does not return a value.It is triggered if anything is changed to the components just like button disable after clicked the button to show some results.

    rerender : function(component, helper){
    this.superRerender();
    // custom rerendering logic here
    }

  • Anjali

    Member
    August 29, 2018 at 7:03 am in reply to: Unable to convert Lead that is in use by workflow

    Hi Parul,

    'Unable to convert lead that is in use by workflow.'This error will appear if any of the following conditions are met:

    1.  There is a time-based workflow action pending that is related to the Lead. Or, there is a Process Builder with a time-based action pending that is related to the Lead.
    2. The Lead that you are trying to convert is currently in an Approval Process.
    3.  This error can also be seen post-conversion, if a workflow gets triggered and one of its field update actions changes a field that is referenced in a validation rule.
  • Anjali

    Member
    August 29, 2018 at 6:49 am in reply to: What tool can I use to extract Field Level Security information

    To extract Field Level Security information for all Profiles and Permission Sets you can use any of the metadata API tools (like Workbench) for that.

  • Anjali

    Member
    August 29, 2018 at 6:10 am in reply to: Transient Keyword in #Salesforce

    Hi Parul,

    Use the transient keyword to declare instance variables that can't be saved, and shouldn't be transmitted as part of the view state for a Visualforce page.

    For example: Transient Integer currentTotal;

    You can also use the transient keyword in Apex classes that are serializable, namely in controllers, controller extensions, or classes that implement the Batchable or Schedulable interface. In addition, you can use transient in classes that define the types of fields declared in the serializable classes.

     

  • Hi Prachi,

    In Salesforce, whenever a user creates any component or record then Salesforce will generate a unique id with which user can identify the record or component.

    After creating the record, in the URL user can see the id of the record which is of 15 digits in length. Through user interface user always see 15 digit ids which are Case-Sensitive.

    If the user queries the existing records from the database through API, it will always return 18 digit ids which are Case-Insensitive.

    Last 3 digits of the 18 digit represent checksum of the capitalization of 15 digit id. Based on the first 3 digits user can identify the object of the record.

    All the record belongs to the same object will contain same first 3 digits.

Page 3 of 6