Anjali Baranwal
IndividualForum Replies Created
-
Anjali
MemberAugust 8, 2018 at 1:15 pm in reply to: Time-Dependent Action when a Salesforce record is created or edited?Hi Sanjana,
No,because everytime the record is updated, the TDA gets into the Workflow Queue and again the same record is edited one more TDA gets into the Workflow Queue which makes the Queue full and hence performance issues with respect ot he other TDAs in Queue.
And if we just add a rule criteria to this, then the TDA is not recurred that easily. Hope you got my point. -
Anjali
MemberAugust 8, 2018 at 1:13 pm in reply to: What is AJAX typically used for in Salesforce Visualforce pages?Hi Suniti,
Visualforce has inbuilt support for the AJAX. using the attribute “rerender” we can specify that where the response should be rendered.
Lets have an example to demonstrate that how simple AJAX works in visualforce.
public class AjaxDemo {
private String currTime;
public String getCurrTime()
{
return currTime;
}
public void setCurrTime()
{
currTime = System.now().format('EEEE, MMMM d, yyyy - hh:mm:ss');
}
}On the basis of above Apex class lets create Visualforce page with below code.
<apex:page Controller="AjaxDemo">
<apex:pageBlock Title="Ajax Sample">
Hello <b> {!$User.FirstName}</b>.
<apex:form >
<br /><br />
<apex:commandbutton action="{!setCurrTime}" rerender="ajaxresult" value="Display Current Time" /></apex:form>
</apex:pageBlock><apex:pageBlock title="AjaxData">
<apex:outputPanel id="ajaxresult" layout="block">
Result: {!CurrTime}
</apex:outputPanel>
</apex:pageBlock></apex:page>
-
Anjali
MemberAugust 8, 2018 at 1:07 pm in reply to: What is a Model-View-Controller (MVC) Paradigm in Salesforce Visualforce?Hi Anurag,
Salesforce MVC is-
MODEL
The model is your database objects in Salesforce. The include the standard Salesforce objects like Leads, Contacts, Accounts, Opportunities etc but it also includes any custom objects you've created. Think of it like this - the "model" represents your data model in terms of MVC.VIEW
The view represents the presentation of the data (i.e. the user interface).Pages - While often just called "pages", what we are talking about is Visualforce pages. They are the building blocks of the user interface. Visualforce uses HTML to lay out the appearance of the application interface. Each page is referenced by a unique URL just like a regular webpage. The pages themselves also contain Visualforce Componentswhich can be invoked by simple tags inside the page.
Components - these are both standard and custom Visualforce Components. Think of them like widgets that you can add to your pages. Once you write the code once, you can reuse it on multiple pages. Components are important because they allow for this reuse. Components can be styled with CSS.
CONTROLLER
Controllers are the building blocks of the actual application logic. The controllers are written in Apex code and they end up controlling and enforcing all the business logic. Remember that one of the key design elements of MVC is to separate the logic from the UI. The presentation layer (the view) shouldn't be mixed with a bunch of business logic. Pages interact with the controller through components which shuttle the data and specifies what happens when the user actually interacts with the UI. Salesforce has pre-built controllers for many of the standard actions like View, Edit, Save. If you want to add new behavior though you can extend or build new controllers (custom controllers) in Apex. -
Anjali
MemberAugust 7, 2018 at 6:06 am in reply to: How many roll-up summary fields can be created in Salesforce?Hi Chanchal,
You can create 25 roll-up summary fields in salesforce.
-
Anjali
MemberAugust 7, 2018 at 5:54 am in reply to: What is the difference between WhoId and WhatId on Task?Hi Shradha
WhoID refers to people things.So that would be typically a Lead ID or a Contact ID
WhatID refers to object type things.That would typically be an Account ID or an Opportunity ID
-
Anjali
MemberAugust 6, 2018 at 6:09 am in reply to: What is the difference between future apex and batch apex in Salesforce?Future Annotation is used to separate methods that are to be executed asynchronously.If Future Annotation is not used in a web service callout, the thread will wait until the response comes and other processes will not be executed.
Batch Apex is used to separate tasks that are going to handle more records in background process. Batch Apex also runs asynchronously.If Batch Apex is not used for handling bulk records, we will hit governor limits set by Salesforce.com.
-
Anjali
MemberAugust 6, 2018 at 6:04 am in reply to: What is AsyncApexJob object in batch apex in Salesforce?Hi Suniti,
AsyncApexJob-Represents an individual Apex sharing recalculation job, a batch Apex job, a method with the future
annotation, or a job that implements Queueable.
BatchApex job represents an asynchronous Apex class using the Batchable interface via implements Database Batchable. Using Batch Apex allows for the asynchronous processing of a long running process on a large data volume by breaking the job into manageable chunks to be processed separately
-
Anjali
MemberAugust 6, 2018 at 5:47 am in reply to: When a BatchApexworker record is created in batch apex in salesforce?Hi suniti,
For each 10,000 AsyncApexJob records, Apex creates one additional AsyncApexJob record of type BatchApexWorker for internal use. When querying for all AsyncApexJob records, it is recommend that you filter out records of type BatchApexWorker using the JobType field. Otherwise, the query will return one more record for every 10,000 AsyncApexJob records.
-
Anjali
MemberAugust 2, 2018 at 7:38 am in reply to: What is the purpose and format of URI in REST architecture?Purpose of an URI is to locate a resource(s) on the server hosting the web service. Another important attribute of a request is VERB which identifies the operation to be performed on the resource.
A URI is of following format −
<protocol>://<service-name>/<ResourceType>/<ResourceID>
-
Anjali
MemberAugust 1, 2018 at 7:49 am in reply to: What is the difference between actionFunction, actionSupport, actionRegion in Salesforce?Hi Prachi,
<apex:actionFunction>
This component provides support for invoking controller action methods directly from JavaScript code using an AJAX request and we can use action function from different places on visual force page.<apex:actionSupport>
<apex:actionSupport/> Invoke the controller method using AJAX when event occurs on page like onMouseOver, onClick, etc. and we can use action support for particular single apex component.<apex:actionRegion>
An area of a Visualforce page that demarcates which components should be processed by the Force.com server when an AJAX request is made. Only the components in the body of the <apex:actionRegion> are processed by the server, thereby increasing the performance of the page -
Anjali
MemberAugust 1, 2018 at 7:47 am in reply to: Can we use Workflow Rules with Time Triggers in Salesforce?Hi Sanjana,
Triggers will execute if the time-based workflow rule creates or modifies a record. This means that a time-based workflow rule can create a task and it will execute (before and after insert) task triggers, or you can use a Workflow Field Update to change a field value, thus triggering (before and after update) object triggers. Those triggers can, in turn, trigger a time-based workflow.... Before scheduling, people used this mechanism to create recurring system tasks.
-
Anjali
MemberAugust 1, 2018 at 7:45 am in reply to: What is Trigger Factory (Framework for apex triggers) in Salesforce?Hi Shradha,
Trigger Factory is a patterns that provide an elegant way of coding triggers to avoid bad practices such as repetitive SOQL queries that can hit governor limits and multiple triggers over the same object. The patterns enforce a logical sequence to the trigger code and in turn help to keep code tidy and more maintainable. Keeping trigger logic for each object in a single place avoids problems where multiple triggers are in contention with each other and makes it easier to debug. Enforcing up front caching of data within a trigger keeps the trigger 'bulkified' and avoids those nasty 'too many SOQL queries'.
-
Anjali
MemberJuly 31, 2018 at 1:56 pm in reply to: How to schedule export or take the backup of Salesforce?Hi Madhulika,
You can schedule export or take the backup of salesforce by following steps-
1. Sign in with the admin rights
2. in right upper corner click on your user ID and select Setup
3. In new screen go to the left down and under Administration Setup click Data Management
4. Under Data Management click Data Export
5. Now select the format, select more option and under Exported Data you can now select one or INCLUDE ALL DATA to export everything
6. Click on Start Export
7. You will see messages that the export started and you will be notify once the process completed
8. Once you receive email with the link, click the link and you will be able to download the entire data backup in zip file. Once you unzipped the file, you have it in Excel CVS format and you can now keep it on side for archive or modify the file offline.
-
Anjali
MemberJuly 31, 2018 at 1:54 pm in reply to: Can we perform DML on OrgWideEmailAddress object in Salesforce?Hi Anurag,
OrgWideEmailAddress supports create(), delete(), query(), retrieve(), update() via the API, but DML isn't currently allowed.
-
Anjali
MemberJuly 30, 2018 at 1:31 pm in reply to: How to increase timeout while calling web service from Salesforce Apex?Hello Prachi
You can use HttpRequest.setTimout which is a millisecond value only for 2 minutes.
-
Anjali
MemberJuly 30, 2018 at 1:25 pm in reply to: Can you reorder the steps of an Approval Process in Salesforce?Hi Shradha
You cannot reorder approval steps once they are created, but you can set the step number when creating a new step. Which would allow you to insert a step in an existing Approval Processes, just be sure to get the numbering right.
-
Anjali
MemberJuly 30, 2018 at 1:11 pm in reply to: What is the use of oldMap and newMap context variables in Salesforce Triggers?Hello Anurag
Trigger.old: Returns a list of the old versions of the sObject records. Note that this sObject list is only available in update and delete triggers. Trigger.new will have current details of the record getting inserted or updated, where as trigger.old will have the existing details for a record before it is updated or deleted.
Trigger.OldMap: A map of IDs to the old versions of the sObject records. Note that this map is only available in update and delete triggers.
Trigger.new: Trigger.new is a list of sobjects. If we are talking about a DML operation on account, then trigger.new is simply a list of accounts. Similarly when used in contact trigger, trigger.new becomes a list of contacts.
Trigger.newMap: Trigger.newMap is a map with key as ID of the record and value as the record itself. Just like the above explanation, in case of accounts when we say trigger.newMap we are talking about a map of key-value pairs where the key is the account ID and the value is the account record itself.
-
Hello Sanjana
Dynamic Apex enables developers to create more flexible applications by providing them with the ability to:
- Access sObject and field describe information
- Access Salesforce app information
- Write dynamic SOQL queries, dynamic SOSL queries and dynamic DML
-
Anjali
MemberJuly 27, 2018 at 7:56 am in reply to: How to include static resource in lightning component in Salesforce?Hi Shradha
To reference a specific resource in component markup, use $Resource.resourceName within an expression. resourceName is the Name of the static resource. In a managed packaged, the resource name must include the package namespace prefix, such as $Resource.yourNamespace__resourceName. For a stand-alone static resource, such as an individual graphic or script, that’s all you need. To reference an item within an archive static resource, add the rest of the path to the item using string concatenation.
-
Anjali
MemberJuly 26, 2018 at 1:13 pm in reply to: Explain Opportunity Line Item and Code Line Item in Salesforce?Hi Madhulika,
OpportunityLineItem are the Products which are associated to an Opportunity.
A company can have a number of products which it sells. All these products are generalized as Products. However, when a Product, or a number of Products are attached to an Opportunity, then they are called "OpportunityLineItem" records.
The $ value attached to an Opportunity comes from the Products associated with that particular opportunity as each Product (or OpportunityLineItem) has a $ value associated to it.
-
Anjali
MemberJuly 20, 2018 at 10:58 am in reply to: How to use map in Salesforce lightning component?Hello Prachi,
We use Map in Lightning Component to add a key and value pair using the syntax myMap.set('myNewKey', myNewValue)
Example-
var myMap = cmp.get("v.sectionLabels");
myMap.set('c', 'label3');The following example retrieves data from a map.
for (var key in myMap){
// something
} -
Hello Avnish,
You can call a batch from a trigger, but you need to be aware of potential limits you could hit. You can only have 5 batch jobs queued or executing at once. If your trigger calls batch jobs each time, then you could quickly exceed that limit.
-
Hello Madhulika,
Entry Event is an action that prompts no of contact to enter a journey in journey builder. Entry events are recorded in a data source, which Journey Builder monitors on a set schedule. Entry events can be journey-specific or shared by more than one journey. Set event availability to give marketers in your organization access to entry events.
-
Anjali
MemberJuly 18, 2018 at 9:38 am in reply to: What is Good Open Rate in Salesforce Marketing Cloud?Hello Prachi,
Opened Rate in Marketing Cloud is basically the calculation of the all email that are accepted and Read by the receiver. Generally, a good range of “Open” rate is between 15% and 25% for marketing emails, and between 30% to 40% for transactional emails.
-
Anjali
MemberJuly 18, 2018 at 9:32 am in reply to: What is Advertising Studio in Salesforce Marketing Cloud? Explain its working.Hello Madhulika,
Advertising Studio is tool in marketing Cloud which is used to collect user data from email, push interaction and conversation to sync securely with contact's Facebook and Twitter accounts. And Engage customers with relative content and timely messages and find new customer with similar attribute.
For that purpose, we use the following -
- Advertising Audience - It enables you to activate your CRM data for targeting. Find new prospects with lookalikes.
- Journey Builder Advertising - It integrates advertising campaigns into your overall customer journey.
- Lead Capture - Lead Capture lets you connect your Facebook advertising leads to your Marketing Cloud data in real time.
- This reply was modified 6 years, 3 months ago by Forcetalks.