Parul
IndividualForum Replies Created
-
There are lots of API testing is available, the more tools are available in the market.
Some of them used in Salesforce:
1. Postman is a rest client that started off as a Chrome browser plugin but recently came out with native versions for both Mac and Windows.
At a high level, you can use it to send a post request to your web server and it gives you the response back. It allows you to set up all the headers and cookies your API expects, and then check the response when it comes back.
2.SoapUI
SoapUI is a headless functional testing tool from SmartBear software. It comes in two flavors: Free open source version and Pro Version. Since the free version is open-source, you can actually gain access to the full source code and modify as needed.3.Mockbin
Mockbin was recommended by Augusto Marietti. Mockbin allows you to generate custom endpoints to test, mock, and track HTTP requests & responses between libraries, sockets, and APIs.Thanks
-
Parul
MemberSeptember 10, 2018 at 6:45 pm in reply to: Describe your understanding of RESTful web service?RESTful web services are built to work best on the Web. Representational State Transfer (REST) is an architectural style that specifies constraints, such as the uniform interface, that if applied to a web service induce desirable properties, such as performance, scalability, and modifiability, that enable services to work best on the Web. In the REST architectural style, data and functionality are considered resources and are accessed using Uniform Resource Identifiers (URIs), typically links on the Web. The resources are acted upon by using a set of simple, well-defined operations. The REST architectural style constrains an architecture to a client/server architecture and is designed to use a stateless communication protocol, typically HTTP. In the REST architecture style, clients and servers exchange representations of resources by using a standardized interface and protocol.
Features of RESTful Services:
- Representations
Messages
URIs
Uniform interface
Stateless
Links between resources
Caching
Thanks
- Representations
-
Hi
Apex managed sharing allows developers to programmatically share custom objects. When you use Apex managed sharing to share the custom object, only users with the “Modify All Data” permission can add or change the sharing on the custom object’s record, and the sharing access is maintained across record owner changes.
Apex Manager sharing can be enabled on the object that is having private and public read-only access.
Note:
1. Apex Managed Sharing can not be enabled on public read-write objects
2. Each custom object is having its own sharing table with __share name if the object sharing is private or public read-only
3. Apex sharing reasons and Apex managed sharing recalculation are only available for custom objects.
4. Objects on the detail side of a master-detail relationship do not have an associated sharing object. The detail record’s access is determined by the master’s sharing object and the relationship’s sharing settingThanks
-
Parul
MemberSeptember 10, 2018 at 6:26 pm in reply to: System.Query Exception: List has no rows for assignment to s-object?Hi
It means your SOQL didn't return any results. You can wrap it in a try/catch statement to handle this gracefully.
This error occurs when query doesn't return any rows.
For e.g.:- Account a = [select id, name from Account where name = 'test'];
Instead of using this we should use like that:-
List<Account> lstAccount = [select id, name from Account where name = 'test'];
if (lstAccount.size() > 0)
{
Account a = lstAccount.get(0);
}Thanks
-
Parul
MemberSeptember 10, 2018 at 6:17 pm in reply to: What is MIXED-DML-OPERATION error and how to avoid?Hi
If we perform DML operation on standard/custom object and global objects(User, UserRole, Group, GroupMember, Permission Set, etc...) in same transaction this error will come.
To avoid this error, we should perform DML operation on standard/custom object records in a different transaction.
In general all the apex classes and apex triggers execute synchronously (execute immediately).
If we perform DML operation on standard/custom object records asynchronously (execute in future context), we can avoid MIXED-DML-OPERATION error.
Thanks
-
Parul
MemberSeptember 10, 2018 at 1:59 pm in reply to: When “Hard Delete” button will be enabled in apex data loader?Hi,
If you want to give permission to sys admin to enable the functionality of "Bulk API Hard Delete " and you need to do this when you are integrating or deleting a large data set in Salesforce, you make exceed the permitted number of API calls. Use these instructions to access Salesforce Data without exceeding API limits.
Thanks.
-
Hi,
Salesforce1: Connect all your apps. Connect all your devices. Connect all your customer data. All with one Customer Platform designed for the new hyper-connected world of customers. With new APIs, mobile tools, and more, it’s everything you need to sell, service, and market like never before.
Salesforce1 is a new platform, complete with a host of new APIs and mobile UI tools.To oversimplify it, it's taking the Chatter mobile app, which up until this point has just been an app running on closed source code and building it into a platform, while really blowing out its capabilities.
To do so, follow these quick instructions:
- Navigate to Setup > Administer > Mobile Administration > Salesforce1
- Make sure Salesforce1 is enabled and click Save
- Navigate to Setup > Build > Develop > Pages and select a Visualforce Page
- Click "Edit", check the "Available for Salesforce mobile apps" checkbox; then, click Save
- Navigate to Setup > Build > Create > Tabs
- Create a new Visualforce Tab for your Page
- Check the "Mobile Ready" checkbox and click Save
- Navigate to Setup > Administer > Mobile Administration > Mobile Navigation
- Add your new Visualforce Tab to the Salesforce1 Navigation Menu
- Go to [your-salesforce-instance-domain].salesforce.com/one/one.app to test (I'd recommend using Chrome, because I couldn't get it to work properly in Internet Explorer or Firefox).
Thanks.
-
Hi
The Environment Hub lets you connect, create, view, and log in to Salesforce orgs from one location. If your company has multiple environments for development, testing, and trials, the Environment Hub lets you streamline your approach to org management.
Developer Edition : It's a free edition basically provided for the development and deployment on Force.com typically takes place in an environment or org, which provides a number of features and services for applications within that environment. There is one type of environments in particular that deserve to be called out.
Partner Edition : Build a Force.com application using a Single or Multi-Org Development Strategy,Perform Robust Testing against various Sandbox and Production Editions ,Provide your Sales Team with adequate orgs for customer demonstrations.Thanks.
-
Parul
MemberSeptember 10, 2018 at 1:37 pm in reply to: What are the different AJAX action tags in Salesforce?These are the AJAX action tags that support the calling of action and refresh the field only not the entire Visualforce page.
1. <apex:actionFunction> - Provides support for invoking controller action methods directly from JavaScript code using an AJAX request. An component must be a child of an component.2. <apex:actionPollar> - A timer that sends an AJAX update request to the server according to a time interval that you specify. Update request can then result in a full or partial page update. You should avoid using this component with enhanced lists.
3.<apex:actionStatus> - A component that displays the status of an AJAX update request. An AJAX request can either be in progress or complete
Thanks.
-
Parul
MemberSeptember 10, 2018 at 12:50 pm in reply to: Can we create a field in custom object with the master-detail relationship in Salesforce?Hi
Master-detail relationship is like parent-child relationship where, master represents a parent and detail represents a child in which master object controls some behaviors of the detail object. Like whenever a Master object record is deleted then the detail object related to it also gets deleted.
So, we can't create a Master-detail relationship on existing records. To do that, we have to create a lookup relationship for that record and then convert it into master detail.
To convert a lookup relationship to a master detail the existing record should consist of valid lookup field values.
Thanks.
-
Parul
MemberSeptember 10, 2018 at 12:48 pm in reply to: What are fine grained and coarse grained components in Salesforce?Hi
Coarse-grained systems consist of fewer, larger components than fine-grained systems; a coarse-grained description of a system regards large subcomponents while a fine-grained description regards smaller components of which the larger ones are composed.
Fine-grained - smaller components of which the larger ones are composed, lowerlevel service
Thanks.
-
Parul
MemberSeptember 10, 2018 at 12:46 pm in reply to: What is the use of retainAll(ele) in Salesforce?Hi
This will keep only the value that is existing in the list or set.list<string>Names= new list<string>{'Dell','IBM','Apple'};
set<string>Orglist= new set<string>();
Orglist.add('Dell');
Orglist.add('Sony');
Orglist.add('Acer');
Orglist.add('HP');
boolean result;
result=Orglist.retainall(names);
system.debug(result);//TrueThanks.
-
To set a field value to null, fill out the column corresponding the record and field to be updated with #N/A. The only exception is checkbox where you have to use 0 for unchecked values.'
Login the DataLoader->Settings->Insert Null Values->Ok and then insert the null values.
Thanks.
-
Hi
SOAP API
1)Supports data in the form of XML only 2)Requires WSDL for the integration 3)Use SOAP API in any language that supports Web services.
REST API 1)Supports both XML and JSON format 2)Preferred for mobile and web apps since JSON being Lighter the app runs smoother and faster
You can also use Apex SOAP and REST Web services to expose data from platform or allow an external application to invoke Apex methods.
Thanks.
-
Hello Avnish,
Salesforce Connect maps data tables in external systems to external objects in your org.
Salesforce Connect is a framework that enables you to view, search, and modify data that’s stored outside your Salesforce Org. 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.
Use of use Salesforce Connect :
- You have a large amount of data that you don’t want to copy into your Salesforce org.
- You need small amounts of data at any one time.
- You need real-time access to the latest data.
- You store your data in the cloud or in a back-office system, but want to display or process that data in your Salesforce org.
Thanks.
-
Parul
MemberSeptember 10, 2018 at 11:27 am in reply to: Custom Setting in Salesforce and Their ImportanceHi
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 repeated queries to the database.
Importance of Custom Settings
Apex runs in a multitenant environment, the Apex runtime engine strictly enforces limits to ensure that runaway Apex code or processes don’t monopolize shared resources. If some Apex code exceeds the limit then exception cannot be handled. When we need data we query from object and display, if we query multiple time there is chance of hitting governing limit. So to avoid governing limit we use custom setting. It allows us to store set of data and access it without querying it from apex.Steps to create a custom setting in the Salesforce user interface:
Setup, enter Custom Settings in the Quick Find box, then select Custom Settings.
Thanks.
-
Parul
MemberSeptember 10, 2018 at 7:22 am in reply to: Why there is no before-undelete event in Salesforce Triggers?Hi Sanjana,
There is no before-undelete event in Salesforce Triggers because, an Update or Insert can have a Before functionality as the record exists.
Whereas there is no Record before deleting the Actual record.
Hence only after deleting, we can have the Undelete event, whereas every record merely exists before deleting.Thanks.
-
Parul
MemberSeptember 10, 2018 at 6:56 am in reply to: What is the difference between AJAX and REST in Salesforce?Hi Prachi,
Asynchronous Javascript and XML". Ajax loosely defines a set of technologies to help make web applications present a richer user experience. Data updating and refreshing of the screen is done asynchronously using javascript and xml (or json or just a normal http post).
"Representational State Transfer". Applications using REST principles have a Url structure and a request/response pattern that revolve around the use of resources. In a pure model, the HTTP Verbs Get, Post, Put and Delete are used to retrieve, create, update and delete resources respectively. Put and Delete are often not used, leaving Get and Post to map to select (GET) and create, update and delete (POST)
Thanks.
-
Parul
MemberSeptember 10, 2018 at 6:55 am in reply to: Why can there only be one trigger for each Salesforce Object?Hi Prachi,
Triggers operate in collections of 200 records.
- If you update one record in a DML statement, the trigger will have that one record in its collection.
- If you update 100 records in a DML statement, the trigger will have 100 records in its collection.
- If you update 200 records in a DML statement, the trigger will have 200 records in its collection.
- If you update 1000 records in a DML statement, the platform will chunk the 1000 records into groups of 200. Your trigger will run 5 times, with 200 records in each invocation.
Triggers must be written to handle records in collections of 200. Your use case currently might only be that one record will be updated and one HTTP Request will be made to an external system but there are plenty of ways that more than one Account can be updated at a time and your code needs to handle those scenarios gracefully.
Thanks.
-
Parul
MemberSeptember 10, 2018 at 6:52 am in reply to: How to add lightning component in Salesforce visualforce page?Hi Prachi,
In winter ‘16 a new and powerful feature was introduced which allow you to implement your lightning component in visualforce pages.
There are three steps to add Lightning components to a Visualforce page.
Add the <apex:includeLightning /> component to your Visualforce page.
Reference a Lightning app that declares your component dependencies with $Lightning.use().
Write a function that creates the component on the visualforce page with $Lightning.createComponent().Thanks.
-
Parul
MemberSeptember 10, 2018 at 6:49 am in reply to: Why should we go for Salesforce Lightning Component?Hi Prachi,
Visualforce and Lightning both offer ways to design and create custom interfaces for Salesforce.
Visualforce was designed to follow a Page-Centric model. This means that the intent of Visualforce was to create something that was your full page interface with Salesforce. When the user needed to perform some kind of operation, like Save a record, it would send that request to the Salesforce servers and then reload the entire page with the new state of the UI. All backend processing is done with Apex Code on the Server-Side. You have the option to inject JavaScript into the mix to handle some of the Client-Side processing, but it isn't the default interaction methodology.
Lightning was designed to follow an App-Centric model. This essentially means that it has been designed to create self-contained components that build on top of each other.
"To put this in perspective, with Visualforce you would send an interaction to the Salesforce server and then update the entire page". However, with Lightning, you can send an interaction to the Salesforce servers and then update a specific component.
This has huge implications for performance and for the fluid motion of a UI.
This allows us to design UIs that are inherently responsive to the user interactions, meaning we update the things the user is interacting with and everything else remains untouched.
Thanks.
-
Parul
MemberSeptember 10, 2018 at 6:44 am in reply to: How to activate List and Hierarchy custom settings in Salesforce?Hi Prachi,
Hierarchy settings allow you to personalize your application for different profiles and/or users. The interface has baked-in logic that drills down into the org, profile, and user level (based upon the current user) and returns the most specific or lowest value in the hierarchy. I've found hierarchy custom settings to be extremely useful for those "one off" occasions.
As List custom settings, when you create a new hierarchy custom setting, the platform creates a custom object in the background for you (notice the API Name field). You then add additional fields to the custom setting in the same manner that you do for custom objects (you are limited to checkbox, currency, date, date/time, email, number, percent, phone, text, text area and URL fields).
Steps to activate list custom settings and hierarchy custom settings:
Go to Setup->Data Management->Schema Settings
and then Enable Manage List Custom Settings Type
Thanks.
-
Parul
MemberSeptember 10, 2018 at 6:40 am in reply to: What is the difference between a territory and queue in Salesforce?Hi Prachi,
Territory: Territory—Public Group that includes all of the User records in an organization that has the territory feature enabled.
A territory can have inherited account assignment rules, meaning that the rules were created somewhere higher in the territory hierarchy and consequently also impact the given territory.
A territory can have locally defined account assignment rules, meaning that the rule was created at the given territory.Territory is an account sharing system that grants access to accounts based on the characteristics of the accounts.
Queues: Public Group that includes all of the User records that are members of a queue.
Queues are typically used when you want to assign a record to a bunch of users.With the help of queues you can assign a record to multiple users (using queues) so that any member of the queue can work on the record. It also allows the users to have there seperate views.
Thanks.
-
Parul
MemberSeptember 9, 2018 at 6:59 pm in reply to: Can you reorder the steps of an Approval Process in Salesforce?Hi Shradha
Currently, it's not possible to re-order Approval Process steps, You cannot reorder approval steps once they are created, but you can set the step number when creating a new step .
Thanks.
-
Parul
MemberSeptember 9, 2018 at 6:54 pm in reply to: What is the return type of Future Method in Salesforce?Hello Sanjana,
The return type of Future Method can only be a void type, that's why Future methods will run in the future. You don't want your synchronous code waiting an unknown period of time for an asynchronous bit of code to finish working.
The whole point is you want to clearly separate what happens now from what happens in the future.
By only returning void, you can't have code that waits for a result.
Thanks.