Archit commented on the blog, Some Common Differences in Salesforce 2 days, 21 hours ago
Thanks Kevin
Archit replied to the topic How to pass Dynamic parameter in SOQL where clause, while mapping in Webmerge? in the forum Salesforce Questions and Answers 3 weeks, 6 days ago
uniqueness a common word that everyone understand but here the uniqueness determines the specific field or object for which you want to fetch related data like
if there is any custom field Date is there in any object which call as date__c in soql so in terms of soql you can determine “date__c” as unique. If you try to fetch the related…[Read more]
Archit replied to the topic How can we update child records from parent using Salesforce Apex Class? in the forum Salesforce Questions and Answers 3 weeks, 6 days ago
Hello,
Call the below trigger in apex class you can achieve the functionality what you want
trigger IPAapproved on Outbound_Sales_Order__c (after update) {// Only do work when the field has changed
Map<Id, Outbound_Sales_Order__c> changed = new Map<Id, Outbound_Sales_Order__c>();
for (Outbound_Sales_Order__c oso : Trigger.new)…[Read more]Archit replied to the topic How can we customize the standard Clone button on a Salesforce Opportunity ? in the forum Salesforce Questions and Answers 3 weeks, 6 days ago
Through standard functionality in Salesforce you can’t customize clone button but we can achieve this by overwriting the existing clone button.
Archit replied to the topic Is there any way we can add new attachments to the records when Salesforce1 is offline? in the forum Salesforce Questions and Answers 3 weeks, 6 days ago
In according to the Salesforce standard functionality it is not possible but for achieving same there are multiple apps in AppExchange available to do so.
Archit replied to the topic How to pass Dynamic parameter in SOQL where clause, while mapping in Webmerge? in the forum Salesforce Questions and Answers 3 weeks, 6 days ago
Yes, it is necessary to have this kind of formatting because it shows uniqueness.
Archit replied to the topic What is the difference between Clone() and DeepClone() in Salesforce Apex? in the forum Salesforce Questions and Answers 3 weeks, 6 days ago
Clone : means creating a new record with the existing details of another reord.
Here is the example:
Account acc = [SELECT Name, Type FROM Account LIMIT 1];Account accCopy = acc.clone(false, false, false, false);
if you insert accCopy, it will be the exact copy of acc.
DeepClone : creating a new record with the existing details of another r…[Read more]
Archit replied to the topic Dml error in the forum Salesforce Questions and Answers 3 weeks, 6 days ago
Hello Ankit,
While performing dml operations on any object in same transaction the mixed dml error comes. Below example shows how to enclose mixed DML operations within System.runAs blocks to avoid the mixed DML error.
@isTest
private class MixedDML {
static testMethod void mixedDMLExample() {
User u;
Account a;
User thisUser = [SELECT Id FROM…[Read more]Archit replied to the topic Asynchronous and synchronous in the forum Salesforce Questions and Answers 3 weeks, 6 days ago
Asynchronous vs. Synchronous Execution
The difference between synchronous and asynchronous execution may seem a bit confusing at first.
- Program execution in most high-level languages is usually very straightforward. Your program starts at the first line of source code and each line of code executed sequentially thereafter. Easy…
Archit replied to the topic What is the role of Scope parameter in Salesforce Batch Apex in the forum Salesforce Questions and Answers 3 weeks, 6 days ago
Hello Ankit,
In short we can say Scope will return the List of record based on your start method in batch class.
Thanks!
Archit replied to the topic How is schedule apex different from batch apex? in the forum Salesforce Questions and Answers 3 weeks, 6 days ago
Hello Ankit,
Scheduling apex:
To execute any class at specific time we use scheduling apex.
Batch Apex:
It divides the whole process in batches (each batch handles 200 records at a time).
To handle large number of data we have to batch apex.
Also used for overcome the governing limits.
Archit replied to the topic schedule the batch class in the forum Salesforce Questions and Answers 3 weeks, 6 days ago
I usually include a few helper methods in any Schedulable class that needs to run at a given time as determined by Apex logic that’s more complex than a simple cron expression. You can then call Database.executeBatch() from your Schedulable class’s execute method:
public class Schedule_SomethingAwesome implements Schedulable {public static final…[Read more]
Archit replied to the topic Can we use mixed sobjects dml in one transaction? in the forum Salesforce Questions and Answers 3 weeks, 6 days ago
Hello Ankit,
No, You can’t use the following sObjects with other sObjects when performing DML operations in the same transaction.
Thanks!
Archit replied to the topic URL Not hitting endpoint in SOAP Callout in the forum Salesforce Questions and Answers 4 weeks ago
Hello Ankit,
I think you should enter the remote URL in remote settings under the setup menu in Salesforce org. Once the URL will be there you can be easily authorise the URL.
Thanks!
Archit replied to the topic How to subscribe to an observable in Angular? in the forum Salesforce Questions and Answers 4 weeks ago
Hello Amresh,
If you start using Angular you will probably encounter observables when setting up your HTTP requests. So let’s start there.In Angular we can subscribe to an observable in two ways:
- We subscribe to an observable in our template using the async pipe.
- We subscribe to the observable ourselves using the actual subscribe() method
Thanks!
Archit replied to the topic How to create dependency injection in component using by Angular? in the forum Salesforce Questions and Answers 4 weeks ago
Dependency Injection is a powerful pattern for managing code dependencies. This cookbook explores many of the features of Dependency Injection (DI) in Angular.
When Angular creates the AppComponent, the dependency injection framework creates an instance of the LoggerService and starts to create the UserContextService. The UserContextService needs…[Read more]
Archit replied to the topic How to build example of raising an event from a nested Salesforce component in Angular2? in the forum Salesforce Questions and Answers 4 weeks ago
To use the Component we declare it inside a template and use a custom attribute on the element itself.
const app = {
template: `
<div>
My Counter:
<counter
count=”$ctrl.count”
on-update=”$ctrl.countUpdated($event);”></counter>
</div>
`,
controller() {
this.count = 2;
this.countUpdated = (event) => {
this.count =…[Read more]Archit replied to the topic How to pass data to a Nested component in Salesforce? in the forum Salesforce Questions and Answers 4 weeks ago
The nested component exposes a property it can use to receive input from its container using the @Input decorator.
For the below code nested component is ready to receive input from it’s parent component.
@Component({
selector: ‘child-selector’,
template: ‘child.component.html’
})
export class ChildComponent {
@Input() title:string;
}In the…[Read more]
- Load More