Avnish Yadav
IndividualForum Replies Created
-
Avnish Yadav
MemberJuly 20, 2018 at 6:56 am in reply to: What are changeset, eclipse & ant in Salesforce?Hello Chanchal,
Comparing Change Sets, Eclipse Deployment and Ant:-
- Eclipse and Ant will not keep a track of the Classes and Pages which were deployed earlier. On the Other hand, if we use Change Sets then all old deployment will be tracked.
- A change set can only be moved between a live site and its sandbox. Eclipse and Ant can be used to move between any orgs like live site and developer org.
- Change Sets allow the ability to be cloned whereas Eclipse doesn't .
Thanks.
-
Avnish Yadav
MemberJuly 19, 2018 at 12:22 pm in reply to: How do we call the inner class from the parent class in Salesforce?Hello Anurag,
You can call inner inside your outer class by making object of inner class (not for static methods or static variables).
Example:
public class OuterClass{
// do some task
InnerClass obj = new InnerClass();
public class InnerClass {
//do some task
}
}
Thanks.
-
Avnish Yadav
MemberJuly 19, 2018 at 12:05 pm in reply to: What is sandbox refreshing in Salesforce?Hi Shradha,
Sandbox Refreshing - Refreshing a sandbox updates the sandbox’s metadata from its source org. If the sandbox is a clone or if it uses a sandbox template, the refresh process updates the org’s data in addition to its metadata.
Thanks.
-
Avnish Yadav
MemberJuly 19, 2018 at 12:02 pm in reply to: What is source code versioning in Salesforce?Hi Shradha,
Source Code Versioning or version control is a software tool that manages the team to change in code over time.
Importance of version control:-
- No need of making the backup, because it will do automatically.
- Different people can work on the projects from different locations.
Thanks.
-
Avnish Yadav
MemberJuly 19, 2018 at 9:27 am in reply to: How to perform soap callout in Salesforce using https?Hello shraddha,
You can hand code your own manual XML POST and save it to in string and callout using HttpRequest. It will be on you to build up the required XML and then parse the response.
Here is Example:-
String s='<soapenv:Envelope xmlns:soapenv="<a target="_blank" href="http://schemas.xmlsoap.org/soap/envelope/"" rel="nofollow">http://schemas.xmlsoap.org/soap/envelope/"</a> ><soapenv:Header>headers here,refer WSDL</soapenv:Header><soapenv:Body> request body.Refer WSDL</soapenv:Body></soapenv:Envelope>';
HttpRequest req = new HttpRequest();
req.setEndpoint('the URL from service provider');
req.setMethod('POST');
req.setBody(s);
req.setHeader('Content-Type', 'text/xml');
req.setHeader('SOAPAction', '""');
Http http = new Http();
HTTPResponse res = http.send(req);
System.debug('Saraag-Here is your response:'+res.getBody());Thanks.
-
Avnish Yadav
MemberJuly 18, 2018 at 12:31 pm in reply to: What is Subscriber key in Salesforce marketing cloud?Hello Prachi,
A subscriber key is a text field that contains a value that uniquely identifies a subscriber in your Marketing Cloud account. Marketing Cloud Connect uses the subscriber key to identify the Sales or Service Cloud record associated with the tracking data returned from the Marketing Cloud.
Thanks.
-
Avnish Yadav
MemberJuly 18, 2018 at 10:19 am in reply to: How can I get input from user and perform the task based on that in Salesforce?Hello Anurag,
Yes, you can perform the task-based on input. Let me describe you-
- Use a Visualforce Page to take input.
- Pass that input to apex class.
- Perform the task based on input in apex class.
Thanks.
-
Hi,
We use Lightning Data Services to retrieve a record data without writing a single piece of Apex Server side code. We need to use the new force:recordData component to achieve this.
Using this component, we can load, create, edit, or delete a record in your component without requiring Apex code. Lightning Data Service handles sharing rules and field-level security for you. In addition to not needing Apex, Lightning Data Service improves performance and user interface consistency.Thanks.
-
Avnish Yadav
MemberJuly 18, 2018 at 9:40 am in reply to: Why should we use Salesforce Marketing Cloud when we can send emails using workflow and process builder?Hello,
We use marketing cloud because of following advantages:-
- Flexible subscription model
- Email, mobile, and web marketing
- Social media marketing
- Scalable advertising
- Business-to-business (B2B) marketing automation
Thanks.
-
Hello Madhulika,
We use Lightning Out to run Lightning components apps outside of Salesforce servers.
Thanks.
-
Hello Madhulika,
List Class is a collection type class in Salesforce, which contains all the list method and constructors.
Thanks.
-
Avnish Yadav
MemberJuly 17, 2018 at 9:31 am in reply to: How do we include external JavaScript libraries in Salesforce Lightning Component?Hello Anjali,
You can use external JavaScript library, by uploading script file as static resources and include in component by this statement
<ltng:require scripts="{!$Resource.***resourceName***}" afterScriptsLoaded="{!c.afterScriptsLoaded}" />
Thanks.
-
Avnish Yadav
MemberJuly 17, 2018 at 9:23 am in reply to: What is the difference between aura and apex framework in Salesforce?Hello Anurag,
You are asking, the difference between, aura framework (i.e. lightning component) and apex framework (i.e. visualforce component). Visualforce components are page-centric and most of the work is done on the server while lightning is designed from the component up, rather than having the concept of a page as its fundamental unit. Lightning Components are client-side centric, which makes them more dynamic and mobile-friendly. The lightning component uses JavaScript as the client-side scripting language.
Thanks.
-
Avnish Yadav
MemberJuly 17, 2018 at 5:50 am in reply to: How do I include external JavaScript libraries in Salesforce lightning components?Hello Chanchal,
You want to include external javascript library, i suggest you to go with static resources , upload your javascript resources and use in your components.
Thanks
-
Avnish Yadav
MemberJuly 13, 2018 at 11:36 am in reply to: Why do we only use the Linux Tarball that does not include JAVA in SOAP API?Hello Anurag,
As Java JRE is already installed in our systems, that's why, we are installing the version Linux Tarball that does not includes Java.
Thanks.
-
Avnish Yadav
MemberJuly 12, 2018 at 1:17 pm in reply to: Which parsing method is better - Deserialisation or JSON Parser? And Why?Hello Shradha,
I would say JSON Deserialization is better because it's an automatic parser while in JSON Parser method, you need to parse JSON manually.
Thanks.
-
Avnish Yadav
MemberJuly 12, 2018 at 9:38 am in reply to: What is the use of Savepoint in Salesforce Apex?Hello Sanjana,
Database.savepoint is a method which is used to define a point which can be roll back to. Suppose you have written long code which contains many more DML statement, at the some point you will want this DML statement should not be executed, you may need to modify your code, at that time you will have to return that point, savepoint will identifies that point , Rollback will restore the database to that point(savepoint).
If any error occurs during a transaction, that contains many statements, the application will roll back to the most recent savepoint and the entire transaction will not be aborted.
Thanks.
-
Avnish Yadav
MemberJuly 10, 2018 at 6:15 pm in reply to: What aura:method does in Salesforce Lightning Component?Hello Prachi,
The aura: method which allows you to directly call a method in a component’s client-side controller instead of firing and handling a component event. It passes value from the child component to the parent component.
Thanks.
-
Avnish Yadav
MemberJuly 10, 2018 at 2:07 pm in reply to: How can we check API limits already used in any organisation by using REST or SOAP API in Salesforce?Hello Prachi,
For checking API limits already used in your org:-
Go to Setup | Quick Find System Overview and there you will find the API REQUESTS, LAST 24 HOURS.
Thanks.
-
Avnish Yadav
MemberJuly 10, 2018 at 2:03 pm in reply to: How to integrate one SFDC org to another SFDC using Rest API?Hello Chanchal,
You want to integrate(means Callout) from one Salesforce org(Source org) to another Salesforce org(Destination org).
Here is simple steps to complete the task:-
- Create a new Remote Setting in Source org.
- Create a Connected App in Destination org with unique callback URL.
- Create a apex class in Source org which take inputs of Connected app (i.e. Consumer Key, Consumer Secret, Callback URL, Username and Password) of Destination org. This give you access token for Destination call.
- Create an Rest Resource apex class in Destination org which return some data(for doGet Call) or accept some data(for doPost Call).
- Create an another class or function in Source Org to retrieve the call with endpoint URL.
- That's all.
Note - Use Debug to find error.
Thanks.
-
Chatter is an enterprise collaboration platform from Salesforce, a cloud-based customer relationship management (CRM) vendor.
Chatter in salesforce allows you to collaborate the people with each other in your organization. You can connect with your coworkers and you can share information securely in real time.
For more information, watch this demo video:-
-
Avnish Yadav
MemberJuly 5, 2018 at 5:39 am in reply to: Why we avoid DML query in "before" trigger in Salesforce?Hello Chanchal,
In Before trigger, the records are not commited in database so we can skip the DML as whatever value we give to records will naturally assigned to database.
Thanks.
-
Avnish Yadav
MemberJuly 5, 2018 at 5:31 am in reply to: What is recursion problem in Salesforce Trigger? How to troubleshoot it?Hello Chanchal,
Recursion in trigger means we are calling same method infinite times, this could happen when we have event 'update' in Account(let say) and in last we using DML query which Update in Account, therefore trigger undergoes to recursion.
Avoiding a recrusion problem in trigger is easy. There are two methods we can use it to avoid recursion:-
- Create an Apex class with 'static' variable of boolean type and changes its value once update is done.
- Create an Apex class with 'static' variable of 'Set' type which store unique IDs of update records enter and check in trigger that if IDs exist in Set then don't do updates.
Thanks.
-
Avnish Yadav
MemberJune 28, 2018 at 10:51 am in reply to: Can there be more than one constructor in a Salesforce Apex Class?Yes, a class can have multiple constructors, as long as their parameters are not the same. We can say that we can implement constructor overloading.
-
Avnish Yadav
MemberJune 28, 2018 at 10:21 am in reply to: In Salesforce, what is Quick Fix in development mode?With development mode enabled, you can view and edit the content of a page by navigating to the URL of the page. All Visualforce pages display with the development mode footer at the bottom of the browser.
Enable Development Mode:-
1. Go to My Settings.
2. Go to Personal --> Advanced User Details.
3. Enable Development Mode Check box.
Thanks.