Forum Replies Created

  • Mallika

    Member
    July 21, 2020 at 6:22 am in reply to: What is a method for adding content to Salesforce CRM content?

    Hi Ratnesh,
    We can add content in 2 ways.

    <b id="ext-gen26">Chatter filesYou can upload a file and store it privately until you're ready to share it. Share the file with coworkers and groups to collaborate and get feedback. Attach files to posts in a Chatter feed on the Home tab, Chatter tab, a profile, a record, or a group. Users with access to Salesforce Files Sync can access, sync, and share files in their Salesforce Files Sync folder.
    Documents:Store Web resources, such as, logos, DOT files, and other Visualforce materials in folders without attaching them to records.
    <ul id="ext-gen22"><li id="ext-gen21">Documents is the original way to store files in Salesforce. Many of the original features of Salesforce (email templates, application logos, etc.) will only reference files in the documents tab. No sharing mechanism, but files can be exposed for public consumption. Allows for replacement of a document, but no version control. Access is controlled by folders.

    • This reply was modified 4 years, 4 months ago by  Mallika.
    • This reply was modified 4 years, 4 months ago by  Mallika.
  • Mallika

    Member
    July 21, 2020 at 6:11 am in reply to: How to insert password in apex test class of Salesforce?

    Hi Aditya,
    Try this code. Hope it helps!

    @isTest
    public class SampleTest
    {
    	public static testMethod void LoginFail()
    	{
    		Sample  tp=new Sample ();
    		tp.loginPage();
    	}
    	public static testMethod void loginPass()
    	{
    		Account acc = new Account();
    		acc.Name ='mecrin';
    		acc.sic = '12345';
    		insert acc;
    		
    		Sample  tp=new Sample ();
    		tp.userName ='mecrin';
    		tp.password  ='12345';
    		
    		tp.loginPage();
    	}
    }
  • Mallika

    Member
    July 21, 2020 at 6:09 am in reply to: How to integrate a youtube search engine in a Visualforce page?

    Hi Shweta,
    By creating Apex Controller, we can integrate Youtube search engine in VF page.
    Try using the code mentioned in the below link.
    https://developer.salesforce.com/forums/?id=906F0000000AVJGIA4
    I hope this helps!

  • Mallika

    Member
    July 21, 2020 at 6:03 am in reply to: How can we conditionally display content in lightning component?

    Hi Pooja,
    By using <aura:if> we can display content conditionally.
    simple example that shows an error message when an error occurs.

    <aura:if isTrue="{!v.isError}">
        <div>{!v.errorMessage}</div>
    </aura:if>
  • Mallika

    Member
    July 21, 2020 at 5:59 am in reply to: How can we display loading spinner in lightning component?

    Hi Pooja,
    lightning:spinner displays an animated spinner image to indicate that a request is loading.
    Here is the explanation and example code for creating loading spinner in Lightning component.
    https://www.sfdcpoint.com/salesforce/loading-spinner-in-lightning-component/
    Hope this helps!

Popular Salesforce Blogs