• You nearly made me forget the syntax there !! I’ve corrected the trigger above, try that to see if it works.


    You need to have a for loop to iterate over all the records that have invoked the trigger.

    Also a before trigger makes more sense, since you’re manipulating values on the triggering records.


    trigger Peachtree_items_process on…[Read more]

  • JSON Deserialization Techniques in Salesforce
    Brenda FinnIf you have ever been given a JSON object and needed to parse it in Apex, then you may have run into some of the same issues I did so read on. JSON, which stands for JavaScript Object Notation, is widely used due to its ability to define the structure of an object and its values at the same…[Read more]

  • Deepak replied to the topic

    How create it?

    41 minutes ago

    VF page:

    <apex:page controller=”Account_Filter” docType=”html-5.0″>
    <apex:form >
    <apex:pageBlock >

    <!–Search and filter button–>
    <apex:pageBlockButtons location=”top”>
    <apex:commandButton value=”Search” action=”{!searchaccounts}” />
    <apex:commandButton value=”Show Selected Accounts” action=”{!processSelected}”…[Read more]

  • Deepak replied to the topic

    apex:actionsupport only save the last radiobutton in repeat

    15 hours, 20 minutes ago

    <apex:outputPanel id=”repeating”>
    <apex:repeat value=”{!change}” var=”c”>
    <apex:selectRadio value=”{!save}” action=”{!saveInformation}”>
    <apex:selectOption itemValue=”{!c}” itemLabel=”{!c}” />
    <apex:actionSupport event=”onchange” reRender=”repeating” action=”{!saveInformation}”>
    </…[Read more]

  • Deepak replied to the topic

    How to identify a User from 3-rd party in salesforce?

    15 hours, 24 minutes ago

    Use Third-Party Data to Update and Add Records to Salesforce
    A rule set up by your Salesforce admin compares your accounts, contacts, and leads to data from a third-party source—Lightning Data or Data.com. Depending on how your admin sets up the rule, your records are updated as information changes. Or your admin can give you purchase credits to i…[Read more]

  • Fulfill Orders Faster
    Seamlessly generate orders from quotes to quickly get products and services delivered to your customers.
    Flexible for Evolving Customer Needs
    Split quotes into multiple orders, manage future dated orders, and modify with point- and-click.
    360-Degree View of the Customer
    Quickly generate contracts with all contract term,…[Read more]

  • for (Messaging.Inboundemail.BinaryAttachment bAttachment : email.binaryAttachments) {

    Attachment attachment = new Attachment();
    // attach to the newly created contact record
    attachment.ParentId = contact.Id;
    attachment.Name = bAttachment.filename;
    attachment.Body = bAttachment.body;
    insert attachment;

  • Deepak replied to the topic

    How to fix lookup filter issue which turns into picklist?

    16 hours, 53 minutes ago

    Considerations for Lookup Filters
    Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience
    Available in: All Editions except for Database.com.

    To manage lookup filters:
    Customize Application
    On the Fields page, the icon indicates all fields with…[Read more]

  • Deepak replied to the topic

    How to build Quote view page and editable view page in lighting

    16 hours, 55 minutes ago

    Create, Preview, and Activate Quote Templates
    Define the look of your company’s quote PDFs by creating templates that your sales reps can choose when they create quote PDFs.

    Available in: Salesforce Classic (not available in all orgs) and Lightning Experience
    Available i…[Read more]

  • We generally avoid applying for loop in apex code as it will break governer rule so do the query for your program.

  • Presuming that you’re dynamically creating components (e.g. c1 and c2), you have total control over the aura:id. A component cannot define its own aura:id, only the aura:id for children within itself. From here, it follows that you’re trying to figure out what type of component you’re dealing with. For that, we use Component#getType. This tells…[Read more]

  • Messages can be displayed in notices and toasts. Notices alert users to system-related issues and updates. Toasts enable you to provide feedback and serve as a confirmation mechanism after the user takes an action.

    Include one <lightning:notificationsLibrary aura:id=”notifLib”/> tag in the component that triggers the notifications, w…[Read more]

  • I believe you are trying to associate a single contact to multiple accounts. This functionality was released in Spring 16′ and is implemented through a Salesforce Junction object – AccountContactRelation.

    I assume you have already enabled this functionality through the UI and a parent Account is declared for this Contact.

    I have modified your c…[Read more]

  • Deepak replied to the topic

    How to share downloadable link of file to external system

    1 day, 17 hours ago

    Share Files Via Link
    Available in: Salesforce Classic
    Available in: Essentials, Group, Enterprise, Professional, Performance, Unlimited, Contact Manager, and Developer Editions
    You can share a file with anyone by creating a file link and sending it through email or IM. Creating a link generates an encrypted URL that you can send to any recipien…[Read more]

  • Deepak replied to the topic

    Ability to Input a Time Duration

    1 day, 17 hours ago

    Please find the below examples to display the date field with date pickers.

    Ex 1 :
    Visual Force Page :
    <apex:page docType=”html-5.0″ controller=”Sample”>
    <apex:form >
    <apex:pageBlock >
    Date: <apex:input type=”date”…[Read more]

  • Managing Account Assignment Rules
    Create account assignment rules that automatically move accounts and their associated opportunities and cases into territories based on any standard or custom account field, such as zip code, state, industry, revenue, or number of employees. Each rule consists of multiple rows of criteria that specify exactly how…[Read more]

  • Deepak replied to the topic

    Rollup Opportunity Primary partner to opportunity record

    1 day, 17 hours ago

    trigger rollupopp on Opportunity (after delete,after update,after insert,after undelete) {

    set<ID>AccIds = new set<ID>();

    if(trigger.isinsert || trigger.isundelete){
    for(opportunity opp : trigger.new){
    for(opportunity opp :…[Read more]

  • Chatbot Terminology
    Sita Nagappan-Alvarez, the CEO of Ursa Major Solar, is curious to learn more about what Maria Jimenez, her Salesforce admin, has discovered about chatbots. After Maria mentions that bots are a smart customer channel that requires a lot of content, Sita’s confused. Bot content? She thought you simply click a button or write s…[Read more]

  • Deepak replied to the topic

    How to schedule batch class based on country?

    1 day, 17 hours ago

    ust saving the class does not schedule it. You still need to tell the DB to schedule it. I generally write a schedule function within my class so that I can easily call it in one line, that uses my static chron string within the class. Something like this should work

    global class Scheduler_class implements Schedulable{

    public static String sched…[Read more]

  • Load More


We're not around right now. But you can send us an email and we'll get back to you, asap.


About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials


Forgot your details?