Laveena Agarwal
IndividualForum Replies Created
-
Laveena
MemberSeptember 18, 2019 at 1:45 pm in reply to: What is apex batch chain class in salesforce?Hi Deepak,
The process of calling a batch class from another batch class is called batch chaining in salesforce.
Thanks
-
Hi David,
List<User> usersToUpdate = new List<User>();
for(User u : [Select id, IsActive from User where isActive=true and lastLoginDate <= :DATE.TODAY()-10]){
u.IsActive = false;
usersToUpdate.add(u);
}if (usersToUpdate.size()>0){
update usersToUpdate;
}There are some considerations to do this:
-- one cannot deactivate self user record
-- Cannot deactivate a user record which is referenced in another user record in a hierarchy custom field
-- Make a Schedule Class apex and invoke via schedule UI in Salesforce.
Thanks
-
Laveena
MemberSeptember 17, 2019 at 2:15 pm in reply to: What is the difference between SOSL and SOQL Quires in Saleforce ?Hi Nikita,
SOQL in Salesforce:
soql stands for”Salesforce Object Query Language”.
It returns Records.
Records are stores in collection. Records are pertaining to single sObject.
Search in single sObject and it retains records.
SOQL retrieves the data from the database using “SELECT” keyword.
It works on multiple objects at the same time.
SOQL is not used in Triggers and can be used only in Apex classes and anonymous block.
SOQL against the same field will be slow.
SOSL in Salesforce:
SOSL stands for “Salesforce Object Search language”.
It returns fields.
Records are pertaining to different sObjects.
Search in entire Org and returns fields.
SOSL retrieves the data from the database using the keyword “FIND“.
It doesn’t work on multiple objects at the same time and need to write different SOQL queries for different objects.
SOSL can be used in Triggers and Apex class.
All fields are already text indexed.Thanks
-
Hi Nikita,
The Stack Tree panel displays two tree views that show information “top down”—from initiating calls to the next level down—so that you can see the hierarchy of items in a process. For example, if a class calls a second class, the second class displays as a child node of the first class.
Thanks
-
Hi Saddam,
The Lightning Component framework uses Content Security Policy (CSP) to impose restrictions on content. The main objective is to help prevent cross-site scripting (XSS) and other code injection attacks. To use third-party APIs that make requests to an external (non-Salesforce) server or to use a WebSocket connection, add a CSP Trusted Site.
Thanks
-
Laveena
MemberSeptember 13, 2019 at 11:34 am in reply to: What is Custom Notification in Salesforce?Hi Saddam,
Custom Notifications is another new feature which will be seen below the Media section of your chat settings, along with mute chat. Custom Notifications option lets you select tones, vibration length, light, popup notifications, call ringtone, among others.
Thanks
-
Hi Saddam,
Platform events are used to deliver secure and scalable custom notifications within Salesforce or from external sources. Custom platform event determines the event data that the Lightning platform can produce or consume.
Thanks
-
Laveena
MemberSeptember 12, 2019 at 8:21 am in reply to: What are getter methods and setter methods in Salesforce?Hi Achintya,
Getter and Setter methods in salesforce are used to pass data from controller to visualforce and vice versa.
Thanks
-
Laveena
MemberSeptember 12, 2019 at 8:19 am in reply to: Why users can’t be deleted from Salesforce.com?Hi Achintya,
Deleting a user -- even if they logged in -- would cause a loss of data and therefore "change history". By not being able to delete users, your company can always know who has had access to their Salesforce data, when they logged in, and, for records that have been modified, you can see who made the changes.
Thanks
-
Laveena
MemberSeptember 12, 2019 at 7:38 am in reply to: What is Basic difference between Application Event and Component Event in lightning component?Hi Hariom,
Component events are used to do communication between child and parent. They use bubbling and capture same as used in DOM events. A change in a child component can be communicated to the parent component via component event.
Application events are used to communicate any change in the component to a broader audience. Any component who has registered for this event will get a notified.
Thanks
-
Hi Saddam,
In Salesforce.com, FieldSet is defined as a grouping field. This FieldSet is used in Visualforce pages to display the group of fields in that VF page. Adding fields, removing and reorder fields can be possible only with FieldSets .FieldSets are used to display fields in VF pages.
Thanks
-
Hi Saddam,
A "setup" object is one that must be edited from the setup or builder area of the platform.
Setup objects are
* User
* RecordType
* Profile
etc
and all other general objects i.e.
* Contact
* Account
* Lead
etc
are the None setup objects.
If you run a DML operation on setup object you can't run a DML operation on None setup object in the same context, it will show the "Mixed_DML_operation" error.
For example, you cannot insert an account and then insert a user or a group member in a single transaction.
Salesforce don’t allow you to run.
Thanks
-
Laveena
MemberSeptember 11, 2019 at 12:02 pm in reply to: What is the difference between screen flow and autolaunched flow?Hi Nikita,
Screen Flow-Requires user interaction, because it includes screens, local actions, steps, choices, or dynamic choices. Screen flows don’t support Pause elements.
Autolaunched Flow-Doesn’t require user interaction. This flow type doesn’t support screens, local actions, choices, or choice sets.
Thanks
-
Laveena
MemberSeptember 10, 2019 at 7:13 am in reply to: How to Add new button on account object lookup ?Hi Hariom,
Some options you can consider :
- Look into creating Quick Actions (Chatter Publisher Actions) to create the records.
- Replace all your pages with visualforce pages so you can create your own version of quick create (Don't do this! Terrible idea but I wanted at least 2 items)
Quick actions are really your best bet but you can't do them from the lookup dialog window. But it would save them from having to leave the record they're viewing.
Thanks
-
Hi Deepak,
System runAs method can also be used to perform mixed DML operations in your test by enclosing the DML operations within the runAs block. In this way, you bypass the mixed DML error that is otherwise returned when inserting or updating setup objects together with other sObjects.
Thanks
-
Laveena
MemberSeptember 6, 2019 at 5:12 am in reply to: what is the Difference between Pardot or Marketing Cloud in Salesforce?Hi Yogesh,
The key distinction between these two services is, the marketing cloud is optimized for B2C companies and Salesforce Pardot is for B2B. Wherein Pardot is a lead marketing automation system that allows you to reach potential clients through a number of ways like social media and paid marketing, the Marketing Cloud is a provider of digital marketing automation and analytics software and services.
Thanks
-
Laveena
MemberSeptember 6, 2019 at 5:10 am in reply to: what is the significance of pardot in salesforce ?Hi Yogesh,
Pardot is a software as a service (SaaS) marketing automation platform bySalesForce offering email automation, targeted email campaigns and lead management for B2B sales and marketing organizations. Pardot automates common marketing tasks, including: Tracking customer behaviors. Creating digital marketing campaigns.
Thanks
-
Laveena
MemberSeptember 6, 2019 at 5:09 am in reply to: In Salesforce can we edit an apex trigger/ apex class in production environment?Hi Prachi,
No, it is not possible to edit apex classes and triggers directly in production environment. ... However, Visualforce pages can be created and edited in both sandbox and in production. Only if the page has to do something unique (different values), it would have to be developed via Sandbox.
Thanks
-
Laveena
MemberSeptember 6, 2019 at 5:07 am in reply to: What is WhoId and WhatId in activities in salesforce?Hi Prachi,
WhoID in Salesforce refers to people things. So that would be typically a Lead ID or a Contact ID. ... WhatID in Salesforce refers to object type things. That would typically be an Account ID or an Opportunity ID. The WhatId represents nonhuman objects such as accounts, opportunities, campaigns, cases, or custom objects.
Thanks
-
Hi Prachi,
You can delete mass reports in salesforce.
In Setup, under Data Management > Mass Delete Records, select Mass Delete Reports and configure a filter to find reports that need to be deleted. Reports that you delete go into the recycle bin. They aren’t permanently deleted until you clear your recycle bin.
Note: You can’t mass-delete reports that are scheduled or are used in dashboards or analytic snapshots.
Thanks
-
Laveena
MemberSeptember 5, 2019 at 5:28 am in reply to: What does it mean if an error states that “rundown has no rows for assignment” in Salesforce?Hi Achintya,
The blunder that tells “list has no lines for task” demonstrates that the rundown you are endeavoring to get to has no qualities in it.
Thanks
-
Laveena
MemberSeptember 5, 2019 at 5:20 am in reply to: How to send notification to opportunity owner on some condition in Salesforce?Hi Deepak,
You can achieve this functionality by having time dependent action in process builder or time dependent workflow action.
The criteria for step will be if opportunity status is InActive and Last Activity change date field is updated then trigger a time dependent action in process builder by having a criteria like after 2 days of Last Activity Date.
Try to create one custom field. I have tried this by creating one custom field called Last Activity Date and i am able to select that field from the drop down.
Thanks
-
Laveena
MemberSeptember 5, 2019 at 5:17 am in reply to: How to create many to many relationships between object in SCualesforce?Hi Prachi,
We can use master-detail relationships to model many-to-many relationships between any two objects. A many-to-many relationship allows each record of one object to be linked to multiple records from another object and vice versa. For example, we create a custom object called “Bug” that relates to the standard case object such that a bug could be related to multiple cases and a case could also be related to multiple bugs. When modeling a many-to-many relationship, we use a junction object to connect the two objects you want to relate to each other.
Thanks
-
Hi Saddam,
DoneRendering system event indicates that the initial rendering of the root application has completed.
The aura:doneRendering event is deprecated unless your component is running in complete isolation in a standalone app and not included in complex apps, such as Lightning Experience or the Salesforce app, the container app may trigger your event handler multiple times. This behavior makes it difficult to handle each event appropriately.
Thanks
-
Hi Saddam,
ActionStatus is a component that displays the status of an AJAX update request. An AJAX request can either be in progress or complete.
Thanks