Rahul Kumar
IndividualForum Replies Created
-
Rahul
MemberApril 25, 2018 at 10:05 am in reply to: How to enable schedule report options in Salesforce?Hi,
]Thanks for reply, but this is not same option as i post in screen shot . it's already selected and i can not schedule a report as in attachment. It's going in mail body .
-
Rahul
MemberApril 25, 2018 at 7:04 am in reply to: How to prevent a user from creating a new account in Salesforce?Thanks pranav.
-
Rahul
MemberApril 17, 2018 at 7:53 am in reply to: How to prevent a user from creating a new account in Salesforce?i want to handle on user basis not by profile.
-
Rahul
MemberApril 17, 2018 at 6:37 am in reply to: How to prevent a user from creating a new account in Salesforce?Hi,
thanks for reply.
But i want that only one person can create accounts, other can do update but not create new. so removing create permission from profile is time taking process. can i handle it through trigger or validation?
Waiting for reply.
-
Rahul
MemberMarch 29, 2018 at 8:24 am in reply to: How can we create a relationship with conga composer in Salesforce?Hi Neha,
I am currently working on Conga Composer and its a great tool for document generation. But what I found on your response that you are asking about Congo or Congo Composer.I think you should specify the Name correctly as its very important for others to reply on them.
-
Rahul
MemberMarch 27, 2018 at 12:17 pm in reply to: In which object all Salesforce Account/Opportunity Team Members are added?thanks sir
-
Rahul
MemberMarch 16, 2018 at 11:17 am in reply to: How can we count number of contacts associated with accounts?Hi,
simple query :-
SELECT count(Id) FROM Contact Where AccountID='00141000015cS58'
---Soql query to count total contact related to an account -----List<AggregateResult> results=[SELECT count(Id) FROM Contact Where AccountID='00141000015cS58']; //count() return AggregateResult type value
integer total_contact = Integer.valueOf(results[0].get('expr0') + '');
//integer total_contact=(Integer) results[0].get('expr0');
system.debug('total contact of Internal Queries : '+total_contact);And trigger to show count on a custom field:
trigger FindContactsCount on Contact (after insert, after update, after delete) {
List<Contact> modContacts = Trigger.isDelete ? Trigger.old:Trigger.new;
Set<Id> accIds = new Set<Id>();
for (Contact c: modContacts) {
accIds.add(c.AccountId);
}
List<Account> modAccounts = [Select Name, (Select Id from Contacts) from Account WHERE Id in: accIds ];for (Account a: modAccounts) {
List<Contact> s = a.Contacts;
System.debug('Account:' + a.Name + ' No. of Contacts: '+ s.size());
a.No_of_Contacts__c = s.size();
}
}Hope this code will help you and others 🙂
-
Rahul
MemberFebruary 16, 2018 at 4:43 am in reply to: How to show Close tab on FilterEditPage in case object in Salesforce?Hi,
Thanks to all, My problem solved.
-
Rahul
MemberFebruary 15, 2018 at 1:47 pm in reply to: add close button to a specific user when he check his all cases in SalesforceIt's Done.
I created a permission set -> App Permissions -> check the "Manage Cases" and assign user that you want.
Thanks to all!
-
Rahul
MemberFebruary 15, 2018 at 1:34 pm in reply to: add close button to a specific user when he check his all cases in SalesforceHi,
IF i am selecting “Manage Cases” permission checkbox
Profile -> check the “Manage Cases” permission checkbox
Then close button is showing but now it’s showing to all users who has same profile but i want it to some users.
-
Rahul
MemberFebruary 15, 2018 at 1:33 pm in reply to: How to show Close tab on FilterEditPage in case object in Salesforce? -
Rahul
MemberFebruary 10, 2018 at 5:46 am in reply to: How to handle "Too many soql queries:101" problem in Salesforce?Hi,
Thanks for reply, but i am not calling to query in loop .
Here is my code:listCaseTCR = [SELECT id,RV_Consignment_Status__c ,CN_Number__c,Case_Category__c,Issue_Type__c,Sub_Title__c
FROM Case WHERE Issue_Type__c =:'Tech - CR' AND Sub_Title__c IN:subtitle AND CN_Number__c!='NULL' AND Status!='Closed' AND RV_Is_Parent__c=:FALSE];
if(!listCaseTCR.isEmpty()){
//for(Case cr : listCaseTCR)
total = listCaseTCR.size();
system.debug('total cases of Tech - CR are :'+total);for(i=0;i<total;i++)
{
cnumber=listCaseTCR[i].CN_Number__c;
if(cnumber!=Null && cnumber!='')
trackconsignment(cnumber);
}
}now problem start from here that when i am calling trackconsignment(cnumber); method then this is using 32 soql queries to closed a case and i have a lot of cases in list listCaseTCR so it's firing 101 error.
how to handle it?regards,
Rahul Kumar
-
Rahul
MemberJanuary 31, 2018 at 5:28 am in reply to: What to do in case I am getting Rest API error?Thanks for reply manpreet, but i am not calling such endpoint so i am not getting your point.
I am just calling two api's , in first i am generating the access_token and then uudating this new access token in custom setting. and next to using second api which will take data from sfdc to java applicaion.
now in first case, as i am calling the httpRequest then status is 200Ok but getting this error messageerror "You are running an old version of the app. Please upgrade to the latest version" which is working fine in sandbox.
how to fetch this fault, it's important to me to solve ASAP.
Someone please guide me soon!Thanks,
Rahul Kumar
-
Rahul
MemberJanuary 29, 2018 at 8:34 am in reply to: My old integration connected app is not working now in Salesforcehi,
i am using web services and getting token as well but after that i am using to that token to call another API to fetch data from another application then http() is not calling and showing error their , "You have uncommitted work pending. Please commit or rollback before calling out"Now , How to fetch to uncommitted work pending? and how to commit or rollback it. ?
Thanks, Rahul Kumar
+91 9540840140 -
Rahul
MemberJanuary 16, 2018 at 6:55 am in reply to: What to do in case you are getting "ApiLog msg" error?Hi,
How to make a web service callout first? Please guide me.
Thanks
-
Rahul
MemberJanuary 12, 2018 at 8:10 am in reply to: How can we add a custom field on case comment in case Object record in Salesforce?HI,
Thanks for your reply!
Can you please share any link or code to resolve this?
Thanks.
Rahul kumar
-
Rahul
MemberJanuary 9, 2018 at 1:09 pm in reply to: What is the difference between Custom Setting and Custom Object in Salesforce?Custom Object: Custom objects are custom database tables that allow you to store information unique to your organization.In the API, the names of custom objects include a suffix of two underscores followed by a lowercase “c” . For example, a custom object labeled “Issue” in the Salesforce user interface is Issue__c in that organization’s WSDL.
Custom Setting: Custom Setting allows you to store custom data sets and associate them on an org-wide, profile or user basis. Custom Settings are essentially custom objects that are exposed in the applications cache and are accessible via their own API.
You can certainly build your own custom objects to store settings but using custom settings is much quicker (again they are stored in the application cache) and do not count against SOQL limits when fetched. You can also use custom settings in formula fields, validation rules, Apex code and the Web Services API.
-
Rahul
MemberJanuary 4, 2018 at 8:46 am in reply to: How to control the data of a Picklist in Salesforce?Thanks for reply.
But through this code, it will update that picklist value after saving the case. but i want that as i will select the datetime , same time it will update to picklist before save that case.