Forum Replies Created

Viewing 20 posts - 1 through 20 (of 84 total)
  • #44373
    Forcetalks

    Hi,

    Add a Summary Formula Column in Lightning Experience:

    • Edit or create a report.
    • If necessary, group report data. From the Groups section, select a field from the Add group… lookup menu under GROUP ROWS.
    • From the Columns section, click   | Add Summary Formula Column.
    • Optionally, to open the full editor, click Switch to Full Editor.
    • Enter a summary formula. For example: IF(AMOUNT:SUM < 1000000, AMOUNT:SUM * (1 – 0.15), AMOUNT:SUM * (1 – 0.20))
    • To see if your formula contains errors, click Check Syntax. Resolve any errors.
    • Optionally, click FORMAT to choose how to format results, how many decimals points to show, and to change
    • where the formula gets applied.
    • Click Apply.
    • Click Save.
    VIEW CONVERSATION
    #43808
    Forcetalks

    Hi,
    Based on your formula field {! } it will execute the corresponding extension. If both the extension having same method name then it will execute the first extension. Below is the example

    If both extensions having the same method, whichever methods are defined in the “leftmost” extension, or, the extension that is first in the comma-separated list will execute first.

    VIEW CONVERSATION
    #43806
    Forcetalks

    Hi,

    No, We cannot reference both attributes at a time.

    See below syntax to understand

    <apex:page standardController=”ControllerName” extensions=”Class1, Class2,..”> Correct

    <apex:page Controller=”MYControllerName” extensions=”Class1, Class2,..”>   Correct syntax

    <apex:page standardController=”MYControllerName” Controller=”MyController”>  Wrong

    VIEW CONVERSATION
    #43578
    Forcetalks

    Hi,

    Assignment rules are usually triggered through the user interface when creating or editing a record; this can make it difficult to get the assignment rules to trigger for already existing records, or records imported or updated through the API. Using the Data Loader, you can access settings to get an assignment rule to trigger when performing an insert, update or upsert.

    VIEW CONVERSATION
    #43577
    Forcetalks

    Hi Anjali,

    Lead assignment rules allow us to automatically assign Leads to the appropriate queue or user. A Lead assignment rule consists of multiple rule entries that define the conditions and order for assigning cases. From a Salesforce User interface, a user can trigger assignment rules by simply checking the Assign using active assignment rules checkbox under the optional section. The problem arises when you need to insert or update the Leads from Process Builder and wants to trigger assignment rules. Using the Process Builder, a Lead will be inserted or updated but assignment rule will not be triggered as there is no check box to use the organization’s assignment rule or a prompt to assign using the active assignment rule.

    VIEW CONVERSATION
    #42899
    Forcetalks

    Hi Prachi,

    To find out if a particular user has Edit access to a record, use the UserRecordAccess object. This object is available in API version 24.0 and later. You can use SOQL to query this object to find out if the user has edit access to the record in question.
    SELECT RecordId, HasEditAccess FROM UserRecordAccess WHERE UserId = [single ID] AND RecordId = [single ID]

    If you want to check a batch of records you can use
    SELECT RecordId FROM UserRecordAccess WHERE UserId=:UserInfo.getUserId()
    AND HasReadAccess = true ANDRecordId IN :allRecordIds LIMIT 200
    But make sure that allRecordIds is a LIST of IDs. It doesn’t work if allRecordIds is a SET of IDs. I guess that’s a bug.
    Also, only a maximum amount of 200 recordIds can be checked in one query.

    VIEW CONVERSATION
    #35310
    Forcetalks

    Hi,

    SOSL statement evaluate to a list of sobjects , where each list contains the search results for a particular sobject type, The result lists are always returned in the same order as they were specified in the query.
    If a SOSL query does not return any records for a specified sObject type , the search results include an empty list for that sObject.

    for example, you can return a list of accounts, contacts, opportunities and leds that begin with the phase map.

    List < list < subject >> search list = [ find ‘map*’ In ALL FIELDS RETURNING Account (ID, Name), contact, opportunity, lead ];
    Note : The syntax of the classon Apex differs from the syntax of the FIND clause in the SOAP API.
    In Apex, the value of the FIND cause is demarcated with single quotes.

    Example:

    FIND ‘map*’ IN ALL FIELDS RETURNING account (Id, Name], Contact, Opportunity, Lead.
    In the Force.com API, the value of the FIND Clause is demarcated with braces.

    VIEW CONVERSATION
    #35308
    Forcetalks

    Hi,

    Use javascript remoting in visualforce to call methods in apex controllers from javascript.
    Javascript remoting has 3 parts.
    1. The remote method invocation you add to the visualforce page, written in javascript.
    2. The remote method definition in your Apex controller class.
    3. This method definition is written in apex, but there are  few differences from normal action methods.
    4. The response handles callback function you add to or include in your vf page, written in javascript.

    VIEW CONVERSATION
    #35306
    Forcetalks

    Hi,

    A web directory where hundreds of appexchange apps  are  available to salesforce customers to review, demo, comment upon, and /or install. Developers can submit their apps for listing on the appexchange directory if they want to share them with the community.

    VIEW CONVERSATION
    #35066
    Forcetalks

    Hi,

    Inspite of Eclipse, there are other terrific third-party tools with add-ins that support Lightning components, such as SublimeText and Visual Studio Code.

    VIEW CONVERSATION
    #35045
    Forcetalks

    Hi,

    Visual flow can be summed up as an app inside the Salesforce app. Analogically, what methods are to object oriented programming, visual flow is to Salesforce. To be more precise, a Flow is a wizard or a set of screens in sequential order which can be used to complete a business process. This business process can be anything like filling out a form, or working on a script, or even filling out a survey. The Flow has the ability to fetch, edit, and create all Salesforce information in an appealing, quick and smart manner.

    VIEW CONVERSATION
    #35030
    Forcetalks

    Hi,

    When you access the external site you need to add that in the remotesite settings, this is one kind of security level that force.com platfom is going to check.

    VIEW CONVERSATION
    #34735
    Forcetalks

    Hi,

    Sometimes during the processing of records, your business rules require that partial work (already executed DML statements) be “rolled back” so that the processing can continue in another direction. Apex gives you the ability to generate a savepoint, that is, a point in the request that specifies the state of the database at that time. Any DML statement that occurs after the savepoint can be discarded, and the database can be restored to the same condition it was in at the time you generated the savepoint.

    VIEW CONVERSATION
    #34733
    Forcetalks

    Here’s the use case of formula fields:

    • Let’s take an example of Account Object, which has 3 record types say (Group, Branch, Vendor) so If the Account RecordType is “Group”
    • Picklist value of Account “Status” is set to “Closed”
    • And Value in field ReasontoClose__c is Blank, the validation rule should fire.

    AND(
    ISBLANK(  ReasontoClose__c),

    ISPICKVAL( Status, “Closed”),

    RecordType.Name=” Group ”

    )

    VIEW CONVERSATION
    #33841
    Forcetalks

    Hi,

    Opportunity relates to Opportunity Product, Opportunity Product relates to a Pricebook Entry, Pricebook Entry then relates to Product.

    VIEW CONVERSATION
    #33794
    Forcetalks

    Hi,

    There are two special clauses in the “abstract equality comparison algorithm” in the JavaScript spec devoted to the case of one operand being null and the other being undefined, and the result is true for == and false for !=. Thus if the value of the variable is undefined, it’s not != null, and if it’s not null, it’s obviously not != null.

    VIEW CONVERSATION
    #33793
    Forcetalks

    hi,

    For instance, the use of Leads AND Contacts in Salesforce allows you to maintain a superior level of data quality and organization in your Salesforce database.  In many cases, an organization exclusively using contacts is converting all leads that come into their instance of Salesforce immediately into an existing account or creating a new account should one not already exist for that organization.

    VIEW CONVERSATION
    #33792
    Forcetalks

    hi,

    The maximum response size when creating a PDF must be below 15 MB, before being rendered as a PDF. This is the standard limit for all Visualforce requests.
    The maximum file size for a generated PDF is 60 MB.
    The total size of all images included in a generated PDF is 30 MB.

    VIEW CONVERSATION
    #33791
    Forcetalks

    Hello Anurag,

    A static variable defined in a trigger doesn’t retain its value between different trigger contexts within the same transaction, such as between before insert and after insert invocations. Instead, define the static variables in a class so that the trigger can access these class member variables and check their static values.

    VIEW CONVERSATION
    #33640
    Forcetalks

    hello

    To create an Apex sharing reason:

    1. From the management settings for the custom object, click New in the Apex Sharing Reasons related list.
    2. Enter a label for the Apex sharing reason. The label displays in the Reason column when viewing the sharing for a record in the user interface. The label is also enabled for translation through the Translation Workbench.
    3. Enter a name for the Apex sharing reason. The name is used when referencing the reason in the API and Apex. This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.
    4. Click Save.
    VIEW CONVERSATION
Viewing 20 posts - 1 through 20 (of 84 total)