Parul
IndividualForum Replies Created
-
Parul
MemberSeptember 15, 2018 at 7:21 am in reply to: How do I include external JavaScript libraries in Salesforce lightning components?I include external JavaScript libraries in Salesforce lightning components by following these steps:
1. Load your external java script library in static resource. Goto >> SetUp>> Custom Code >> Static Resources
2. Use <ltng:require> tag to load the Java Script library in lightnig component as follows.
Thanks.
-
Parul
MemberSeptember 15, 2018 at 7:17 am in reply to: How to integrate one SFDC org to another SFDC using Rest API?First we talk what we have to do in the in the Destination org:
Step 1. Create a Connected app in Destination org giving the callback url with the details as mentioned in the image below.
Step 2. Create a Rest Webservice with @httpPost & @httpGet verb, though it’s not required in our case.
Now is the time to configure the Source org:
Step 1. Create Remote site in Source like in my case I created the below one.
Step 2. Create a class for Rest Callout in the Source org.
Thanks
-
OAuth (Open Authorization) is an open protocol that provides secure API authorization from applications in a simple and standardized way. OAuth can authorize access to resources without revealing user credentials to apps. Apps that use OAuth can also directly authenticate and access Salesforce resources without a user’s presence.
The OAuth 2.0 authorization framework. APIs, such as the Salesforce REST and SOAP web service APIs or the Chatter REST API, can use OAuth 2.0 to authorize access to Salesforce resources.
Thanks
-
Parul
MemberSeptember 15, 2018 at 6:45 am in reply to: Why Salesforce Future Methods returns only void type?Because it is asynchronous process.. For example if you run future method from synchronous process then you can't wait to complete asynchronous process and get that value from asynchronous process in trigger context.
Thanks
-
Parul
MemberSeptember 15, 2018 at 5:36 am in reply to: What purpose does Junction objects serve in salesforce?Junction objects are used to create many to many relationships between objects. It is a custom object which can link one instance of a record to many children, and each child can equally be linked too. Junction Object have two master-detail relationships to two different record types.
Example: If you take the Recruiting application example, you can see that a Position can be linked to many Candidates, and a Candidate can apply for different Positions. To create this data model you need a third object "Job Application" that links the 2.
Thanks
-
Parul
MemberSeptember 15, 2018 at 5:34 am in reply to: What are the differences between the Import Wizard and Apex Data Loader in Salesforce?The import wizard can import various records (leads, contacts, etc) up to 50K at a time, but can only import records.
The dataloader can import, export, delete, insert, and upsert records/updated information and can exceed that.
Thanks
-
Parul
MemberSeptember 15, 2018 at 5:29 am in reply to: What is Command Line DataLoader in Salesforce?Data Loader is great native tool provide by the Salesforce to insert, upsert, update, export and delete data. Standard Data Loader wizard needs interaction however there are many scenarios where we need to perform these data loading tasks repeatedly like every night 1:00 AM (Nightly Services) or something. So, for these situations we can use standard data loader tool from Command line.
Thanks
-
Parul
MemberSeptember 15, 2018 at 5:25 am in reply to: What are the advantages of web services in Salesforce?A webservice provides a standard interface that allows an application to interface with another application in order to exchange or synchronize data, or perform remote action calls on a remote application.
Webserivces also execute faster than screen-scraping, as the "chrome" for the data is omitted when using a webservice as opposed to screen-scraping or using a web browser.
Web services use the standardized web service protocol stack for communication which consists of 4 layers namely, Service Transport, XML messaging, Service description and Service discovery.
It has the feature of the low cost of communication because of the usage of SOAP (Simple Object Access Protocol) over HTTP protocol.Thanks
-
It contains code designed to help you begin using Apex API quickly with JAX-WS Reference Implementation i.e doing SOAP communication with Java easily.
Thanks
-
Parul
MemberSeptember 15, 2018 at 5:14 am in reply to: What are the primary security issues with web services in Salesforce?Confidentiality, Authentication, Network Security are the primary security issues with web services.
thanks
-
Parul
MemberSeptember 15, 2018 at 5:09 am in reply to: Name important annotations used in JAX-RS API in Salesforce@Path: used to get the URI of a web service by scanning the Path annotation value.
@GET, @PUT, @POST, @DELETE, and @HEAD: used to specify the HTTP request type for a method.
@Produces, @Consumes: used to specify the request and response types.
@PathParam: used to bind the method parameter to path value by parsing it.Thanks.
-
Parul
MemberSeptember 15, 2018 at 5:08 am in reply to: What is the difference between JSON and JSONP in Salesforce?JSONP is a simple way to overcome browser restrictions when sending JSON responses from different domains from the client. But the practical implementation of the approach involves subtle differences that are often not explained clearly. Here is a simple tutorial that shows JSON and JSONP side by side.
JSON
{"name":"stackoverflow","id":5}JSONP
func({"name":"stackoverflow","id":5});Thanks
-
Parul
MemberSeptember 15, 2018 at 5:06 am in reply to: When a BatchApexworker record is created in batch apex in salesforce?BatchApexworker is an picklist value in AsysncApexJob Object . When ever you will execute an Batch apex in salesforce it will create two record in AyncApexJob Object with two different JobType (BatchApex/BatchApexWorker) .
The record with jobType BatchApexWorker will contain the last processed recordid and ParentJobId as the reocrd with Jobtype BatchApex .Thanks
-
Parul
MemberSeptember 15, 2018 at 5:04 am in reply to: What is AsyncApexJob object in batch apex in Salesforce?AsyncApexJob object in batch apex represents an individual Apex sharing recalculation job, a batch Apex job, a method with the future annotation.
Thanks
-
Parul
MemberSeptember 15, 2018 at 4:58 am in reply to: How to implement callout integration in Salesforce?An Apex callout lets you tightly integrate Apex code with an external service by making a call to an external Web service or sending a HTTP request from Apex code and then receiving the response. Apex provides integration with Web services that utilize SOAP and WSDL, or HTTP services (RESTful services).
Thanks
-
Parul
MemberSeptember 15, 2018 at 4:50 am in reply to: What are the advantages of statelessness in RESTful Webservices in Salesforce?Following are the benefits of statelessness in RESTful Web Services −
Web services can treat each method request independently.
Web services need not maintain the client's previous interactions. It simplifies the application design.
As HTTP is itself a statelessness protocol, RESTful Web Services work seamlessly with the HTTP protocols.Thanks
-
Parul
MemberSeptember 15, 2018 at 4:45 am in reply to: What is a use case for Salesforce Connect in Salesforce?Salesforce Connect is an exciting new App Cloud integration service that empowers Salesforce users to access and manage data in external apps, whether on-premise or cloud, directly from Salesforce.
Thanks
-
Parul
MemberSeptember 15, 2018 at 4:42 am in reply to: What are the various considerations while implementing triggers in Salesforce?The various considerations while implementing triggers in Salesforce:
- Upsert trigger fires on 4 different events :- before(insert, update), after (insert, update)
- Merge trigger are fired on both events on delete
- Field history is updated after the trigger has successfully finished processing data.
- Any callout should be asynchronous so that trigger does not have to wait for the response.
- A trigger cannot have a static keyword in its code.
- If a trigger completes successfully the changes are committed to the database and if it fails the transaction is rolled back.
Thanks
-
Parul
MemberSeptember 15, 2018 at 4:32 am in reply to: What is a resource in Restful web services in Salesforce?The @RestResource annotation to expose it as a REST resource. Similarly, add annotations to your methods to expose them through REST. For example, you can add the @HttpGet annotation to your method to expose it as a REST resource that can be called by an HTTP GET request.
Thanks
-
Parul
MemberSeptember 14, 2018 at 6:02 pm in reply to: Explain Standard and Custom Reports in SalesforceCustom Reports: Admin creates the SalesForce Custom reports for a custom object.
You can add up to 4 layers of objects as long as they have a parent-child relationship
CRT are needed when you have a requirement to report on more objects
Standard report is one created when the object created. And these reports cannot be modified once created.
In standard report whenever you create a new field, that field will automatically be added to the Standard Report / be available in the Standard Report. Also, when you're selecting the report types, the Standard Reports will give you a little chart visual preview.
Thanks
-
Workflow alerts allow you to build notifications according to your action in salesforce. When a particular workflow rule is triggered, a template email will be sent to the relevant person or people in the end user organization.
Remember that you can associate a maximum of 5 alerts to each action (Instant and Time-Based Actions).
Workflow is the automation of the following types of actions based on your organization’s processes: Tasks – Assign a new task to a user, role, or record owner.
Email Alerts – Send an email to one or more recipients you specify.
Field Updates – Update the value of a field on a record.Thanks
-
Parul
MemberSeptember 14, 2018 at 4:47 pm in reply to: What are some points to remember regarding Static Keyword in apex.Hi
1.static key word can be used with cariables and methods but not with classes.
2.Static memebrs or blocks loads before class loaded.
3.Static members main purpose is 'sharing a copy of value by all the instances'.
4.static methods we use in test classes because you can directly access static methods.
ex;
class Test{
public static a=10;
public static void method1(){
}
Thanks
-
Parul
MemberSeptember 14, 2018 at 1:47 pm in reply to: What is the difference between a Top-Down and Bottom-Up approach in SOAP Web Services?In a top-down approach, we create the WSDL first and then generate the web service artifact using the tool available in JDK.
Example scenarios:
- Users will be responsible for developing their own clients using different frameworks, based on a published WSDL.
- By creating the WSDL file first you will ultimately have more control over the web service, and can eliminate interoperability issues that may arise when creating a web service using the bottom-up method.
When creating a Web service using a bottom-up approach, first you write the java classes for the web service and then create the WSDL file and publish the web service.
Example scenarios:
- Situations which need quick and faster completion may prefer Java approach
- Java first approach is often the fastest and easiest approach.
Thanks.
-
Hi,
Below some limitations are mentioned :
Each savepoint you set counts against the Governor limit for DML statements.
If you insert the ID on an SObject after setting the savepoint, the ID will not be cleared after a rollback.
Static variables are not reverted during a rollback. If you run the trigger again, the static variables will retain the values from the previous run.Thanks.
-
Parul
MemberSeptember 14, 2018 at 1:31 pm in reply to: What are expressions used in pages to bind in controllers?Hi
With the help of methods, we can bind in controllers inside VisualForce pages.
Values are returned by ‘Getter’ to VisualForce Page from the controller.
Values are passed by ‘Setter’ from VisualForce page to controller.
Redirect to another page with ‘action’.thanks.