Forcetalks | Deepak | Activity https://www.forcetalks.com/depakmaurya/activity/ Activity feed for Deepak. Sun, 07 Dec 2025 05:39:50 +0530 https://buddypress.org/?v=2.15.3 en-US 30 hourly 2 f9b571309a85651c38e0868a80a1dab6 Deepak replied to the discussion How does system change event not work for change in object type attribute in Salesforce lightning? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/does-system-change-event-not-work-for-change-in-object-type-attribute-in-lightning/#post-66440 Thu, 12 Dec 2019 17:14:48 +0530 Reply to How does system change event not work for change in object type attribute in Salesforce lightning?

component.set('v.acc.Name', 'Name from 3!');
To:

var acc = component.get('v.acc');
acc.Name = 'Name from 3!';
component.set('v.acc', acc);
And everything will work.

Here is why you are seeing this behavior, and why the workaround is working:

The rule to remember: all changes are propagated down, but only propagated up when they affect the… Read more

]]>
7d2fe366dd0160290f62504dbfa11e25 Deepak replied to the discussion What is the case of system change event in Salesforce lightning? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-case-of-system-change-event-in-lightning/#post-66439 Thu, 12 Dec 2019 17:12:23 +0530 Reply to What is the case of system change event in Salesforce lightning?

understanding System Events In Lightning Components – Part 1
In this blog we'll explore how System events in Lightning Components work to help write better code and solve potential performance issues due to race condition and rerendering of components.
Lightning Components Framework comes with a set of “system” events to notify components… Read more

]]>
b383cf493d070bb1bc77ea9dd55c0c85 Deepak started the discussion How can you associate multiple standard list controller with a visualforce page in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-you-associate-multiple-standard-list-controller-with-a-visualforce-page/ Thu, 12 Dec 2019 15:51:02 +0530 How can you associate multiple standard list controller with a visualforce page in Salesforce?

How can you associate multiple standard list controller with a visualforce page?

]]>
e300b89f63ae1072cbf78fc43201790a Deepak started the discussion How to set Task Reminder Date/Time using apex in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-set-task-reminder-date-time-using-apex-in-salesforce/ Thu, 12 Dec 2019 15:49:43 +0530 How to set Task Reminder Date/Time using apex in Salesforce?

How to set Task Reminder Date/Time using apex in salesforce?

]]>
26682207821f806996492d535ca53c0d Deepak started the discussion How to set body of the HTTP request in Salesforce Apex? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-set-body-of-the-http-request-in-apex/ Thu, 12 Dec 2019 15:48:36 +0530 How to set body of the HTTP request in Salesforce Apex?

How to set body of the HTTP request in Apex?

]]>
640afee94167b2f1a0bdb3eca985ac77 Deepak started the discussion How to loop over child objects of master object in batch object in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-loop-over-child-objects-of-master-object-in-batch-object-in-salesforce/ Thu, 12 Dec 2019 15:46:43 +0530 How to loop over child objects of master object in batch object in salesforce?

How to loop over child objects of master object in batch object in salesforce?

]]>
0d6c6dd212d07a0afe8d2d8dadaec11e Deepak replied to the discussion What does it actually mean by the error “Arithmetic expressions must use numeric arguments”in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-does-it-actually-mean-by-the-error-arithmetic-expressions-must-use-numeric-arguments/#post-66418 Thu, 12 Dec 2019 07:16:09 +0530 Reply to What does it actually mean by the error “Arithmetic expressions must use numeric arguments”in Salesforce?

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… Read more

]]>
2630aa4b4e568b01d9b9d6d50eb4e5a4 Deepak replied to the discussion What are apex best ways of parsing new line delimited json in apex in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/apex-best-way-to-parse-large-new-line-delimited-json/#post-66416 Thu, 12 Dec 2019 07:13:10 +0530 Reply to What are apex best ways of parsing new line delimited json in apex in Salesforce?

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… Read more

]]>
342a49294358df6e2189fdce94b0e945 Deepak replied to the discussion How to create the below Appointment table in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-create-it/#post-66412 Thu, 12 Dec 2019 07:10:25 +0530 Reply to How to create the below Appointment table in Salesforce?

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"… Read more

]]>
49cd20504e5faf3791a911fe992b1ea8 Deepak replied to the discussion How to use apex:actionsupport such that it only saves the last radiobutton in repeat in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/apexactionsupport-only-save-the-last-radiobutton-in-repeat/#post-66394 Wed, 11 Dec 2019 16:30:50 +0530 Reply to How to use apex:actionsupport such that it only saves the last radiobutton in repeat in Salesforce?

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

]]>
83be267a3ea82714cf4bc4e0d7de4187 Deepak replied to the discussion How to identify a User from 3-rd party in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-identify-a-user-from-3-rd-party-in-salesforce/#post-66393 Wed, 11 Dec 2019 16:27:05 +0530 Reply to How to identify a User from 3-rd party in salesforce?

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… Read more

]]>
90460a30159810f977389334c58d502d Deepak replied to the discussion How to insert a csv file "OrderProduct" related list of "Order" standard object with apex in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-insert-a-csv-file-orderproduct-related-list-of-order-standard-object-with-apex/#post-66392 Wed, 11 Dec 2019 16:24:48 +0530 Reply to How to insert a csv file "OrderProduct" related list of "Order" standard object with apex in Salesforce?

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… Read more

]]>
eceed03685201ca456f5429d83435abc Deepak replied to the discussion How to read email and Phone number in pdf or any attachment file and save Data in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-read-email-and-phone-number-in-pdf-or-any-attachment-file-and-save-data-in-salesforce/#post-66391 Wed, 11 Dec 2019 16:18:44 +0530 Reply to How to read email and Phone number in pdf or any attachment file and save Data in salesforce?

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;
}

]]>
8d32e764d4c29e1f56ed7d030bd4f110 Deepak replied to the discussion How to fix lookup filter issue which turns into picklist in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-fix-lookup-filter-issue-which-turns-into-picklist/#post-66390 Wed, 11 Dec 2019 14:57:50 +0530 Reply to How to fix lookup filter issue which turns into picklist in Salesforce?

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

USER PERMISSIONS NEEDED
To manage lookup filters:
Customize Application
On the Fields page, the   icon indicates all fields… Read more

]]>
8806831dd854b99f2b1be953bf7acc23 Deepak replied to the discussion How to build Quote view page and editable view page in Salesforce lighting? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-build-quote-view-page-and-editable-view-page-in-lighting/#post-66389 Wed, 11 Dec 2019 14:56:21 +0530 Reply to How to build Quote view page and editable view page in Salesforce lighting?

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.

REQUIRED EDITIONS AND USER PERMISSIONS
Available in: Salesforce Classic (not available in all orgs) and Lightning Experience
Available… Read more

]]>
aff5d28104ee13c16bb3ff5c449349cf Deepak replied to the discussion How to schedule apex to update related records based on the Parent in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/schedule-apex-to-update-related-records-based-on-the-parent-object/#post-66388 Wed, 11 Dec 2019 14:45:17 +0530 Reply to How to schedule apex to update related records based on the Parent in Salesforce?

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

]]>
aade55d82f5d7d7074e6bde96a385033 Deepak replied to the discussion How can we use same aura:id for multiple Salesforce lightning tags in a component? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-we-use-same-auraid-for-multiple-lightning-tags-in-a-component/#post-66387 Wed, 11 Dec 2019 14:43:10 +0530 Reply to How can we use same aura:id for multiple Salesforce lightning tags in a component?

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… Read more

]]>
2592c6d6df0495da13e6402a4ac2e48c Deepak replied to the discussion What is the use case of <lightning:notificationsLibrary /> tag in Salesforce lightning? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-use-case-of-lightningnotificationslibrary-tag-in-lightning/#post-66386 Wed, 11 Dec 2019 14:42:10 +0530 Reply to What is the use case of <lightning:notificationsLibrary /> tag in Salesforce lightning?

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,… Read more

]]>
cfcef8097455cb4d7207d1762f1325b5 Deepak replied to the discussion How to Create a Batch class which append Account's name after each related contact in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-create-a-batch-class-which-append-accounts-name-after-each-related-contact/#post-66325 Tue, 10 Dec 2019 14:44:29 +0530 Reply to How to Create a Batch class which append Account's name after each related contact in Salesforce?

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… Read more

]]>
cb36d4d8d3ec0aad115fa252208ca80b Deepak replied to the discussion How to share downloadable link of file to external system in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-share-downloadable-link-of-file-to-external-system/#post-66324 Tue, 10 Dec 2019 14:41:26 +0530 Reply to How to share downloadable link of file to external system in Salesforce?

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… Read more

]]>
cc40d8c3ab9e9a60bd95d55e7fe8e651 Deepak replied to the discussion How to get standard date picker custom Visualforce in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/ability-to-input-a-time-duration/#post-66323 Tue, 10 Dec 2019 14:40:26 +0530 Reply to How to get standard date picker custom Visualforce in Salesforce?

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 >
<apex:pageBlockSection>
<apex:pageBlockSectionItem>
Date: <apex:input… Read more

]]>
bc1e50553b403252f8bde786a0bfe384 Deepak replied to the discussion How to alert users assigned to a territory when accounts that belong to their territory are merged in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-alert-users-assigned-to-a-territory-when-accounts-that-belong-to-their-territory-are-merged/#post-66322 Tue, 10 Dec 2019 14:32:00 +0530 Reply to How to alert users assigned to a territory when accounts that belong to their territory are merged in Salesforce?

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… Read more

]]>
40cdd261f5d0a509e004c74bd6fa974e Deepak replied to the discussion How would anyone have an Apex trigger that simply rolls up the Opporunty Primary partner name up to the Opportunity record in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/rollup-opportunity-primary-partner-to-opportunity-record/#post-66321 Tue, 10 Dec 2019 14:28:55 +0530 Reply to How would anyone have an Apex trigger that simply rolls up the Opporunty Primary partner name up to the Opportunity record in Salesforce?

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){
AccIds.add(opp.AccountId);
}
}
if(trigger.isdelete){
for(opportunity opp… Read more

]]>
f338579e5d6b224ad2cb177faaad84ad Deepak replied to the discussion Do you know how to get the thumbs up/down icon for the Einstein bot response in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/do-you-know-how-to-get-the-thumbs-up-down-icon-for-the-einstein-bot-response/#post-66319 Tue, 10 Dec 2019 14:10:16 +0530 Reply to Do you know how to get the thumbs up/down icon for the Einstein bot response in Salesforce?

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… Read more

]]>
56716862e688e9fa24c63609326531b4 Deepak replied to the discussion How to schedule batch class based on country in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-schedule-batch-class-based-on-country/#post-66318 Tue, 10 Dec 2019 14:08:54 +0530 Reply to How to schedule batch class based on country in Salesforce?

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… Read more

]]>
a186384e706eded2ddde084ce2399501 Deepak replied to the discussion How to set default value in <lightning:select> in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-set-default-value-in-lightningselect/#post-66317 Tue, 10 Dec 2019 14:07:29 +0530 Reply to How to set default value in <lightning:select> in Salesforce?

<aura:application extends="force:slds" controller="LightningAccountController">
<aura:attribute name="accounts" type="Account[]" />
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />

<lightning:select label="Choose 1" name="a_opt" aura:id="a_opt" onchange="{!c.change}">
<aura:iteration items="{!v.accounts}"… Read more

]]>
02c67f5f8aa7fc51123dfdb1b8ed163c Deepak replied to the discussion How to implement a custom toast message without firing a event in a Salesforce lightning component? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-implement-a-custom-toast-message-without-firing-a-event-in-a-lightning-component/#post-66316 Tue, 10 Dec 2019 14:05:52 +0530 Reply to How to implement a custom toast message without firing a event in a Salesforce lightning component?

The correct method would be to use the lightning:overlayLibrary (or create your own modal dialog). How it works is given in the documentation. First, you include overlay library:

<lightning:overlayLibrary aura:id="overlayLib"/>
And then you call it when you need it:

var modalBody;
$A.createComponent("c:modalContent", {},
function(content,… Read more

]]>
6aeacce672994fd073a8fba98c838272 Deepak replied to the discussion How to write Apex trigger for the given requirement in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-write-apex-trigger-for-the-given-requirement/#post-66315 Tue, 10 Dec 2019 14:04:08 +0530 Reply to How to write Apex trigger for the given requirement in Salesforce?

Write a trigger on lead for after insert and after update. Write your condition for update the lead status in if block and write the code for lead status updation.

]]>
ac5b234b8936dd03fb360f1aa922733c Deepak replied to the discussion How to assign Connected App to any desired profile programatically by using apex or metadataapi in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-assign-connected-app-to-any-desired-profile-programatically-by-using-apex-or-metadataapi/#post-66314 Tue, 10 Dec 2019 14:00:18 +0530 Reply to How to assign Connected App to any desired profile programatically by using apex or metadataapi in Salesforce?

You can use the Salesforce Metadata API(http://www.salesforce.com/us/developer/docs/api_meta/) to create a Connected App(https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_connectedapp.htm), it provides the ConnectedApp metadata type for this purpose. You can either use the File Based… Read more

]]>
e074913bf7eafaea52dfde3270bc4ebe Deepak replied to the discussion How can I test Messaging.MassEmailMessage with checking targetobjectids in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-test-messaging-massemailmessage-with-checking-targetobjectids/#post-66313 Tue, 10 Dec 2019 13:59:18 +0530 Reply to How can I test Messaging.MassEmailMessage with checking targetobjectids in Salesforce?

Messaging.MassEmailMessage massEmail = new Messaging.MassEmailMessage();
massEmail.setTargetObjectIds(userIds);
massEmail.setSaveAsActivity(false);
massEmail.setTemplateId(templateId);
List<Messaging.Email> emails = new List<Messaging.Email>{massEmail};
emails.add(‘your email id’);
Messaging.SendEmailResult[] results =… Read more

]]>
a5363e9856f127ed957af588ee51145e Deepak replied to the discussion What feature would you use to track changes to settings in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-feature-would-you-use-to-track-changes-to-settings-in-salesforce/#post-66249 Mon, 09 Dec 2019 14:28:21 +0530 Reply to What feature would you use to track changes to settings in Salesforce?

Earlier this week a friend wanted to know how best to troubleshoot an error message he, and his users, were getting.  Every time anyone tried to access ANY record, they got an error that looked like this:

“UNABLE_TO_LOCK_ROW : unable to obtain exclusive access to this record”

That’s bad!  No one could work inside Salesforce!

This meant that… Read more

]]>
4311f3e75f4820742f983c0a5ecaa69d Deepak started the discussion How to do a button that get's current time and save the value in a Salesforce Custom object? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/lwc-how-to-do-a-button-that-gets-current-time-and-save-the-value-in-a-custom-object/ Mon, 09 Dec 2019 14:26:34 +0530 How to do a button that get's current time and save the value in a Salesforce Custom object?

LWC: How to do a button that get's current time and save the value in a Custom object?

]]>
e19b8e1b853aa2773a9688f4f7478fcd Deepak started the discussion How to create animation effect like standard list view page on refresh button in Salesforce lightning? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-create-animation-effect-like-standard-list-view-page-on-refresh-button-in-lightning/ Mon, 09 Dec 2019 14:24:54 +0530 How to create animation effect like standard list view page on refresh button in Salesforce lightning?

How to create animation effect like standard list view page on refresh button in lightning?

]]>
4a891ffbfb6981ad347a8a30ea28b8ab Deepak started the discussion How to delete uploaded files from community attachments in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-delete-uploaded-files-from-community-attachments/ Mon, 09 Dec 2019 14:23:47 +0530 How to delete uploaded files from community attachments in Salesforce?

How to delete uploaded files from community attachments?

]]>
17182167eebe662078079a2d34dc1e69 Deepak started the discussion Can we open marketing cloud in Salesforce playground without asking login details In LWC? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-we-open-marketing-cloud-in-salesforce-playground-without-asking-login-details-in-lwc/ Mon, 09 Dec 2019 14:22:39 +0530 Can we open marketing cloud in Salesforce playground without asking login details In LWC?

Can we open Marketing cloud in salesforce playground without asking login details In LWC?

]]>
ce83b0302d84e4d28c915df2c222f933 Deepak started the discussion How to ShowToast duration parameter not working in Salesforce Lightning Web Component? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/showtoast-duration-parameter-not-working-in-lightning-web-component/ Mon, 09 Dec 2019 14:21:26 +0530 How to ShowToast duration parameter not working in Salesforce Lightning Web Component?

handleToast(){
if(this.showToast){
//console.log('calling case comments');
getCaseComment({caseId: this.recordId})
.then(result => {
if(result){
this.dispatchEvent(
showToast('Info','pester', 'Latest Case Comment', result, 75000)
);
}
})
.catch(error => {
console.log('Error occured in showing case… Read more

]]>
e297def524dce577c55b1243b3a538c2 Deepak started the discussion Is there a way to check a debug statement belongs to which class in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-there-a-way-to-check-a-debug-statement-belongs-to-which-class/ Mon, 09 Dec 2019 14:06:01 +0530 Is there a way to check a debug statement belongs to which class in Salesforce?

Is there a way to check a debug statement belongs to which class?

]]>
136144c718fa052e4d186da051e9b0e0 Deepak replied to the discussion What is the return type of Trigger.Old and Trigger.OldMap in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-return-type-of-triggerold-and-triggeroldmap-in-salesforce/#post-66242 Mon, 09 Dec 2019 14:04:09 +0530 Reply to What is the return type of Trigger.Old and Trigger.OldMap in Salesforce?

Trigger.old: Returns a list of the old versions of the sObject records. Trigger.old should return a type ofList<sObject__c>.Note that this sObject list is only available in the update and delete triggers.

Trigger.oldMap: A map of IDs to the old versions of the sObject records. Trigger.oldMap should return a type of Map<Id, sObject__c>.Note… Read more

]]>
295ba6a951d9d4173f3af6c91e3b8186 Deepak replied to the discussion How to insert a list custom setting record from apex in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-insert-a-list-custom-setting-record-from-apex/#post-66217 Mon, 09 Dec 2019 10:05:17 +0530 Reply to How to insert a list custom setting record from apex in Salesforce?

Custom Settings Methods
Custom settings are similar to custom objects and enable application developers to create custom sets of data, as well as create and associate custom data for an organization, profile, or specific user. All custom settings data is exposed in the application cache, which enables efficient access without the cost of… Read more

]]>
2763bd1d452a01b89779b74a7778e8c4 Deepak replied to the discussion How to receive an error while attempting to mass edit contacts in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/has-anyone-received-an-error-while-attempting-to-mass-edit-contacts/#post-66187 Sun, 08 Dec 2019 17:44:14 +0530 Reply to How to receive an error while attempting to mass edit contacts in Salesforce?

Have you checked that all VF Pages and Classes are added to their Profiles? You can find that when you go to the profile and scroll down to the bottom. I hope this helps.

]]>
95f5b809eae920845d540becd96c574d Deepak replied to the discussion How to rename multiple box folders through apex in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-rename-multiple-box-folders-through-apex/#post-66186 Sun, 08 Dec 2019 17:43:16 +0530 Reply to How to rename multiple box folders through apex in Salesforce?

This can be done by creating a script using our API. The specific endpoint you would need to update the name would be: https://developer.box.com/reference#update-information-about-a-folder. However, you would first need to find all the folder IDs of the folders with the same name. Perhaps someone else might be able to provide more details on that piece!

]]>
6a294d36857d45a21612518764225fa9 Deepak replied to the discussion How to assign upcoming chat request to the Agent based on Skills using Apex in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-assign-upcoming-chat-request-to-the-agent-based-on-skills-using-apex/#post-66185 Sun, 08 Dec 2019 17:41:58 +0530 Reply to How to assign upcoming chat request to the Agent based on Skills using Apex in Salesforce?

Transfer Chats to an Agent, Skill, or Button
Chats can be transferred to another agent, skill, or button so your customers always receive the highest-quality help from the most relevant sources. This information applies to chats routed with Chat routing only.

Available in: Salesforce Classic
Available in: Performance Editions and… Read more

]]>
05c71e658a04551a7ab514c1aa8dbb87 Deepak replied to the discussion How to add a new tab to Case Activity tabs in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-add-a-new-tab-to-case-activity-tabs/#post-66184 Sun, 08 Dec 2019 17:40:31 +0530 Reply to How to add a new tab to Case Activity tabs in Salesforce?

Whats' the custom tab? Keep in mind those tabs are meant for specific actions. Here's the trailhead that should help:

Actions and Lightning Experience:
https://developer.salesforce.com/trailhead/lex_migration_customization/lex_migration_customization_actions

Here's a quick summary of how you'd customize the actions:

You'll be creating… Read more

]]>
2e528f3e4b63c312d35152d9b08356b0 Deepak replied to the discussion How to upload files in community using Salesforce lightning? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-upload-files-in-community-using-lightning/#post-66183 Sun, 08 Dec 2019 17:38:55 +0530 Reply to How to upload files in community using Salesforce lightning?

Use lightning:fileUpload component in your page to upload files in salesforce object.

]]>
485bab3a517e26ab76c6cf421e6a45b0 Deepak replied to the discussion How to create Global folders within account via Visualforce or apex trigger in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/create-global-folders-within-account-via-visual-force-or-apex-trigger/#post-66182 Sun, 08 Dec 2019 17:36:48 +0530 Reply to How to create Global folders within account via Visualforce or apex trigger in Salesforce?

]]>
fe93c0a4214b5c571e305067dae804e6 Deepak started the discussion How can I edit components in a managed package installed in the Salesforce org? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-edit-components-in-a-managed-package-installed-in-the-org/ Fri, 06 Dec 2019 12:36:04 +0530 How can I edit components in a managed package installed in the Salesforce org?

How can I edit components in a managed package installed in the org?

]]>
23c5147e0d2a546c7b3e258c40c99c34 Deepak replied to the discussion How we can create google chart from apex class in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-we-can-create-google-chart-from-apex-class/#post-66163 Fri, 06 Dec 2019 12:34:39 +0530 Reply to How we can create google chart from apex class in Salesforce?

<apex:page >
<apex:includeScript id="a" value="https://www.google.com/jsapi" />
<apex:sectionHeader subtitle="Reactive Call Outs Per Day"/>
<!-- Google Charts will be drawn in this DIV -->
<div id="chart_div" />

<script type="text/javascript" src="/soap/ajax/20.0/connection.js"></script>
<script… Read more

]]>
7638fbe92370cc1fb442b07ea29b0402 Deepak replied to the discussion How can we create workflow through apex in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-we-create-workflow-through-apex/#post-66161 Fri, 06 Dec 2019 12:32:52 +0530 Reply to How can we create workflow through apex in Salesforce?

You can not create approval process or workflow with Apex system classes.

These are configurable business logics which can not be created generally in Apex.

But there is one way of creating these components is Metadata API. In metadata API you can create Approval process, workflows, workflow rules, Assignment rules and other admin… Read more

]]>
9349931051ab62eb55a1e4fcd7dd4333 Deepak replied to the discussion How to cover a user in Salesforce test class? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-cover-a-user-in-test-class/#post-66160 Fri, 06 Dec 2019 12:31:51 +0530 Reply to How to cover a user in Salesforce test class?

Create a new user and assign it a profile and role by querying and insert the user.

You can also cover in a different way by creating an account and a related contact. Enable account as partner user then create a user, assign it a partner profile and add contactid in user.

]]>
32956797ca6317426117c76a9a26e472 Deepak replied to the discussion Why Static variables loose their state in batch class during every execution in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/why-static-variables-loose-their-state-in-batch-class-during-every-execution/#post-66158 Fri, 06 Dec 2019 12:28:32 +0530 Reply to Why Static variables loose their state in batch class during every execution in Salesforce?

By default salesforce excuete the batch class like this from my understanding because  it it will not initialise to null there is chance to exist previous data  then the batch class will fail.
if you will not initialise to null
Let us assume you have excueted the batch with 200 records by five batches after excuetion of one batch list having 200… Read more

]]>