Prachi Gupta
IndividualForum Replies Created
-
Prachi
MemberAugust 9, 2018 at 5:11 am in reply to: How to decide which Salesforce automation tool to use?Hello Chanchal,
Step 1: Understand your project requirements thoroughly
Step 2: Consider your existing test automation tool as a benchmark
Step 3: Identify the key criteria suitable for a project
- Ease of Developing and Maintaining the Scripts
- Ease of Test Execution for Non-Technical user
- Support to Web, Desktop & Mobile application
- Intuitive Test Report
- Cross Browser Testing
Step 4: Leverage Pugh Matrix Technique for Analysis
-
Prachi
MemberAugust 8, 2018 at 7:25 am in reply to: What is a dot(.)io file in Salesforce DataLoader?Hello Anurag,
With dataloader.io free you import, export and delete data from Salesforce with a simple and intuitive UI. Dataloder.io is designed for all Salesforce users and all Salesforce editions, from Group to Professional, everyone can use Dataloader.io. You can also schedule tasks and pull/push information into remote directories like FTP, Dropbox and Box and get email notifications. Dataloader.io is a web-based application so there's no need to download anything and works on all major browsers.
Thanks.
-
Prachi
MemberAugust 8, 2018 at 7:20 am in reply to: How to create a Chatter post from Apex in Salesforce?Hello Avnish,
The following code may help you:
//Adding a Text post
FeedItem post = new FeedItem();
post.ParentId = oId; //eg. Opportunity id, custom object id..
post.Body = 'Enter post text here';
insert post;//Adding a Link post
FeedItem post = new FeedItem();
post.ParentId = oId; // Record Id eg. Opportunity id, custom object id..
post.Body = 'Enter post text here';
post.LinkUrl = 'http://www.infallibletechie.com';
insert post;//Adding a Content post
FeedItem post = new FeedItem();
post.ParentId = oId; // Record Id eg. Opportunity id, custom object id..
post.Body = 'Enter post text here';
post.ContentData = base64EncodedFileData;
post.ContentFileName = 'infallible.pdf';
insert post;Thanks.
-
Prachi
MemberAugust 8, 2018 at 7:13 am in reply to: Can we call a Future method from Salesforce batch class?Hello Avnish,
Salesforce doesn't allow a future method to be called from another future method or a batch job.
While @Future cannot be called from a batch class, a webservice can. A webservice can also call an @future method. So have your batch class call an apex webservice that in turn calls your @future method.
Thanks.
-
Prachi
MemberAugust 8, 2018 at 7:06 am in reply to: What is matrix of variable availability to trigger events in salesforce?Hello Shradha,
_____________________Trigger.new Trigger.newMap Trigger.Old Trigger.OldMap
Before Insert Yes No No No
Before Update Yes Yes Yes Yes
Before delete Yes Yes Yes Yes
After Insert Yes Yes No No
After Update Yes Yes Yes Yes
After Delete No No Yes No
After Undelete Yes Yes No No
Thanks.
-
Prachi
MemberAugust 8, 2018 at 6:54 am in reply to: What is database.getQuerylocator in Salesforce?Hello Avnish,
Database.getQueryLocator returns a Query Locator that runs your selected SOQL query returning list that can be iterated over in bathc apex or used for displaying large sets in VF (allowing things such as pagination).
The query locator can return upto 50 million records and should be used in instances where you want to bactha a high volume of data up (pagination or batch apex). The database.query method should be used in instances where you are wanting to do a dynamic runtime SOQL query for your code.
Hope that helps.
Thanks.
-
Prachi
MemberAugust 8, 2018 at 6:51 am in reply to: How can I remove the markers that lies outside the circle boundary in Salesforce?I am not sure if the solution I tried is applicable or not.May be the code below will help.
$(function () {
var oldArr = [];var showNearestLocation = function (distance) {
var longitude = myloc.lng,
latitude = myloc.lat;
var res = leafletKnn(gjLayer).nearest(
[longitude, latitude], 5, distance);diff = oldArr.filter(function (x) { return res.indexOf(x) < 0 });
for (j = 0; j < diff.length; j++) {
map.removeLayer(diff[j].layer);
oldArr.splice(oldArr.indexOf(diff[j]), 1);
}if (distance > 0) {
if (res.length) {
map.setView(res[0].layer.getLatLng(), 12);
for (i = 0; i < res.length; i++) {
map.addLayer(res[i].layer);if ($.inArray(res[i], oldArr) === -1)
oldArr.push(res[i]);
}
}
}}
var slider = document.getElementById('myRange');
var output = document.getElementById('demo');
output.innerHTML = slider.value + scale;slider.oninput = function (val) {
output.innerHTML = this.value + scale;
circle.setRadius(this.value);
showNearestLocation(this.value);
}
});thanks.
-
Prachi
MemberAugust 8, 2018 at 6:42 am in reply to: Can anyone explain what is an outbound message and how it works in Salesforce?Hello Afghan,
Outbound messaging allows you to specify that changes to fields within Salesforce can cause messages with field values to be sent to designated external servers.
Outbound messaging is part of the workflow rule functionality in Salesforce. Workflow rules watch for specific kinds of field changes and trigger automatic Salesforce actions, such as sending email alerts, creating task records, or sending an outbound message.
Outbound messaging uses the notifications() call to send SOAP messages over HTTP(S) to a designated endpoint when triggered by a workflow rule.
After you set up outbound messaging, when a triggering event occurs, a message is sent to the specified endpoint URL. The message contains the fields specified when you created the outbound message. Once the endpoint URL receives the message, it can take the information from the message and process it. To do that, you need to examine the outbound messaging WSDL. This is how it works.
for further information you can go to the link given below:-
I hope this will help.
Thanks.
-
Prachi
MemberAugust 8, 2018 at 6:30 am in reply to: What is the significance of keyset() method of MAP in Salesforce?Hello shradha,
keyset() Returns a set that contains all of the keys in the map.
example:-
Map<String, String> colorCodes = new Map<String, String>();
colorCodes.put('Red', 'FF0000');
colorCodes.put('Blue', '0000A0');Set <String> colorSet = new Set<String>();
colorSet = colorCodes.keySet();The above example will return the list of the keys i.e red and blue.
thanks.
-
Prachi
MemberAugust 8, 2018 at 6:24 am in reply to: How to export all points within Leaflet polygon in Salesforce?Hello Madhulika,
Although 'export' is very ambiguous, here's a way to console log the drawn polygon as 'geojson' string:-
map.on(‘draw:created’, function (e) { var type = e.layerType, layer = e.layer; if (type === ‘polygon’) { // structure the geojson object var geojson = {}; geojson[‘type’] = ‘Feature’; geojson[‘geometry’] = {}; geojson[‘geometry’][‘type’] = “Polygon”; // export the coordinates from the layer coordinates = []; latlngs = layer.getLatLngs(); for (var i = 0; i < latlngs.length; i++) { coordinates.push([latlngs[i].lng, latlngs[i].lat]) } // push the coordinates to the json geometry geojson[‘geometry’][‘coordinates’] = [coordinates]; // Finally, show the poly as a geojson object in the console console.log(JSON.stringify(geojson)); } drawnItems.addLayer(layer); });
I hope this will help.
thanks
-
Prachi
MemberAugust 7, 2018 at 1:48 pm in reply to: What are the functionality of bindPopup and containerPoint in the leaflet?Hello madhulika,
Bindpopup binds a popup to the layer with the passed content and sets up the necessary event listeners. If a Function is passed it will receive the layer as the first argument and should return a String or HTMLElement
syntax : bindPopup(<String|HTMLElement|Function|Popup> content, <Popup options> options?)
containerPoint Pixel coordinates of the point where the mouse event occured relative to the map сontainer.
Thanks
-
Prachi
MemberAugust 3, 2018 at 6:37 am in reply to: What are the effects of using the transient keyword in Visualforce Page?Hello Chanchal,
We Use the transient keyword to declare instance variables that can't be saved, and shouldn't be transmitted as part of the view state for a Visualforce page.
You can also use the transient keyword in Apex classes that are serializable, namely in controllers, controller extensions, or classes that implement the Batchable or Schedulable interface. In addition, you can use transient in classes that define the types of fields declared in the serializable classes.
Thanks.
-
Prachi
MemberAugust 1, 2018 at 7:55 am in reply to: What are the different types of Sandboxes in Salesforce?Hello Anjali,
Sandbox Types:
Developer Sandbox
A Developer sandbox is intended for development and testing in an isolated environment. A Developer Sandbox includes a copy of your production org’s configuration (metadata).Developer Pro Sandbox
A Developer Pro sandbox is intended for development and testing in an isolated environment and can host larger data sets than a Developer sandbox. A Developer Pro sandbox includes a copy of your production org’s configuration (metadata). Use a Developer Pro sandbox to handle more development and quality assurance tasks and for integration testing or user training.Partial Copy Sandbox
A Partial Copy sandbox is intended to be used as a testing environment. This environment includes a copy of your production org’s configuration (metadata) and a sample of your production org’s data as defined by a sandbox template. Use a Partial Copy sandbox for quality assurance tasks such as user acceptance testing, integration testing, and training.Full Sandbox
A Full sandbox is intended to be used as a testing environment. Only Full sandboxes support performance testing, load testing, and staging. Full sandboxes are a replica of your production org, including all data, such as object records and attachments, and metadata.Thanks.
-
Prachi
MemberAugust 1, 2018 at 7:40 am in reply to: What are Chainset Deployment Sets in Salesforce?Hello Madhulika,
I guess you meant change set. Below is the answer for the same:-
we use change sets to send customizations from one Salesforce org to another. For example, you can create and test a new object in a sandbox org, then send it to your production org using a changeset. Changesets can only contain modifications you can make through the Setup menu.
An outbound changeset is a changeset created in the Salesforce org in which you are logged in and that you want to send to another org. You typically use an outbound change set for customizations created and tested in a sandbox and that is then sent to a production org.
Thanks.
-
Prachi
MemberAugust 1, 2018 at 7:30 am in reply to: What are the types of custom events in Salesforce Lightning condition?Hello shradha,
Types of custom events:-
Component-Level Events
Component-level events are generated by a component and can be handled by the component itself, or its containing component or application. Component events are useful for situations where your component can be used in an application multiple times and you don’t want the different instances interfering with each other.Application-Level Events
Application-level events are published by a component, and any component or application that has subscribed to the event has its handler invoked when the event is fired.Thanks.
-
Prachi
MemberAugust 1, 2018 at 7:22 am in reply to: What does (!test.isRunningTest()) signifies in Salesforce?Hello Chancal,
The Test.isRunningTest() method is used to identify, if the piece of code being executed is invoked from a Test class execution or from other artefacts such as a Trigger, Batch Job etc. Returns true if the code being executed is invoked from a test class otherwise returns a false.
! is the Logical complement operator. Inverts the value of a Boolean, so that true becomes false, and false becomes true.
So, (!test.isRunningTest()) will Return false if the code being executed is invoked from a test class otherwise returns a true.
Thanks.
-
Hello Anjali,
Salesforce users can see their limit form setup easily by simply clicking data.com administration/Users. From the data.com users section, the users can see their monthly limit and exactly how many records are exported during the month.
Thanks.
-
Prachi
MemberJuly 30, 2018 at 1:39 pm in reply to: What is Live Agent Configuration Settings in Salesforce?Hello shradha,
Live Agent configurations define the Live Agent functionality that’s available to your agents and support supervisors when agents chat with customers. Create Live Agent configurations to control the functionality of Live Agent in the Salesforce console.
Live Agent configuration settings control the functionality that’s available to agents and their supervisors while agents chat with customers.
Thanks.
-
Prachi
MemberJuly 30, 2018 at 1:31 pm in reply to: Is it possible to create trigger on views in Salesforce?Hello Chanchal,
I guess you want to ask whether it is possible to create trigger on list views in salesforce. No, It is not possible to create triggers on list views in salesforce.
Thanks.
-
Prachi
MemberJuly 27, 2018 at 9:26 am in reply to: What is the difference between S-Controls and Visualforce?Hello Avnish,
Scontrols: S-controls have been superseded by Visualforce pages. After March 2010 organizations that have never created s-controls, as well as new organizations, won't be allowed to create them. Existing s-controls will remain unaffected, and can still be edited. We recommend that you move your s-controls to Visualforce. We continue to support the Scontrol object.
Visualforce: Visualforce is the new force.com technology that lets you create custom user interfaces for your Force.com applications. With Visualforce, you can reuse many of the components found in existing Salesforce interfaces or create your own. Moreover, the interfaces can also tap into custom business logic. The technique is powerful, easily customized, separates business logic from user interface design, and in most cases eliminates the need for S-Controls. The custom pages can either complement and extend existing pages on Salesforce, or have their own unique look and feel.
Thanks.
-
Prachi
MemberJuly 27, 2018 at 9:18 am in reply to: In how many ways we can share a record in Salesforce? Explain briefly.Hello Shradha,
Following are the ways we can share a record:
Role Hierarchy:
If we add a user to a role, the user is above in the role hierarchy will have read access.
Setup -> manage users -> roles -> setup roles -> click on ‘add role’ -> provide name and save.OWD:
Defines the base line setting for the organization.
Defines the level of access to the user can see the other user’s record
OWD can be Private, Public Read Only, Public Read and Write.
Setup -> Security Controls -> sharing settings -> Click on ‘Edit’Manual Sharing:
Manual Sharing is sharing a single record to single user or group of users.
We can see this button detail page of the record and this is visible only when OWD setting is private.Criteria Based Sharing rules:
If we want to share records based on condition like share records to group of users
Whose criteria are country is India.
Setup -> security controls -> sharing settings -> select the object and provide name and
Conditions and saveApex sharing:
Share object is available for every object (For Account object share object is AccountShare). If we want to share the records using apex we have to create a record to the share object.Thanks.
-
Prachi
MemberJuly 27, 2018 at 7:40 am in reply to: How to implement Lightning:Tree in Lightning component to Display Hierarchy for any Salesforce Sobject?Hello Anjali,
In API version 41.0, Salesforce has introduce new component called lightning:tree. This can be used to display hierarchy in tree structure. Before this, we have to used jquery or other javascript libraries to implement this.After introduction of lightning:tree, it is very easy to use this and implement this in short time.You just have specify below attributes to component to display tree structure:-
ltngcurrentRecId : Salesforce 15 or 18 digit Id of any record for which you want to see hierarchy.
ltngSobjectname : sObject API name (like Account, Case, Position__c etc.)
ltngParentFieldAPIName : Field API name which creates self relationship between records.
ltngLabelFieldAPIName : Field API name which will be used to display records in tree structure(like Name, CaseNumber, Title__c etc.).
ltngHierarchyHeader : Header label which will be displayed above tree structure.Below is a simple code for the same:-
<aura:application extends="force:slds">
<c:SK_LightningTreeCmp ltngcurrentRecId="0019000000ld4kO"
ltngSobjectname="Account"
ltngParentFieldAPIName="ParentId"
ltngLabelFieldAPIName="Name"
ltngHierarchyHeader="Account Hierarchy"/><c:SK_LightningTreeCmp ltngcurrentRecId="5009000000GJkJG"
ltngSobjectname="Case"
ltngParentFieldAPIName="ParentId"
ltngLabelFieldAPIName="CaseNumber"
ltngHierarchyHeader="Case Hierarchy"/>
</aura:application>Thanks.
-
Prachi
MemberJuly 27, 2018 at 7:34 am in reply to: For what purpose Aura:if used in Salesforce Lightning Component?Hello Anjali,
Use of aura:if:-
Aura:if renders the content within the tag if the isTrue attribute evaluates to true.
The framework evaluates the isTrue expression and instantiates components either in its body or else attribute. Also, aura:if instantiates the components in either its body or the else attribute, but not both.Thanks.
-
Prachi
MemberJuly 27, 2018 at 6:04 am in reply to: What is the relationship between opportunity line item and PriceBook in Salesforce?Hello Anjali,
Here is the relationship between Opportunity,OpportulityLineItem ,PricebookEntry,Pricebook and Product2 .
1. OpportunitylineItem is junction object between opportunity and pricebookentry.
As We need PricebookEntry Id and opportunity Id while creating OpportunityLineItems.2. PricebookEntry is a junction object between Product2 and PriceBook.
As we need Product2 Id and PriceBook2 Id while creating PricebookEntries.Whenever we add products on any opportunity ,behind the curtain this data model works.
Thanks.
-
Prachi
MemberJuly 18, 2018 at 10:51 am in reply to: What is the difference between HTTP Post and HTTP GET in Salesforce apex?Hello Anurag,
GET- In an HTTP GET request, key/value pairs are specified in the URL
GET requests can be cached
GET requests remain in the browser history
GET requests can be bookmarked
GET requests should never be used when dealing with sensitive data
GET requests have length restrictions
GET requests should be used only to retrieve dataPOST - HTTP POST data is not visible in the URL, and when submitting data to a website.
POST requests are never cached
POST requests do not remain in the browser history
POST requests cannot be bookmarked
POST requests have no restrictions on data length