Forum Replies Created

Page 2 of 12
  • Hi Deepak,

    Content Document: It Represents a document that has been uploaded to a library in Salesforce CRM Content or Salesforce Files. The maximum number of documents that can be published is 30,000,000. This object record you don’t have to create. It gets created when you create ContentVersion which is the child of ContentDocument.

    Content Version: Represents a specific version of a document in Salesforce CRM Content or Salesforce Files. In other words, this object stores document information similar like Attachment.

    Now have a look on the relationship between these two objects below-

    ContentDocumentLink: This object will share the files with Users, Records, Groups etc. You can create multiple records to attach the same files under multiple records.

  • Hi Prachi,

    Content Document: It Represents a document that has been uploaded to a library in Salesforce CRM Content or Salesforce Files. The maximum number of documents that can be published is 30,000,000. This object record you don’t have to create. It gets created when you create ContentVersion which is the child of ContentDocument.

    Content Version: Represents a specific version of a document in Salesforce CRM Content or Salesforce Files. In other words, this object stores document information similar like Attachment.

    Now have a look on the relationship between these two objects below-

    Now ContentDocumentLink: This object will share the files with Users, Records, Groups etc. You can create multiple records to attach the same files under multiple records.

     

  • Nikita

    Member
    November 22, 2019 at 8:03 am in reply to: How to convert a comma separated string into a list in Salesforce?

    Hi Yogesh,

    Salesforce provides String class which can be used to work with string. You can use the Split method

    For Example

    String alpha = 'A, B, C, D';
    
    List<String> lstAlpha = alpha.split(',');
    
    System.debug(lstAlpha);

     

  • Hi Yogesh,

    You can remove a CSS style on a component or element during runtime.
    To retrieve the class name on a component, use component.find('myCmp').get('v.class'), where myCmp is the aura:idattribute value.

    To remove CSS classes from a component or element, use the $ $A.util.removeClass(cmpTarget, 'class') methods.

  • Hi Piyush,

    deserializeUntype is used to Deserializes the specified JSON string into collections of primitive data types. To use map inside a map in the json deserializeUntype in salesforce without using class, you can refer https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_System_Json.htm#apex_System_Json_deserializeUntyped

  • Nikita

    Member
    November 22, 2019 at 6:48 am in reply to: In which salesforce.com edition API's are not available?

    Hi Piyush,

    Editions with no API Access are following

    • Professional Edition
    • Essential Edition
  • Hi,

    This simply says the data storage allocated for your organization has been exceeded. You have to delete records and free up some space or purchase additional space. You can see your available data storage by navigating into Setup > System Overview. And you can monitor your usage by navigating into Setup > Administration Setup > Data Management > Storage Usage

    If you can confirm some records to be deleted, Mass delete record feature will helpful for you. You can find it at Data Management > Mass Delete Records under Administration Setup (You should have required permission). There maybe lots of Task and Event records hopefully where you no need. You can delete them and free up some storage.

  • Nikita

    Member
    November 21, 2019 at 2:36 pm in reply to: What is autorabit in Salesforce?

    Hi,

    AutoRABIT is an end-to-end release management suite specifically aimed at streamlining the development and release of Salesforce.com applications by automating their continuous integration (CI) and continuous delivery (CD) processes. AutoRABIT provides a suite of products for DevOps teams, incorporating a number of tools and processes used by the team to configure and release on the Salesforce platform.

  • Nikita

    Member
    November 20, 2019 at 2:11 pm in reply to: Which tool should you use to achieve this in Salesforce?

    Hi,

    • Big Deal Alerts
    • Workflow - Create a workflow to send an email if an Opportunity amount is great than 1,000,000
  • Nikita

    Member
    November 20, 2019 at 12:04 pm in reply to: What is content document in salesforce?

    Hi,

    Content Document Represents a document that has been uploaded to a library in Salesforce CRM Content or Salesforce Files.This object is available in API versions 17.0 and later for Salesforce CRM Content. This object is available in API version 21.0 and later for Salesforce Files.

    Supported Calls
    delete(), describeLayout()describeSObjects(), query(), retrieve(), search(), undelete(), update()

    you may refer tohttps://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contentdocument.htm

  • Nikita

    Member
    November 20, 2019 at 7:13 am in reply to: How to call a child component"s method from its parent in Salesforce?

    Hi Yogesh,

    Use <aura:method> to define a method as part of a component's API. This enables you to directly call a method in a component’s client-side controller instead of firing and handling a component event. Using <aura:method> simplifies the code needed for a parent component to call a method on a child component that it contains.

    For Example

    Get Message from Child Component to parent Component.

    Step 1) Create Child component with Aura:Method.

    ChildCmp.cmp

    <!--ChildCmp.cmp-->
    <aura:component >
        <aura:method name="GetMessageFromChildMethod" action="{!c.getMessage}" 
                     access="public">
            <aura:attribute name="Name" type="String" default="Amit"/>
        </aura:method>
    </aura:component>

    Step 2) Create Child Class Controller to Get argument "event.getParam('arguments');" and return the message.

    ChildCmpController.js

    ({
        getMessage : function(component, event) {
            var params = event.getParam('arguments');
            if (params) {
                var param1 = params.Name;
                return "##### Hello "+param1+" From Child Component #####";
            }
            return "";
        }
    })

    Step 3) Create a parent Component and a button to call Aura method.

    ParentCmp.cmp

    <!--ParentCmp.cmp-->
    <aura:component >
        <aura:attribute name="message" type="String" 
                        default="------ Hello From Parent -----"/>
        <c:ChildCmp aura:id="childComponent"/>
       
        <div class="slds-m-around_xx-large">
            <lightning:button variant="brand" label="Call Aura Method" 
                              onclick="{!c.callAuraMethod}" />
            <BR></BR> <BR></BR>
            <p>{!v.message}</p>
        </div>
    </aura:component>

    Step 4) Create Parent Component Controller to Call Aura Method "childCmp.GetMessageFromChildMethod('Amit');".

    ParentCmpController.js

    ({
         callAuraMethod : function(component, event, helper) {
                var childCmp = component.find("childComponent");
                var retnMsg = childCmp.GetMessageFromChildMethod('Amit');
                component.set("v.message", retnMsg);
         }
    })

    DemoApp.app

    <aura:application extends="force:slds">
        <c:ParentCmp/>   
    </aura:application>

     

     

  • If you are performing an upsert, your CSV file must contain a column of ID values for matching against existing records.

  • Hi,

    You have to manually go into each layout and remove the related list. It'll be annoying and tiring, but it's the only way to be done short of some fancy custom code/metadata manipulation which might take as long to develop and be more risky.

  • Nikita

    Member
    November 18, 2019 at 3:45 pm in reply to: What is web to lead in salesforce?

    Hi Deepak,

    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.

  • Nikita

    Member
    November 15, 2019 at 4:45 pm in reply to: How to Edit Email template in Salesforce classic?

    Hi,

    Editing options vary depending on the template type.

    • For text templates, click Edit to change the message content, subject, or merge fields.
    • For custom and HTML templates:
      • Change the content or merge fields of the HTML version by clicking Edit HTML Version
      • Change the content or merge fields of the text-only version by clicking Edit Text Version
    • For Visualforce templates:
      • Change the markup of the template page by clicking Edit Template.
      • The Visualforce Attachments related list indicates which attachments are being generated through Visualforce markup.
      • If the Visualforce markup references components in installed managed packages, the Version Settings related list shows the package versions of the installed packages containing the components. Some kinds of components in installed managed packages can include another class, a trigger, or a custom object.
      • If the email template includes encrypted data, remember that the data is displayed as encrypted within the generated email and in the Visualforce template page. For security reasons, it isn’t displayed in plain text.
  • Nikita

    Member
    November 14, 2019 at 4:28 pm in reply to: Is there any limit for sending mail from a developer org in salesforce?

    Hi,

    In Developer Edition organizations and organizations evaluating Salesforce during a trial period... your organization can send single emails to a maximum of 15 email addresses per day.

  • Nikita

    Member
    November 14, 2019 at 4:16 pm in reply to: To whom can a lightning for Outlook be assigned to in salesforce? 

    Hi Laveena,

    A lightning for Outlook can be assigned to Team and user in salesforce.

  • Nikita

    Member
    November 13, 2019 at 5:26 pm in reply to: Which objects support business processes in salesforce?

    Hi Piyush,

    The business process metadata type enables you to display different picklist values for users based on their profiles. This type extends the Metadata metadata type and inherits its fullName field.
    Multiple business processes allow you to track separate sales, support, and lead lifecycles. A sales, support, lead, or solution process is assigned to a record type. The record type determines the user profiles that are associated with the business process.

    You must create the business process before creating record types for each of the following objects-

    • Lead
    • Opportunity
    • Case
    • Solution
  • Nikita

    Member
    November 13, 2019 at 5:15 pm in reply to: How to upload a pdf using lightning web component in salesforce?

    Hi Piyush,

    A lightning-file-upload component provides an easy and integrated way for users to upload multiple files. The file uploader includes drag-and-drop functionality and filtering by file types.

    This component inherits styling from file selector in the Lightning Design System.

    File uploads are always associated to a record, so the record-id attribute is required. Uploaded files are available in Files Home under the Owned by Me filter and on the record's Attachments related list on the record detail page. Although all file formats that are supported by Salesforce are allowed, you can restrict the file formats using the accept attribute.

    This example creates a file uploader that allows multiple PDF and PNG files to be uploaded. Change the record-id value to your own.

    <template>
        <lightning-file-upload
                label="Attach receipt"
                name="fileUploader"
                accept={acceptedFormats}
                record-id={myRecordId}
                onuploadfinished={handleUploadFinished}
                multiple>
        </lightning-file-upload>
    </template>

    You must handle the uploadfinished event, which is fired when the upload is finished.

    import { LightningElement, api } from 'lwc';
    export default class MyComponentName extends LightningElement {
        @api
        myRecordId;
    
        get acceptedFormats() {
            return ['.pdf', '.png'];
        }
    
        handleUploadFinished(event) {
            // Get the list of uploaded files
            const uploadedFiles = event.detail.files;
            alert("No. of files uploaded : " + uploadedFiles.length);
        }
    }

    for more details, you can refer https://developer.salesforce.com/docs/component-library/bundle/lightning-file-upload/documentation

  • Nikita

    Member
    November 13, 2019 at 5:06 pm in reply to: How to check whether a contact is community user or not in Salesforce?

    Hi Deepak,

    You can query for all the contact which are community user as folllowing

    List<Contact> lContacts = [SELECT Id FROM Contact];
    List<User> lUsers = [SELECT Id,Contact.Id,Name,Email FROM User WHERE Profile.Name = 'Customer Commmunity User' AND ContactId IN :lCont];

     

  • Nikita

    Member
    November 13, 2019 at 4:50 pm in reply to: How can I send an attachment with an email template in Salesforce?

    Hi Laveena,

    Attach a file to a Salesforce email template

    In Salesforce Classic

    • Go to Setup.
    • Under Administer, click on Communication Templates | Classic Email Templates.
    • Click on the name of the email template that you would like to attach a file to.
    • Click the Attach File button.
    • Complete the three steps and click the Done button.

    In Lightning Experience

    • Go to any object that has Email publisher available.
    • Go to the Email tab.
    • Select the Email template that you wish to add an attachment to by clicking on the Insert, create or update Template button.
    • Select Insert Template.
    • Click the Attach file button and select the file you wish to attach to the template.
    • If you would like to save this template with the attachment for future use, click Insert, create or update Template and select Save Template.
  • Hi ,

    Lookup record will return only first matching record. If you want to get all matching record, you should use Fast Lookup. In the fast lookup it will show all the record with given prefix.

  • Nikita

    Member
    November 13, 2019 at 8:57 am in reply to: How to create lookup field in Salesforce flow?

    Hi Somendra,

    There is no direct way to create a lookup field inflow but we can use workaround mentioned in the link given below:

    You can refer to this link for your query https://www.jitendrazaa.com/blog/salesforce/creating-lookup-field-in-flow/

     

  • Hi Yogesh,

    There are three steps to add Aura components to a Visualforce page.

    1. Add the Lightning Components for Visualforce JavaScript library to your Visualforce page using the <apex:includeLightning/> component.
    2. Create and reference a Lightning app that declares your component dependencies.
    3. Write a JavaScript function that creates the component on the page using $Lightning.createComponent().
  • Nikita

    Member
    November 12, 2019 at 3:43 pm in reply to: What is writeback and merge field in DocuSign Salesforce app?

    Hi Deepak,

    If information needs to be pulled from Salesforce and put into a DocuSign Envelope, Merge fields can be used to pull from Salesforce fields directly. Writeback can be used to push information back to Salesforce fields.

Page 2 of 12