Forum Replies Created

Page 4 of 4
  • public class TestPersonAccount {
    public static Boolean personAccountsEnabled()
    {
    try
    {

    sObject testObject = new Account();
    testObject.get( 'isPersonAccount' );
    System.debug('Account Enabled');
    return true;
    }
    catch( Exception ex )
    {
    System.debug('Account Disable');
    return false;
    }
    }

    }

    Please try above code, hope it would be helpful!!

    Thanks!!

  • Hello Rahul,

    Could you please explore some more, what you actually want either to send mail with attachments or something different.

    Please explore it clearly

    Thanks!!

  • Archit

    Member
    January 11, 2018 at 3:05 am in reply to: How database methods different from DML statements in Salesforce?

    Hello Ankit,

    In Apex you can perform dml operation in two different ways:

    • DML statements
    • Database class methods

    For partial successful results you have a choice to opt database methods because through these, if any operation get halted due to any errors in between it can perform action on rest other records leaving behind those who has an errors. While in DML, it can either perform complete operation (if no errors) or if there is any error comes in between it halts a running operation and also rolled back the other records at where the operation has already performed.

    Hope this answer would be helpful!!

  • Archit

    Member
    January 11, 2018 at 3:04 am in reply to: What are setup objects in Salesforce?

    Hello Shariq,

    For setup objects

    • These objects only works for metadata, a very common example is User object. We use setup objects to interact with metadata for declarative development.
    • Represents a data service that adds and updates data in existing records in an org.

    Hope this answer would be helpful!!

  • Archit

    Member
    January 10, 2018 at 10:27 am in reply to: How to delete duplicate records in Salesforce?

    Hello Ankit,

    If you consider duplicate's in terms of name or any particular field of any object might be the below code would be helpful to get your answer. I tried below code to remove duplicate name records of Accounts object.

    List<Account> fullList = [Select Id, name From Account limit 200];
    Set<String> orderObj = new Set<String>(); 
    List<Account> dupList = new List<Account>();
    
    for(Account a : fullList)
    {
     if(orderObj.contains(a.name))
     {
     dupList.add(a);
     }
     else
     {
     orderObj.add(a.name);
     }
    }
    
    delete dupList;
    

    Hope the answer would be helpful!!

  • Archit

    Member
    January 10, 2018 at 3:33 am in reply to: What is record type in Salesforce?

    Record Type represents the metadata associated with any record type. It basically make the page layouts available with respect to their record types.

    Let's say, while creating a record in Account I want to display some field to only official users but not to any individual ones then record type would be the solution of it. Please have a look in below image that how record type looks once created.

    ques record type

     

    Hope this answer would be helpful!!

  • Archit

    Member
    January 10, 2018 at 3:21 am in reply to: What is visualforce controller in Salesforce? What are they?

    Hello Ankit,

    Visualforce controllers are the set of instructions to be followed when a user interacts with any component on visualforce page like after click on any button what it action next. In Salesforce we have three controllers :

    • Standard Controller
    • Custom Controller
    • Controller Extensions

    Hope this answer would be helpful!!

  • Archit

    Member
    January 9, 2018 at 2:02 pm in reply to: How many Salesforce Reports can a Dashboard contain?

    Hello Suryadeep,

    We can add upto 20 components in a single dashboard and every component can use single report. So it says we can add upto 20 reports in single dashboard.

    Hope this answer would be helpful!!

  • Custom Object : Custom object is like any Database table that we used to have in SQL or in any other database.

    Custom Setting :  Custom Setting is like configuration file that we used to have. List type of custom setting acts like a custom object but there are differences in them like in custom settings there is a limit on no. of records, you can not write trigger, workflow etc on custom setting.

    For more information about limits and considerations of custom settings please Check Here.

    Hope this answer would be helpful!!

  • Archit

    Member
    January 9, 2018 at 12:17 pm in reply to: Is there a way to export photos from Developer Org in Salesforce?

    Hello Deepu,

    Please follow steps to export photos from salesforce developer org to your desktop:

    • Go to Setup
    • Select Data Export under Data Management.
    • Click on Export Now or Schedule Export as per choice.
    • Please check Include images, documents, and attachments and Include Salesforce Files and Salesforce CRM Content document versions.
    • Check Include all data under Exported Data or selection as per choice.
    • Click on Start export.
    • Once export done .zip file is downloaded where you find Document, Attachment etc folder so fetch out the required images you want from there.

    Hope this answer would be helpful !!

  • Archit

    Member
    January 9, 2018 at 9:32 am in reply to: What is the difference between SaaS and PaaS concepts in Salesforce?

    Hello Suryadeep,

    Platform As A Service: The platform which enable developers to develop the things, In general we can say any operating system we are using as platform but here in the Salesforce we have Force.com which is considered as platform and using that we need to have specific editions and license which makes the availability of platform as service.

    Software As A Service: In Salesforce there is no need to install any software but what we need is only credentials, specific editions and license, Internet and a browser after all of these we have everything available inside the Salesforce org. But for buying license and editions we need to pay as per requirements so it becomes a kind of paid service and the whole scenario consider as software as a service.

    Hope this answer would be helpful

  • Hello Rajan,

    >Choose Dashboard you want to share
    > click share button on the upper right corner
    > choose any option to share the dashboard with users.(Give Access, Post To feed, Get URL....)
    > Choose 'Give Access' for giving access permissions to the dashboard to either any role, user, or any group you want.
    > Make sure, if you are giving permissions to share dashboard, first check permission to that application where the dashboard exist it should also been shareable with same.

    Please update if this post being helpful.

    Happy Analytics!!!!

    Thanks!!

Page 4 of 4