Forum Replies Created

Page 2 of 7
  • Hi,

    Bound expression syntax is: {!expression}. Curly braces with “!” bang operator is used for Bound expressions.

    If you are making any change using Bound expression it will immediately reflected on your component. Bound expressions are used to reflect changes on your Lightning Component.

    Unbound expression syntax is: {#expression}. Curly braces with “#” hash operator is used for Unbound expressions.

    If you are making any change using unbound expression, it will not immediately reflect on your component. If you don’t want to reflect changes, you can use unbound expressions.

    Note : Unbound expression changes are not reflected on component but they can be seen by javascript.

    Thanks.

  • madhulika shah

    Member
    September 17, 2018 at 10:26 am in reply to: What are the drawbacks of JSON in Salesforce?

    Hi,

    If JSON not inserted, nothing happens. It just fails silently. For example, you are not able to catch a 404 error from the server, Nor can you cancel or restart the request. You can, however, timeout after waiting a reasonable amount of time.

    Another major drawback of JSON is that it can be quite dangerous if used with untrusted services or untrusted browsers, because a JSON service returns a JSON response wrapped in a function call, which will be executed by the browser if it will be used with untrusted browser it can be hacked, this makes the hosting Web Application Vulnerable to a variety of attacks.

    If you are going to use JSON services, it’s very important to be aware of the threats which JSON have in that and also be aware of the things which can protect it. JSON only have limited supported tools which we can use during JSON development.

    Thanks.

  • madhulika shah

    Member
    September 14, 2018 at 1:18 pm in reply to: Limitations of using a Savepoint in apex

    Hi Anjali,

    Limitations of using Savepoint in apex are:

    • If you set more than one savepoint, then roll back to a savepoint that is not the last savepoint you generated, the later savepoint variables become invalid. For example, if you generated savepoint SP1 first, savepoint SP2 after that, and then you rolled back to SP1, the variable SP2 would no longer be valid. You will receive a runtime error if you try to use it.
    • References to savepoints cannot cross trigger invocations because each trigger invocation is a new trigger context. If you declare a savepoint as a static variable then try to use it across trigger contexts, you will receive a run-time error.
    • Each savepoint you set counts against the governor limit for DML statements.
    • Static variables are not reverted during a rollback. If you try to run the trigger again, the static variables retain the values from the first run.
    • Each rollback counts against the governor limit for DML statements. You will receive a runtime error if you try to rollback the database additional times.
    • The ID on an sObject inserted after setting a savepoint is not cleared after a rollback. Create an sObject to insert after a rollback. Attempting to insert the sObject using the variable created before the rollback fails because the sObject variable has an ID. Updating or upserting the sObject using the same variable also fails because the sObject is not in the database and, thus, cannot be updated.
  • madhulika shah

    Member
    September 14, 2018 at 1:15 pm in reply to: why formula fields are useful

    Hi Anjali,

    You’ve got a lot of data in your organization. Your users need to access and understand this data at-a-glance without doing a bunch of calculations in their heads. Enter formula fields, the powerful tool that gives you control of how your data is displayed.

    Let’s say you wanted to take two numeric fields on a record and divide them to create a percentage. Or perhaps you want to turn a field into a clickable hyperlink for easy access to important information from a record’s page layout. Maybe you want to take two dates and calculate the number of days between them. All these things and more are possible using formula fields.

    Thanks.

  • Hi Anurag,

    A Rollup Summary field is used to calculate the sum of a fields in the child object record. It is compulsory to be in a Master-Detail relationship to use the rollup summary. A rollup summary field is always created on Master record.(Parent to Child).

    Example. You have an Account and multiple Contacts under that Account. Each of the Contact have a number field on it say Contacted People. Now on the Account you can create a Rollup summary to check the Number of Contacted People via all your contacts.

    Where else a formula field is mostly used for calculations with in a certain object. And it is child to Parent.

    Thanks.

  • Hi Anurag,

    The GET method is meant for data retrieval only and should not have any side-effects. But POST is meant for that specific purpose: altering data on the server side.

    GET requests can easily be forged (see Cross-Site Request Forgery) by just placing an image on a page while forging POST requests is not that easy (this is also a reason why you should only allow authorized POST requests).

    Thanks.

  • madhulika shah

    Member
    September 14, 2018 at 9:28 am in reply to: What is the use of 'param' in Salesforce REST API?

    Hi Anurag,

    Parameters are options you can pass with the endpoint (such as specifying the response format or the amount returned) to influence the response. There are four types of parameters: header parameters, path parameters, query string parameters, and request body parameters.

    The different types of parameters are often documented in separate groups on the same page. Not all endpoints contain each type of parameter.

    Thanks.

  • madhulika shah

    Member
    September 14, 2018 at 9:23 am in reply to: Why do we need Security Token in Salesforce?

    Hi anurag,

    Salesforce security token is a case-sensitive alphanumeric key that is used in combination with a password to access Salesforce via API. The purpose of the token is to improve the security between Salesforce users and Salesforce.com in the case of a compromised account. It ensures, among other things, that if a user’s account credentials are compromised, a third party wouldn’t be able to access Salesforce via API or from an untrusted network.

    Thanks.

  • madhulika shah

    Member
    September 13, 2018 at 1:52 pm in reply to: What are the static resources in Salesforce?

    Hi Chanchal,

    Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, style sheets, JavaScript, and other files. Using a static resource is preferable to uploading a file to the Documents tab because:

    • You can package a collection of related files into a directory hierarchy and upload that hierarchy as a .zip or .jar archive.
    • You can reference a static resource by name in page markup by using the $Resource global variable instead of hard coding document IDs.
  • Hi Prachi,

    There are two buttons available in dataloader ‘Export’ & ‘Export All’. Difference in both button functionality is very small. When we use ‘Export’ button for any object in salesforce, all records( excluding records present in Recycle Bin) present in the system for that particular object are exported to a .csv file. But when we use Export All, all records (including records present in Recycle Bin) for that particular object are exported to a .csv file. Deleted records present in recycle bin are also called ‘soft Deleted’ records.

    Thanks.

  • madhulika shah

    Member
    September 13, 2018 at 1:43 pm in reply to: How to ensure FLS while working with Lightning Component?

    Hi Prachi,

    FLS and CRUD are not automatically enforced in the lightning component whenever any object is referenced in the Apex Controller and the component will display the fields and records for which the users do not have access. Therefore we should manually enforce the FLS and CRUD in the Apex Controller, or we should try to use Lightning Data service wherever possible because it takes care of FLS and CRUD for us.

    Thanks.

  • madhulika shah

    Member
    September 13, 2018 at 1:41 pm in reply to: When do you use a before vs. after trigger?

    Hi Avnish,

    BEFORE triggers are usually used when validation needs to take place before accepting the change. They run before any change is made to the database whereas AFTER triggers are usually used when information needs to be updated in a separate table due to a change. They run after changes have been made to the database .

    thanks.

  • Hi Anjali,

    <apex:selectOption> tag is used with both radio buttons and picklists to create the selectable values.

    Thanks.

  • madhulika shah

    Member
    September 13, 2018 at 1:31 pm in reply to: Difference between using Datatable vs. Pageblocktable tags?

    Hi Anurag,

    PageBlockTable:
    PageBlockTable should be defined inside pageblock or pageblocksection.
    PageBlockTable uses standard styles sheets to design a visualpage.
    It has the  required attribute "value".
    Column headers  will be displayed automatically.

    DataTable:
    No need to write inside pageblock or pageblocksection.
    There is no required value.
    The  data can be displayed using  custom style sheets.

    we need to specify column headers explicitly.

    Thanks.

  • madhulika shah

    Member
    September 13, 2018 at 1:27 pm in reply to: Accessing Visualforce Components values into a Javascript

    Hi Anurag,

    Just add an ID to your apex:inputField and then access it in javascript using:

    var abc= document.getElementById("input_abc");

    You can then access your value using:

    abc.value

    Hope this helps.

  • Hi Anjali,

    Worflow rule is not a field type in salesforce. Workflow rule is the process automation tool that automate your business flow .
    Formula field: it is a field type on salesforce that produce a read only ouptut. Sometimes u want some calculated value in a field lest say i want my total sell in day in one field then i can create one formula field on my object and i will write a formula that will calculate total sell .
    The field included in formula field is called it's source.

    Now there is a similarity between workflow and formula field.:
    Whenever there is a change in the source field of formula field it automatically re-calculate its field value according to updated value in the source field.
    In same fashion workflow can also do the field update.

    one more thing formula field can't use the workflow but inside a workflow we use formula field.
    there are only one criteria to update the value of formula field but for workflow u can define different kind of criteria.

    Thanks.

  • madhulika shah

    Member
    September 12, 2018 at 6:26 am in reply to: When should an extension be used instead of a custom controller?

    Hi Anjali,

    A custom controller is an Apex class that implements all of the logic for a page without leveraging a standard controller. Use custom controllers when you want your Visualforce page to run entirely in system mode, which does not enforce the permissions and field-level security of the current user.
    A controller extension is an Apex class that extends the functionality of a standard or custom controller. Use controller extensions when:

    • You want to leverage the built-in functionality of a standard controller but override one or more actions, such as edit, view, save, or delete.
    • You want to add new actions.
    • You want to build a Visualforce page that respects user permissions. Although a controller extension class executes in system mode, if a controller extension extends a standard controller, the logic from the standard controller does not execute in system mode. Instead, it executes in user mode, in which permissions, field-level security, and sharing rules of the current user apply
  • Hi Prachi,

    Leads are something which are generated through a campaign.
    Once you convert the lead, the lead record is no longer accessible via the UI. So to access any of the personal contact information that was captured on lead records, sales team use the contact record.

    Thanks.

  • Hi Prachi,

    Matrix reports are similar to summary reports but allow you to group and summarize data by both rows and columns. They can be used as the source report for dashboard components. Use this type for comparing related totals, especially if you have large amounts of data to summarize and you need to compare values in several different fields, or you want to look at data by date and by product, person, or geography. Matrix reports without at least one row and one column grouping show as summary reports on the report run page whereas joined reports let you create different views of data from multiple report types. In a joined report, data is organized in blocks. Each block acts like a “sub-report,” with its own fields, columns, sorting, and filtering. You can add a chart to a joined report. For example, in the following sample, the joined report pulls data from two report types related to the Positions object. Together, the report shows applications received from job ads posted for each position.

    thanks.

  • madhulika shah

    Member
    September 12, 2018 at 6:06 am in reply to: Limit of aggregate query in salesforce.

    Hi Prachi,

    I think that the issue here is that an aggregate query is considered to have accessed every record included in the aggregation. Thus the 50000 row limit isn't the number of records returned by the query, its the number of records 'touched'. As you have a clause of 'LIMIT 50000', you are asking for a maximum of 50000 aggregates to be returned by the query and if any of these "touches" more than one record, you will exceed the limit.

    Thanks.

  • madhulika shah

    Member
    September 11, 2018 at 1:49 pm in reply to: Is there a limit for data.com records?

    Hi Anjali,

    From Setup, in the Quick Find box, enter Users and then select Prospector Users. In the Data.com Users section, find your name and see what your monthly limit is and how many records you’ve already added or exported during the month. Your administrator sets the monthly allowance, which expires at the end of each month, regardless of whether you’ve met your limit.

    If you’re a Data.com List User, your name also appears in the Data.com List User section of the page. After you’ve used your monthly record additions, you’ll share record additions from a pool with all other List Users in your organization. Your organization’s pool has a limit, so if one Data.com List User reaches the limit, other Data.com List Users can’t add records. List pools expire one year after purchase.

    If adding a set of records causes you to exceed your addition limit, you’ll see a message that tells you how many additions you have remaining. If you still need to add more records, contact your administrator.

    Thanks.

  • Hi Anjali,

    List Custom Settings:  A type of custom setting that provides a reusable set of static data that can be accessed across your organization. If you use a particular set of data frequently within your application, putting that data in a list custom setting streamlines access to it. Data in list settings does not vary with profile or user, but is available organization-wide. Examples of list data include two-letter state abbreviations, international dialing prefixes, and catalog numbers for products. Because the data is cached, access is low-cost and efficient: you don't have to use SOQL queries that count against your governor limits.

    Hierarchy Custom Settings:  A type of custom setting that uses a built-in hierarchical logic that lets you “personalize” settings for specific profiles or users. The hierarchy logic checks the organization, profile, and user settings for the current user and returns the most specific, or “lowest,” value. In the hierarchy, settings for an organization are overridden by profile settings, which, in turn, are overridden by user settings.

    Thanks.

  • madhulika shah

    Member
    September 11, 2018 at 1:45 pm in reply to: What is Macros in Salesforce Case Automation?

    Hi Anjali,

    A macro is a set of instructions that complete a task that a support agent can otherwise do manually. For example, an agent can change status of a case by going into the console, opening the case, navigating to the case status field, selecting a status, and clicking save. Or the agent can run a macro that performs those steps.

    Support agents use macros to automate common repetitive tasks so that they can spend more time working with customers and solving customer issues. Macros speed up agent productivity by increasing consistency when communicating with customers and streamlining agent workflows. For example, suppose a customer emails an agent with a question about the company’s return policy. The agent can reply to the customer email within the case by running a macro that inserts quick text containing the return policy into the email reply. The agent doesn’t worry about forgetting an important detail, such as returns are only accepted within 45 days of purchase, because the macro inserts the right quick text.

    Thanks.

  • Hi Anjali,

    You can use the same report in multiple dashboard components on a single dashboard (e.g., use the same report in both a bar chart and pie chart). Multiple dashboard components can be shown together on a single dashboard page layout, creating a powerful visual display and a way to consume multiple reports that often have a common theme, like sales performance, customer support, etc.

    Thanks.

  • madhulika shah

    Member
    September 11, 2018 at 1:40 pm in reply to: What is “Data Skew” in Salesforce?

    Hi,

    Certain Salesforce objects, such as accounts and opportunities, have special data relationships that maintain parent and child record access under private sharing models. If too many child records are associated with same parent object in one of these relationships, this imbalance causes something called “data skew,” which in turn causes performance problems.

    Thanks.

Page 2 of 7