Ajit Kumar
IndividualForum Replies Created
-
Ajit
MemberJanuary 4, 2017 at 5:46 am in reply to: What is the data transfer limit while using REST API in salesforceHi,
We can fetch upto 6 MB of response size in a Rest callout, and for an Asynchronus call we can have a limit of 12 MB.
-
Ajit
MemberJanuary 4, 2017 at 5:44 am in reply to: How can I use SVG icons in Salesforce Lightning Component?Hi,
Follow the link below it will help you:
https://lightningdesignsystem.com/faq/#how-do-i-display-svg-icons-with-lightning-components
-
Ajit
MemberJanuary 4, 2017 at 5:43 am in reply to: How to convert lead to account using REST API in salesforce?Hi
try this code below and let me know it worked or not :
@RestResource(urlMapping='/Lead/*')
global with sharing class RestLeadConvert {@HttpGet
global static String doGet() {
String ret = 'fail';
RestRequest req = RestContext.request;
RestResponse res = RestContext.response;
String leadId = req.requestURI.substring(req.requestURI.lastIndexOf('/')+1);
Database.LeadConvert lc = new Database.LeadConvert();
lc.setLeadId(leadId);LeadStatus convertStatus = [SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true LIMIT 1];
lc.setConvertedStatus(convertStatus.MasterLabel);
Database.LeadConvertResult lcr ;
try{
lcr = Database.convertLead(lc);
system.debug('*****lcr.isSuccess()'+lcr.isSuccess());
ret = 'ok';
}
catch(exception ex){
system.debug('***NOT CONVERTED**');
}
return ret;
}
} -
Ajit
MemberJanuary 4, 2017 at 5:38 am in reply to: Where is the 'force:slds' class in my salesforce org?Hi,
Its not located in your org, It is an existing standard class in lightining which contains the ltest SLDS(CSS), so we have two option either use the SLDS as a static resource or extend this class.
-
Ajit
MemberOctober 20, 2016 at 12:14 pm in reply to: How to skip the first item while iteration through list in salesforce?Hi
counter i=0;
for(wraper : listOfWrapper){
counter++;
if(counter!=1){
//do you stuff;
}
}
- This reply was modified 8 years, 1 month ago by Ajit.
-
Ajit
MemberOctober 20, 2016 at 12:10 pm in reply to: how-to-retrieve-data-from-multiple-objects-in-salesforce-with-one-queryHey Joe,
If want to query records on multiple object in a single query then you have to use SOSL rather then SOQL query.
eg :
FIND {"Joe Smith" OR "Joe Smythe"}
IN Name Fields
RETURNING lead(name, phone), contact(name, phone)but you can not perform DML operation.
-
Ajit
MemberOctober 14, 2016 at 3:47 pm in reply to: How can we calculate number of days excluding weekend values in salesforce?Hi Pranav,
Try this code :
Integer numberDays = Date.daysInMonth(2016, 2);
integer counter=0;
for(integer i=0; i<numberDays; i++){
Date dt = date.newInstance(2016, 1, 1+i);
String dayOfMonth=dt.format('EEEE');if(dayOfMonth != 'Saturday' && dayOfMonth != 'Sunday'){
counter++;}
} -
Ajit
MemberOctober 7, 2016 at 9:32 am in reply to: I want a master detail relationship in Salesforce with lead as parent and custom object as child?Hi Pranav,
We cannot do this, there is a Idea on Idea Exchange:
-
Hi Ratan,
It worked for me but I found one way also by using Rest call out in my apex code
-
Ajit
MemberOctober 7, 2016 at 9:28 am in reply to: Not able to use custom setting in a Salesforce formula fieldHi Ratan
Thanks it worked for me
-
Ajit
MemberOctober 3, 2016 at 6:11 am in reply to: What is the purpose of BATCH APEX in Salesforce?You can go through this link :
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm
-
Hi Jai,
Thanks for your reply
-
Ajit
MemberSeptember 30, 2016 at 1:39 pm in reply to: In what condition we should use the set or list in SOQL in saleforce?Hi Mohit,
It depends on the need, when you know that you can have duplicate values and you don not want all the values including the duplicate then Set should be used. And list can be used to only store values.
-
Ajit
MemberSeptember 29, 2016 at 2:40 pm in reply to: How can we do intersection between picklist and recordtype inside apex?HI Mohit,
You have to add the values dynamically from the picklist and recordtype and can be stored in two separate list and can be merged together when the list have all the values.
To get values from picklist dynamically follow the link:
-
Ajit
MemberSeptember 29, 2016 at 2:35 pm in reply to: How to make an editable page for the searched values in Salesforce?Hi Pranav
For these I think you have to create a custom page to select and search products, and one a product is selected you have to create a pagereference button to redirect to the a custom edit page on the basis of selected product id.
-
Ajit
MemberSeptember 29, 2016 at 2:19 pm in reply to: In Salesforce, what does different debug log levels means? Why do we need different levels?Hi Paranav,
In Debug logs we a lot of redundant logs, so filter the logs we have certain debug labels.
-
Ajit
MemberSeptember 29, 2016 at 2:18 pm in reply to: How to see the whole debug log in Salesforce?Hi Pranav,
If you are still not able to get the log, you can create a custom object and you can store the system.debug value in it.
-
Ajit
MemberSeptember 29, 2016 at 2:15 pm in reply to: How different is returning null from the returning ApexPages.currentPage() as a result of a controller action?Hi Mohit ,
Can you please elaborate you question it is not clear to me
-
Ajit
MemberSeptember 29, 2016 at 2:06 pm in reply to: What is the difference between system.today() and date.today() in salesforce?Hi Pranav,
There is no difference between these two the output is same in both case.
-
Ajit
MemberSeptember 29, 2016 at 2:02 pm in reply to: How to make a roll up summary on Lookup Relationship Objects in Salesforce?Hi Pranav,
We can make rollup summries on Lookup relation, but yes we can write a trigger to fulfill your problem
-
Ajit
MemberSeptember 29, 2016 at 2:00 pm in reply to: Help me in a trigger making rollup summary for lookup relation objects in salesforce?Hi Mohit,
Your problem is not clear with me, rather you want the total number of related records or you want to rollup some field value of the related records.
-
Ajit
MemberSeptember 29, 2016 at 1:57 pm in reply to: What is the use of recordSetVar on Salesforce visualforce page?Hi Pranav,
RecordSetvar is used on vf page to display a list of records when using standard controller on the page
-
Ajit
MemberSeptember 29, 2016 at 1:49 pm in reply to: What is the purpose of BATCH APEX in Salesforce?Hi Naveen,
When we have to Update or Insert bulkdata in salesforce or we have to make web services callouts then we use the batch apex.
The main difference between apex and batch classes are as follows :
- Batch class have increased governor limits then apex classes.
- Batch have three methods that are mandatory (Start, Execute and finish) but apex class has no boundation of methods.
- Batch classes can be scheduled.
-
Hi,
I do not want this i want kind of apex detail in lightining
-
Ajit
MemberAugust 11, 2016 at 10:09 am in reply to: Is it possible to access aura:id of one component to another component ?Hi Piyush,
I am not getting your actual problem but i wanted to access the a component from its Id so i did this.
var test = component.find("cmpId1").find("cmpid2");