Forum Replies Created

Page 57 of 57
  • shariq

    Member
    July 13, 2017 at 2:11 pm in reply to: What are Junction Objects in Salesforce?

    Hi Rahul,

    In Salesforce, a Junction Object is a custom object with two master-detail relationships to two different record types. It is used to represent a many-to-many relationship in which several junction objects can link one instance of a record to many children.
    For more information Click here

  • shariq

    Member
    July 13, 2017 at 2:05 pm in reply to: Why Governor Limits are introduced in Salesforce

    Hi Uday,

    Salesforce is a Multi-tenant architecture, for example - A building shared by many people, everybody has been provided with equal quantity. There are millions of users in Salesforce, nobody has advantage over others, This is all due Governer Limits enforced by Salesforce.

    Hope my answer is cleared.

  • shariq

    Member
    July 13, 2017 at 1:43 pm in reply to: How can we count number of contacts associated with accounts?

    Hi Saloni,

    The code for your answer is : -

    public class RelatedList
    {
    public static void ListContact()
    {
    List accList = [SELECT Name, (SELECT LastName FROM Contacts ) FROM Account];
    for(Account acc : accList)
    {
    System.debug('+++'+ acc.contacts.size());
    }
    }
    }

    • This reply was modified 6 years, 10 months ago by  shariq.
  • Hello Parv,

    The reason why sObjects can’t be passed as arguments to future methods is because the sObject might change between the time you call the method and the time it executes. In this case, the future method will get the old sObject values and might overwrite them. To work with sObjects that already exist in the database, pass the sObject ID instead (or collection of IDs) and use the ID to perform a query for the most up-to-date record.

  • shariq

    Member
    July 12, 2017 at 1:31 pm in reply to: Does apex:inputField support a master-detail relationship?

    Hi Suyash,

    When you are using input field, It is automatically assigned to the apex controller(Standard Object).
    So the fields associated to that object are taken into input field and LookUp icon will appear in your case.

  • shariq

    Member
    July 12, 2017 at 12:19 pm in reply to: Difference between synchronous and asynchronous in apex

    Synchronous Apex :-

    Synchronous term means existing or occurring at the same time. Synchronous Apex means entire Apex code is executed in one single go.

    Asynchronous Apex :-

    Asynchronous term means not existing or occurring at the same time. Asynchronous apex is executed when resources are available. So any calling method which calls Asynchronous apex wont wait for outcome of Asynchronous call. Calling method will go on further execution in code. And Asynchronous execution happens in separate thread and then it will return to main program.

  • Thanks Radhakrishna,

    This helps a lot.

  • shariq

    Member
    July 11, 2017 at 1:30 pm in reply to: How to sort contact according to last modification of contact ???

    Hi Shubham,

    By Assuming your scenario, you need to use Order By Clause on field LastModifiedDate.

    Example : [SELECT Id, Name FROM Contact Order By LastModifiedDate DESC]

  • Hi Sushant,

    Visualforce Tags are not supported in Salesforce Lightning. You can understand pageBlockSection here

    • This reply was modified 6 years, 10 months ago by  shariq.
    • This reply was modified 6 years, 10 months ago by  shariq.
  • Standard Objects -

    They are the Objects which are already included in Salesforce. Examples - Accounts, Contacts, Cases etc.
    They are common to every businesses.

    Custom Objects -

    They are created by companies or businesses to store information specific to their needs. Examples - Students, Properties etc.

  • Hi Aman,

    It is because the Updation done by workflow, will fire the trigger twice, and u dont want that,
    best practice is to not create workflow and trigger on the same object at the same time.

    Hope this helps.

  • shariq

    Member
    July 6, 2017 at 5:28 am in reply to: How to query email and images from feedItems in case object?

    Hi sudhir,

    Could u explain isRichText more.

    thanks.

  • Hi Suraj,

    When u are creating master detail relationship , the master is required, just like in real situation ,
    if there is a employee,it must work for a company(tight bound), if company closes then there will be no employee, if parent is deleted, child automatically deleted too.

    And in lookUp ,there is no need of parent, if parent is deleted, no effect on child.

    Hope this helps.

  • Thanks Sudhir,
    can u explain Independent ownership

  • shariq

    Member
    July 5, 2017 at 1:16 pm in reply to: What is the relationship between Account and Contact?(Explain)

    thanks sudhir,
    it helps a lot.

  • hello sudhir,
    Either u delete all records on that child object or u first create a lookup then change it to master detail. My question is that, why u cant create master detail on that child object with existing records.

  • thanks Sudhir, can u please tell difference.

  • Below is the Salesforce Order of Execution:

    • System Validation rule (required field, field format) (SV)
    • Before Triggers are executed (BT)
    • Custom Validation rules are checked (CV)
    • After Triggers are executed (AT)
    • Assignment Rules are executed (AR)
    • Auto-Response Rules are executed (ARR)
    • Workflow Rules are executed (WR)
    • Before and after triggers are executed one more time if the workflow rule updates a field (BT & AT)
    • Escalation Rules are executed (ER)
    • Parent Rollup Summary Formula or Cross Object Formula fields are updated in the respective objects. (RSF, COF) (These parent records also goes through the entire execution order)
    • Criteria Based Sharing rules are evaluated (CBS)
    • Any Post-Commit Logic is executed (PCL)  (like sending an email)

    Below will help you to remember Order of Execution in Salesforce:

    SV -> BT -> CV -> AT -> AR -> ARR -> WR (BT, AT) -> ER -> RSF, COF -> CBS -> PCL

  • shariq

    Member
    July 4, 2017 at 10:13 pm in reply to: Validation rule error when existing record is edited

    Hi Satyakam,

    You can try this validation rule:-

    AND(ISCHANGED( FirstName ) , FirstName =='ok')

    Hope this helps.

  • shariq

    Member
    July 4, 2017 at 9:43 pm in reply to: Unable to add new field - Salesforce Trailhead

    Hi David,

    You can try another method to add fields :-

    1.Go to object tab<contact>, click it,

    2.Go to right side of the page , click on the blue arrow,

    3.Click on View fields,

    4.Go to down side of the page( Contact Custom Fields & Relationships)and click on New button for creating new fields.

    Hope this helps.

  • shariq

    Member
    July 4, 2017 at 9:16 pm in reply to: What are the advantages of Salesforce CRM for enterprise brands?

    Hello Adarsh,

    advantages - consider this link.

    TOP 5 ADVANTAGES OF USING SALESFORCE CRM
    1) Ease of Use – It stands to reason that one of the single most important elements of any service is its ease of use, this is particularly true considering that Salesforce CRM is targeted to a broad range of companies and business, many of whom may not have a background in tech and software. For the CRM to reach its full potential it must be easy for even novice users to work with.

    Salesforce meets and far exceeds the ease of use requirement by offering its user base an extremely intuitive, simple user interface. Unlike with many other CRMs and related services, there is no need to get involved with coding or to carefully pour through information about product updates. Instead everything is served up in an easy-to-understand format designed to minimize difficulty and inconvenience.

    2) Excellent Functionality – Salesforce delivers with an outstanding system of integration and functionality. The CRM provides the backbone service needed to allow easy data collaboration between multiple departments, centralized customer information, an array of reports and statistical options, and the ability to run on any browser, tablet, desktop, or mobile device.

    Salesforce also delivers reliable data security and protection, ensuring that sensitive information is not lost or compromised. Salesforce provides your employees with the resources they need to maximize efficiency and productivity. Customers will also benefit from better customer service.

    3) Flexibility and Customization – Salesforce has broad applicability for a wide range of different companies and businesses. The key to this successful approach is in its flexibility and customization potential. Salesforce integrates well with a host of different business models because it is able to provide report and analytics that are tailored to the specific needs of its users.

    Salesforce further allows companies to measure and monitor the success of their marketing campaigns and to customize these outreach efforts on an on-going, as needed basis. This allows for a fully optimized system that can be automated to function on its own. Salesforce cloud system also means that employees can access it from anywhere at anytime, allowing for incredible flexibility.

    4) Outstanding User Resources – In order to provide its hallmark ease of use, as well as to educate its customers on the excellent functionality, flexibility, and customization options that it offers, Salesforce has invested an incredible amount of time, money, and innovation in providing users with an outstanding array of resources. Salesforce offers educational and informative blogs and article posts, it routinely does educational webinars, hosts its own YouTube channel complete with videos covering a full spectrum of topics, and it also publishes a thoroughly comprehensive web-accessible user guide.

    The goal of these many varied resources is to empower customers with the ability to quickly find the answers to their questions in whatever way is the most convenient for them. The answer and information is not only out there; it is out there in many different places and formats. However, in addition to all these ‘self-help’ style resources, Salesforce also employs an excellent, knowledgeable, and customer-oriented tech and customer service team that can walk users through any situation or problem that arises.

    5) The AppExchange – It is fair to say that apps have exploded in a big way all over the public consciousness in recent years. Nowadays many times the first thing that people do when they want to accomplish something digitally is to check and see if “there is an app for that.” The answer is that with Salesforce’s AppExchange there probably is. This marketplace of easy to access, download, and install apps provides users with even more resources, options, and expanded functionality.

    There are apps related to many other big name companies like LinkedIn and Microsoft Outlook which enables full integration of these two services with Salesforce. Additionally the AppExchange is a wellspring of new ideas and capabilities that are being developed and fine tuned at a blinding pace, giving users tools they probably never even dreamed of for connecting with their customers and building deeper relationships.

     

Page 57 of 57