
Mohit Agarwal
Individual-
Mohit replied to the discussion Salesforce Query to Get the list of accounts where Related contacts Greater than 200 in the forum Salesforce® Discussions 7 years ago
Reply to Salesforce Query to Get the list of accounts where Related contacts Greater than 200
Hi Subramanyam Subbu,
Yes, it is possible to query the list of Accounts where Associated Contacts greater than 200.
For this, we can use the Aggregate query to fetch the AccountId of those Account record having related contact greater than 200.
Here is the Code below:-AggregateResult[] groupedResults = [select AccountID from Contact GROUP… Read more
-
Mohit replied to the discussion How can we prevent phishing attacks in Salesforce? in the forum Salesforce® Discussions 7 years ago
Reply to How can we prevent phishing attacks in Salesforce?
Hi Manpreet,
Phishing is a social engineering technique that attempts to acquire sensitive information such as usernames, passwords, and credit card details by masquerading as a trustworthy entity in an electronic communication. Phishers often direct users to enter details at a fake website whose URL and look-and-feel are almost identical to… Read more
-
Mohit and
0to1Code.Com are now connected 7 years ago
-
Mohit replied to the discussion How to restrict a user to not create more than 15 records in Salesforce? in the forum Salesforce® Discussions 7 years ago
Reply to How to restrict a user to not create more than 15 records in Salesforce?
Hi Shaik,
I have done this functionality in my org, with the help of apex trigger.This is the following code to achieve this functionaity.
trigger toCheckNumberOfUser On Opportunity(before Insert, before update){
Map<Id,Integer> mapofOwnerIdVsCount = new Map<Id,Integer>();
for(AggregateResult arOpp : [select count(id),OwnerId from… Read more -
Mohit and
Suyash are now connected 7 years ago
-
Mohit started the discussion List of Public Group from which user is logged in Salesforce Community in the forum 7 years ago
List of Public Group from which user is logged in Salesforce Community
Can we get the list of "Public Groups" from which the User is logged in Salesforce community without using Apex code? And If Yes, then How?
For e.g. Like if I logged in the Salesforce Community then there should be a page in which I can a get list of "Public Groups" in which I was included in Salesforce Group. -
Mohit changed their photo 7 years ago
-
Krishna Dev and
Mohit are now connected 8 years ago
-
Manpreet and
Mohit are now connected 8 years ago
-
Mohit replied to the discussion what is list used for in salesforce? in the forum Salesforce® Discussions 8 years ago
Reply to what is list used for in salesforce?
Hi Sushant,
The List<SelectOption> is used to show the dynamic drop-down value on the visualforce page.
For Eg:-
Apex Controller:-
public class sampleCon {
String[] countries = new String[]{};
public PageReference test() {
return null;
}public List<SelectOption> getItems() {
List<SelectOption> options =… Read more -
Mohit and
Sourabh are now connected 8 years ago
-
Mohit started the discussion How can we get the list of users who have the read permission on the case in salesforce? in the forum 8 years ago
How can we get the list of users who have the read permission on the case in salesforce?
Hi All,
How can we get the list of user those who have the read permission on the case sObject?
We have a scenario in which we want a list of user those who have the read permission on the case sObject in salesforce?
please give suugestion
-
Mohit started the discussion How can we get the list of users who have the read permission on the case in salesforce? in the forum 8 years ago
How can we get the list of users who have the read permission on the case in salesforce?
Hi All,
How can we get the list of user those who have the read permission on the case?
We have a scenario in which we want a list of user those who have the read permission on the case in salesforce?
please give suugestion
-
Mohit replied to the discussion Can we call a future method in another future method in Salesforce? in the forum Salesforce® Discussions 8 years ago
Reply to Can we call a future method in another future method in Salesforce?
Hi Sushant,
You cannot call a future method from another future method as both them are asynchronous. In salesforce you cannot call one asynchronous function into another asynchronous method.
As per the salesforce documentation:-
You cannot call a method annotated with future from a method that also has the future annotation. Nor can you… Read more
-
Mohit replied to the discussion Difference between list.Size() > 0 vs list != null vs list.IsEmpty() in Salesforce? in the forum Salesforce® Discussions 8 years ago
Reply to Difference between list.Size() > 0 vs list != null vs list.IsEmpty() in Salesforce?
Hi Ashley,
The List.Size()>0 will check whether the list has any record in it or not.
The List!=null will be use full when you have not initialize the list. It is not helpfull to check the whether the list has any record or not. This is a waste of CPU time, because (a) records will never be null, and (b) iterating over an empty list… Read more
-
Mohit replied to the discussion API names for all standard fields in Salesforce? in the forum Salesforce® Discussions 8 years ago
Reply to API names for all standard fields in Salesforce?
Hi Kumar,
On the Standard Object : -
1)Goto the setup.
2)In Quick Find Box write the Object name and then Goto the Field To know the Field associate to that Object.
On the Custom Object:-
1. Go to Setup.
2. Under "Build," click Create | Objects.
3. Click the object name, click Fields.
4. And check for "API name" column name valueOn… Read more
-
Mohit started the discussion How can we search a name of an sObject by the name of single or multiple key words both from the single search textbox? in the forum 8 years ago
Hi All,
How can we search a name of an sObject by the name of singe or multiple key words both from the single search textbox?
Please give suggestion
-
Mohit started the discussion In Salesforce, how can we stop the insertion of the record on the click of 'Enter Key' from the Keyboard? in the forum 8 years ago
Hi All,
How can we stop the insertion of the record on the click of 'Enter Key' from the Keyboard?
Please Give Suggestion.
-
Mohit updated their profile 8 years ago
-
Mohit started the discussion How can we find the object name based on the parent Id in the easiest way? in the forum 8 years ago
How can we find the object name based on the parent Id in the easiest way?
Hi All,
How can we find the object name based on the parent Id in the easiest way?
Please give suggestion
- Load More