Forum Replies Created

Page 8 of 20
  • Aditya

    Member
    July 23, 2020 at 4:27 pm in reply to: What is the Lightning message service in Salesforce?

    Lightning Message Service is the first Salesforce technology designed to enable communication between Visualforce and Lightning Components anywhere on a Lightning Page.

    1. Navigate to Setup –> Data –> Data Loader.
    2. Download the data loader.
    3. Install it following the wizard.
    4. Make sure JAVA is installed in your machine by running "java -version" command on your Command Prompt Window.
  • Aditya

    Member
    July 22, 2020 at 2:31 pm in reply to: How can we add custom exception in apex class ?

    To create your custom exception class, extend the built-in Exception class and make sure your class name ends with the word Exception , such as “MyException” or “PurchaseException”. All exception classes extend the system-defined base class Exception , and therefore, inherits all common Exception methods.

  • throw new MissingFieldValueException('Problem occurred');
    throw (MissingFieldValueException, 'Problem occurred');

  • Aditya

    Member
    July 22, 2020 at 2:26 pm in reply to: Which exception type Cannot be caught in Salesforce?

    <div>Hi,</div>Exceptions that Can't be Caught<wbr><wbr> One such exception is the limit exception ( System. LimitException ) that the runtime throws if a governor limit has been exceeded, such as when the maximum number of SOQL queries issued has been exceeded.

  • Aditya

    Member
    July 20, 2020 at 4:06 pm in reply to: How do I create a contents document in Salesforce?

    Hi,
    ContentVersion ContVerFile = new ContentVersion();
    ContVerFile.VersionData = Blob.valueOf('string');
    ContVerFile.Title = 'title';
    ContVerFile.ContentLocation= 's';
    ContVerFile.PathOnClient='title.csv';
    insert ContVerFile;

  • Aditya

    Member
    July 20, 2020 at 4:04 pm in reply to: What are use cases of Platform Event in Salesforce ?

    Hi,
    Use platform events in the following cases: To send and receive custom event data with a predefined schema. To publish or subscribe to events in Apex. For the flexibility of publishing and processing events on and off the Salesforce platform.

  • Aditya

    Member
    July 20, 2020 at 4:00 pm in reply to: What is virtual class in Salesforce?

    Hi,
    The global access modifier declares that this class is known by all Apex code everywhere. ... The virtual definition modifier declares that this class allows extension and overrides. You cannot override a method with the override keyword unless the class has been defined as virtual .

  • Aditya

    Member
    July 17, 2020 at 3:55 pm in reply to: How to insert ContentDocumentLink in Salesforce?

    ContentVersion cVersion = new ContentVersion();
    cVersion.ContentLocation = 'S'; //S-Document is in Salesforce. E-Document is outside of Salesforce. L-Document is on a Social Netork.
    cVersion.PathOnClient = attach.Name;//File name with extention
    cVersion.Origin = 'H';//C-Content Origin. H-Chatter Origin.
    cVersion.OwnerId = attach.OwnerId;//Owner of the file
    cVersion.Title = attach.Name;//Name of the file
    cVersion.VersionData = attach.Body;//File content
    Insert cVersion;

    //After saved the Content Verison, get the ContentDocumentId
    Id conDocument = [SELECT ContentDocumentId FROM ContentVersion WHERE Id =:cVersion.Id].ContentDocumentId;

    //Insert ContentDocumentLink
    ContentDocumentLink cDocLink = new ContentDocumentLink();
    cDocLink.ContentDocumentId = conDocument;//Add ContentDocumentId
    cDocLink.LinkedEntityId = attach.ParentId;//Add attachment parentId
    cDocLink.ShareType = 'I';//V - Viewer permission. C - Collaborator permission. I - Inferred permission.
    cDocLink.Visibility = 'InternalUsers';//AllUsers, InternalUsers, SharedUsers
    Insert cDocLink;

  • Aditya

    Member
    July 17, 2020 at 2:34 pm in reply to: How can I connect twitter with Salesforce?

    Hi,
    View an account, contact, or lead record.
    Sign in to Twitter. In Salesforce Classic, find Twitter under the record's name. In Lightning Experience, find it on the record's News tab. ...
    To link it with the record, select a profile or search again using different search keywords.

  • Aditya

    Member
    July 16, 2020 at 3:16 pm in reply to: What is attribute tag for application event in Salesforce?

    Hi,
    evt resource. Events can contain attributes that can be set before the event is fired and read when the event is handled. Use type="APPLICATION" in the <aura:event> tag for an application event. For example, this c:appEvent application event has one attribute with a name of message .

  • Aditya

    Member
    July 16, 2020 at 3:15 pm in reply to: What is Partner Community in Salesforce?

    The Salesforce Partner Community is a portal built and maintained specifically for Salesforce partners. It's where these partners manage their business, learn best practices, get support, and engage with Salesforce employees in a secure environment.

  • Aditya

    Member
    July 16, 2020 at 3:13 pm in reply to: How many types of App can we build on AppExchange in Salesforce?

    Hi,
    There is 250+ apps

  • Aditya

    Member
    July 15, 2020 at 9:45 am in reply to: What are the features of the Salesforce Marketing Cloud?

    Messaging for every step of the customer journey.
    Drag-and-drop segmentation.
    1:1 content personalization.
    CRM and cross-channel integration.
    Comprehensive, real-time tracking and reporting.
    Pre-built templates and themes.
    Deliverability tools.
    Email Marketing.

  • Aditya

    Member
    July 15, 2020 at 9:44 am in reply to: How can we provide field level security in Salesforce ?

    Hi,
    From the management settings for the field's object, go to the fields area.
    Select the field you want to modify.
    Click View Field Accessibility.
    Specify the field's access level.

  • Hi,
    Subscriber's number and Subscriber's percenatge

  • Aditya

    Member
    July 15, 2020 at 9:39 am in reply to: How Security Token is Sent to User in Salesforce ?

    Hi,
    A user's security token is related to their password and used together to access Salesforce. There are two ways the security token may be entered, depending on the application: The token is appended to the end of your password without any spaces. The token is entered in a separate field from the password.

  • Add the force:lightningQuickAction or force:lightningQuickActionWithoutHeader interface to a Lightning component to enable it to be used as a custom action in Lightning Experience or the Salesforce mobile app.

  • Aditya

    Member
    July 10, 2020 at 4:42 pm in reply to: How Salesforce detect duplicates?

    Hi,
    A Matching Rule Compares Records and Detects Duplicates.
    A Duplicate Rule or Job Handles Duplicates.
    Sets and Reports List Duplicates Found.

  • Aditya

    Member
    July 10, 2020 at 4:41 pm in reply to: What is duplicate record set in Salesforce?

    Hi,
    A duplicate record set is a list of items identified as duplicates. It's created when a duplicate rule or job runs. Let your Lightning Experience users merge duplicates by granting them access to duplicate record set

  • Aditya

    Member
    July 10, 2020 at 4:37 pm in reply to: Can a trigger make a call to Apex callout method in Salesforce?

    Hi,
    Yes, trigger can make call to apex callOut method

  • Aditya

    Member
    July 9, 2020 at 3:55 pm in reply to: How can I remove ',' from the end of string or name of fields?

    UPDATE someTable SET someColumn = REPLACE(someColumn, 'Potato', '')
    WHERE someColumn LIKE '%Potato'

  • Aditya

    Member
    July 9, 2020 at 3:54 pm in reply to: How can I get value in MAP from JSON in Apex?

    Hi,
    Map<String, Object> m = (Map<String, Object>) JSON.deserializeUntyped(jsonInput);
    Map<String, Object> m2 = (Map<String, Object>) m.get('info5');
    List<decimal> d = new List<decimal>();
    for(String s:m2.keyset()) {
    decimal t = (decimal) m2.get(s);
    d.add(t);
    }

  • Aditya

    Member
    July 9, 2020 at 3:52 pm in reply to: What is nested Wrapper Class in Salesforce ?

    Hi,
    We know that a location in apex can store only data of one type and when you have data from multiple types then you wont be club them together without a self defined container called as wrapper class. A nested wrapper class that is a wrapper consisting of another class variables.

  • Aditya

    Member
    July 9, 2020 at 3:51 pm in reply to: How are CRUD and FLS Enforced in Force.com apps?

    Hi,
    When rendering VisualForce pages, the platform will automatically enforce CRUD and FLS when the developer references SObjects and SObject fields directly in the VisualForce page. ... Additionally, all apex:inputField tags will be rendered as read-only elements for fields that are set to read-only through FLS.

Page 8 of 20