Forcetalks | Ajit | Activity https://www.forcetalks.com/ajitkumar/activity/ Activity feed for Ajit. Sat, 27 Jun 2026 14:36:01 +0530 https://buddypress.org/?v=2.16.0 en-US 30 hourly 2 1071faa5587e4cabd9e09ae71450cad3 Ajit started the discussion Error while making callout in salesforce in the forum https://www.forcetalks.com/salesforce-topic/error-while-making-callout/ Mon, 09 Jan 2017 05:15:54 +0530 Error while making callout in salesforce

System.CalloutException: java.security.cert.CertificateException: No subject alternative DNS name matching

Has anybody got this issue while making a Callout

]]>
c5db093009ce68a35e9424d6a0c0fd2f Ajit replied to the discussion What is the data transfer limit while using REST API in salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-data-transfer-limit-while-using-rest-api-in-salesforce/#post-17728 Wed, 04 Jan 2017 05:46:16 +0530 Reply to What is the data transfer limit while using REST API in salesforce

Hi,

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.

]]>
5faca148a778bd36beffa9d56023980b Ajit replied to the discussion How to convert lead to account using REST API in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-convert-lead-to-account-using-rest-api/#post-17726 Wed, 04 Jan 2017 05:43:40 +0530 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… Read more

]]>
4897af6b00bffbaa5e6f24419edbf2b7 Ajit replied to the discussion Where is the 'force:slds' class in my salesforce org? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/where-is-the-forceslds-class-in-my-org/#post-17725 Wed, 04 Jan 2017 05:38:17 +0530 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.

]]>
07ce787d19b4a6348ce61142eb1bd492 Ajit started the discussion What are the effects of enabling lightining in my salesforce managed package? in the forum https://www.forcetalks.com/salesforce-topic/effects-of-enabling-lightining-in-my-salesforce-managed-package/ Tue, 22 Nov 2016 06:48:34 +0530 What are the effects of enabling lightining in my salesforce managed package?

Hi guys,

I want to enable lightning in my salesforce org but confused if would effect my manged packages  that are created earlier, please help me out in this

]]>
26c3c0500fecbe4e3a176749eea1069d Ajit replied to the discussion How to skip the first item while iteration through list in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-skip-the-first-item-while-iteration-through-list-in-salesforce/#post-16755 Thu, 20 Oct 2016 12:14:50 +0530 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;

}

}

]]>
92dc00d0bbb628eee002ccf6f3112c5c Ajit replied to the discussion how-to-retrieve-data-from-multiple-objects-in-salesforce-with-one-query in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/soql-query-to-get-data-in-one-query/#post-16754 Thu, 20 Oct 2016 12:10:45 +0530 Reply to how-to-retrieve-data-from-multiple-objects-in-salesforce-with-one-query

Hey 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.

]]>
131075e22c2af8bfb81550fdd373af6f Ajit replied to the discussion How can we calculate number of days excluding weekend values in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-calculate-number-of-days-excluding-weekend-values-in-salesforce/#post-16729 Fri, 14 Oct 2016 15:47:39 +0530 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++;

}
}

]]>
63855cfbc945281da50b8584389ae5ee Ajit replied to the discussion I want a master detail relationship in Salesforce with lead as parent and custom object as child? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/i-want-a-master-detail-relationship-with-lead-as-parent-and-custom-object-as-child/#post-16696 Fri, 07 Oct 2016 09:32:42 +0530 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:

https://success.salesforce.com/ideaView?id=08730000000Bq50

]]>
4fe3d5e313c364595d9a286dd14545d1 Ajit replied to the discussion Salesforce Apex Code to Post a Chatter Post in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/apex-code-to-post-a-chatter-post/#post-16695 Fri, 07 Oct 2016 09:29:17 +0530 Reply to Salesforce Apex Code to Post a Chatter Post

Hi Ratan,

It worked for me but I found one way also by using Rest call out in my apex code

]]>
31d61fa8379bc4a3eeeac4085978fe49 Ajit replied to the discussion Not able to use custom setting in a Salesforce formula field in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/not-able-to-use-custom-setting-in-a-formula-field/#post-16694 Fri, 07 Oct 2016 09:28:02 +0530 Reply to Not able to use custom setting in a Salesforce formula field

Hi Ratan

Thanks it worked for me

]]>
61c9f84efcef338898aa51cdcd776ae1 Ajit started the discussion Salesforce Apex Code to Post a Chatter Post in the forum https://www.forcetalks.com/salesforce-topic/apex-code-to-post-a-chatter-post/ Tue, 04 Oct 2016 12:07:14 +0530 Salesforce Apex Code to Post a Chatter Post

Hi Guys,

I am stuck on a problem where I have to post a chatter post with @mention through apex code in salesforce

]]>
b44594abcbdde09669ccdda95ff711f6 Ajit started the discussion Embed Visualforce Page in Salesforce Lightning Component in the forum https://www.forcetalks.com/salesforce-topic/i-need-to-embed-my-visujalforce-page-in-lightining-component/ Mon, 03 Oct 2016 14:24:54 +0530 Embed Visualforce Page in Salesforce Lightning Component

Hi Guys,

We can add our Lightning components on a visualforce page, but is it possible to use my Vf page on a lightning component.

]]>
a15e8bd6b40c23a0c09e80148c5fb4c8 Ajit started the discussion Why my Salesforce visualforce page is taking to much time to load? in the forum https://www.forcetalks.com/salesforce-topic/visualforce-page-taking-too-much-time-to-load/ Mon, 03 Oct 2016 14:18:54 +0530 Why my Salesforce visualforce page is taking to much time to load?

Hi guys,

What are the parameters by which i can determine why my vf page is taking to much time(I am not facing any view state issue) .

]]>
568502739ba0c95563ca628993a0cfad Ajit started the discussion What are the differences between system mode and user mode in Salesforce? in the forum https://www.forcetalks.com/salesforce-topic/difference-between-system-mode-and-user-mode-in-salesforce/ Mon, 03 Oct 2016 14:16:30 +0530 What are the differences between system mode and user mode in Salesforce?

Hi,

I want to know some differences between system mode and user mode in salesforce, and need to know does trigger runs in system mode or in user mode.

]]>
1c2482a3e2db9c23db1ef7f6a39b2469 Ajit started the discussion Not able to use custom setting in a Salesforce formula field in the forum https://www.forcetalks.com/salesforce-topic/not-able-to-use-custom-setting-in-a-formula-field/ Mon, 03 Oct 2016 14:13:28 +0530 Not able to use custom setting in a Salesforce formula field

Hi guys,

I am facing an issue where I am not able to access the custom setting in a formula while creating a flow.

]]>
8f4eccfd9f791eefc08f51c474ea2864 Ajit started the discussion Lead convert creating duplicate contact, Account and Opportunity in the forum https://www.forcetalks.com/salesforce-topic/lead-convert-creating-duplicate-contactaccount-and-opportunity/ Mon, 03 Oct 2016 14:12:05 +0530 Lead convert creating duplicate contact, Account and Opportunity

Hi guys,

I have an issue with standard lead convert button, when clicked multiple time while converting the lead creating duplicate account , contact and Opportunity

]]>
f9d0719a98184038160a2fa17d76186d Ajit replied to the discussion What is the purpose of BATCH APEX in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-purpose-of-batch-apex-in-salesforce/#post-16581 Mon, 03 Oct 2016 06:11:01 +0530 Reply to What is the purpose of BATCH APEX in Salesforce?

]]>
9b9c9062b038883268c040410d1b7c4a Ajit replied to the discussion Sobjet detail page in lightining in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/sobjet-detail-page-in-lightining/#post-16580 Mon, 03 Oct 2016 06:08:23 +0530 Reply to Sobjet detail page in lightining

Hi Jai,

Thanks for your reply

]]>
8589b30de4b416d6777d015f1289968f Ajit replied to the discussion In what condition we should use the set or list in SOQL in saleforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/in-what-condition-we-should-use-the-set-or-list-in-soql-in-saleforce/#post-16525 Fri, 30 Sep 2016 13:39:27 +0530 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.

 

]]>
bb4e3717f50e1829e317d77f3631480b Ajit replied to the discussion How can we do intersection between picklist and recordtype inside apex? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-do-intersection-between-picklist-and-recordtype-inside-apex/#post-16496 Thu, 29 Sep 2016 14:40:51 +0530 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… Read more

]]>
5a30e90c510ead5672c3a27fe2792154 Ajit replied to the discussion How to make an editable page for the searched values in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-make-an-editable-page-for-the-searched-values-in-salesforce/#post-16492 Thu, 29 Sep 2016 14:35:05 +0530 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.

]]>
83535a4526721a92a32799c8fc42cbec Ajit replied to the discussion In Salesforce, what does different debug log levels means? Why do we need different levels? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/in-salesforce-what-does-different-debug-log-levels-means-why-do-we-need-different-levels/#post-16485 Thu, 29 Sep 2016 14:19:59 +0530 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.

]]>
127cb3e5789fec3a212d530dcd019cae Ajit replied to the discussion How to see the whole debug log in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-see-the-whole-debug-log-in-salesforce/#post-16482 Thu, 29 Sep 2016 14:18:45 +0530 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.

]]>
461c3d65a6ddef0fa8239647093d042b Ajit replied to the discussion How different is returning null from the returning ApexPages.currentPage() as a result of a controller action? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-different-is-returning-null-from-the-returning-apexpages-currentpage-as-a-result-of-a-controller-action/#post-16480 Thu, 29 Sep 2016 14:15:58 +0530 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

]]>
866bb90ea68123abca496eae97d3d6c0 Ajit replied to the discussion What is the difference between system.today() and date.today() in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-difference-between-system-today-and-date-today-in-salesforce/#post-16478 Thu, 29 Sep 2016 14:06:42 +0530 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.

]]>
6c14e7db65efdf751d2448149078d432 Ajit replied to the discussion How to make a roll up summary on Lookup Relationship Objects in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-make-a-roll-up-summary-on-lookup-relationship-objects/#post-16477 Thu, 29 Sep 2016 14:02:00 +0530 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

]]>
3c18bc776b79b3da72e2a705b756ffc0 Ajit replied to the discussion Help me in a trigger making rollup summary for lookup relation objects in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/help-me-in-a-trigger-making-rollup-summary-for-lookup-relation-objects-in-salesforce/#post-16476 Thu, 29 Sep 2016 14:00:27 +0530 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.

]]>
517822f442bd70793b2509584d03b2b2 Ajit replied to the discussion Help me in a trigger making rollup summary for lookup relation objects in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/help-me-in-a-trigger-making-rollup-summary-for-lookup-relation-objects-in-salesforce/#post-16476 Thu, 29 Sep 2016 14:00:27 +0530 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

]]>
56aa87dfddc5ac4861b527e5fc103ba0 Ajit replied to the discussion What is the use of recordSetVar on Salesforce visualforce page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-use-of-recordsetvar-on-visualforce-page/#post-16475 Thu, 29 Sep 2016 13:57:14 +0530 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

]]>
8de2053b3bc21fd616f96403a4719ba1 Ajit replied to the discussion What is the purpose of BATCH APEX in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-purpose-of-batch-apex/#post-16469 Thu, 29 Sep 2016 13:49:07 +0530 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 :

  1. Batch class have increased governor limits then apex classes.
  2. Batch have  three methods that are mandatory (Start, Execute and finish)…

Read more

]]>
ed243b23eeffab61f9335e39995f881a Ajit replied to the discussion Sobjet detail page in lightining in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/sobjet-detail-page-in-lightining/#post-15201 Fri, 12 Aug 2016 10:02:33 +0530 Reply to Sobjet detail page in lightining

Hi,

I do not want this i want kind of apex detail in lightining

]]>
d6bc834fa54bfade5f13c9c1c2029347 Ajit started the discussion Sobjet detail page in lightining in the forum https://www.forcetalks.com/salesforce-topic/sobjet-detail-page-in-lightining/ Thu, 11 Aug 2016 10:11:32 +0530 Sobjet detail page in lightining

Hi ,

In salesforce classic we have a apex:detail tag to create detail page, So do we have some tag in Ligtining to create the detail page same as Apex:detail.

]]>
ed31c86fe590a6cfe38a1cf55b3a8385 Ajit replied to the discussion Is it possible to access aura:id of one component to another component ? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-it-possible-to-access-auraid-of-one-component-to-another-component/#post-15175 Thu, 11 Aug 2016 10:09:19 +0530 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”);

]]>
28d34bf42359ddd663e6087974d3b8b4 Ajit replied to the discussion What is the use of gethost() method in Salesforce apex? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-use-of-gethost-method-in-apex/#post-15151 Thu, 11 Aug 2016 06:55:22 +0530 Reply to What is the use of gethost() method in Salesforce apex?

Hi Tannu,
The URL instance method getHost() is used to get the hostname of the Salesforce server that you are using. For instance, if your Salesforce instance is ap1 then you would get the result as “ap1.salesforce.com”.

In case of custom domains, suppose your org has a custom domain “my-dev-org” the method would… Read more

]]>
42ad6435a30823e1c530a4eeedad235b Ajit replied to the discussion How can we separate the ID's based on the record type? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-separate-the-ids-based-on-the-record-type/#post-15150 Thu, 11 Aug 2016 06:53:03 +0530 Reply to How can we separate the ID's based on the record type?

Hey Mohit,

you will have to create number of sets equal to the record type that you have for eg: if there are two record types then create 2 sets and add values in the set on the basis of record types.

map<id,String>mapidvsRecTypeId = new map<id,String>();

for (Account acc : [select id , recordTypeId… Read more

]]>
57bc1042554927e35fe6d912cd4c6691 Ajit started the discussion Can we update custom setting using flows in Salesforce? in the forum https://www.forcetalks.com/salesforce-topic/update-custom-setting-using-flows-in-saleforce/ Thu, 11 Aug 2016 06:36:12 +0530 Can we update custom setting using flows in Salesforce?

Hi ,

can we update the custom setting using flows in salesforce, if the answer is yes then how we can do this can any body help me in  this.

]]>
6823f1e5a14ec76724ee6213b4816786 Ajit replied to the discussion How to display Account Owner name in Visualforce Page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-display-account-owner-name-in-visualforce-page/#post-15097 Wed, 10 Aug 2016 12:18:13 +0530 Reply to How to display Account Owner name in Visualforce Page?

Hi Pranav,

 

Do you have tried this

<apex:outputfield value=”{! Account.Ownerid}”/>

set the value of Account.Ownerid in you controller with id of current user in the constructor do let me know if it worked or not

]]>
10423bf4fc951b18889ef3f00d1015a3 Ajit replied to the discussion Error in printing series 1, (1+1)^2= 4, (4+1)^2 =25 upto 10 terms. in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/error-in-printing-series-1-112-4-412-25-upto-10-terms/#post-15096 Wed, 10 Aug 2016 12:09:13 +0530 Reply to Error in printing series 1, (1+1)^2= 4, (4+1)^2 =25 upto 10 terms.

Hi Pranav,

System.debug(n1 + ‘, (‘ + n1 + ‘+’ + n2 + ‘)^’ + n3 + ‘=’ + n4 + ‘ , ‘);

it is in for loop use it outside of the loop.

]]>
f515453c53f1d561659e6a1cc22d2ab2 Ajit replied to the discussion Is there any logs for Email Alerts to verify if email was delivered? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-there-any-logs-for-email-alerts-to-verify-if-email-was-delivered/#post-15095 Wed, 10 Aug 2016 12:02:49 +0530 Reply to Is there any logs for Email Alerts to verify if email was delivered?

Hi Tanu,

Go to Setup Logs > Email Logs there you can request for an email log that are being sent from you org will be sent on you email ID.

]]>
fca9e7ccb306f9eb823aaac1f36fd335 Ajit replied to the discussion How can we ignore spaces when comparing two values? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-ignore-spaces-when-comparing-two-values/#post-15094 Wed, 10 Aug 2016 11:55:53 +0530 Reply to How can we ignore spaces when comparing two values?

Hi Pranav,

If you are comparing string then you can use the string methods to delete white spaces from the string

String s1 = ‘ Hello Jane ‘;
String s2 = ‘HelloJane’;
System.assertEquals(s2, s1.deleteWhitespace());

it will delete all the white spaces.

 

tring s1 = ‘ Hello! ‘;
String trimmed =… Read more

]]>
ff174c9ca47e7f87346de94a54eec064 Ajit replied to the discussion How can I enable the inline editing on custom vf page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/enable-the-inline-editing-on-custom-vf-page/#post-12241 Wed, 25 May 2016 10:28:46 +0530 Reply to How can I enable the inline editing on custom vf page?

Hi Naman,

This can be done by using a apex tag : enableInlineEditing=”true” on the custom vf page.

]]>
1c6f10cd7586bf650ebb61f8b71f5e31 Ajit replied to the discussion in the forum https://www.forcetalks.com/salesforce-topic/what-are-the-data-migration-tools-and-their-limitations/#post-12235 Wed, 25 May 2016 10:14:30 +0530 Hi Himanshu,

There are lot of data migration tool which you can use to migrate data in salesforce :

  1. Data  Loader IO : Its limitation is that you can,t process records more then 50000 at a time.
  2. Data Loader : Provided by salesforce and can be downloaded from your org, its limitation is that it is not much user friendly as data…

Read more

]]>
11d888e9499fa20ca4c4f59f1db87c8a Ajit replied to the discussion How to get the picklist value in formula fields? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/get-the-picklist-value-in-formula-fields/#post-12232 Wed, 25 May 2016 09:55:24 +0530 Reply to How to get the picklist value in formula fields?

Hi Naman,

You can’t use picklist values directly as TEXT(field name) , you have to use ISPICKVAL(FieldName)

]]>
45183ecac588d1581f3572401ecff89e Ajit replied to the discussion Method to find corresponding value of a key in map? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/method-to-find-corresponding-value-of-a-key-in-map/#post-12176 Tue, 24 May 2016 10:20:42 +0530 Reply to Method to find corresponding value of a key in map?

HI Ajay,

You can use this method

map.get(key); it will return the value stored against this key.

]]>
5058d53c4bbf418897725766c3d5fa2f Ajit replied to the discussion How can I get a debug log for the sites guest user/public profile? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-get-a-debug-log-for-the-sites-guest-userpublic-profile/#post-12175 Tue, 24 May 2016 10:13:53 +0530 Reply to How can I get a debug log for the sites guest user/public profile?

Steps to set the debug logs :

Setup > Monitoring > Debug log

where you put the user name put the name of your site, and the log is set for the site guest user.

]]>
e13b1fe52453ee41e3d63f2608f551c2 Ajit replied to the discussion How do you delete a class from production without using an IDE? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-do-you-delete-a-class-from-production-without-using-an-ide/#post-12172 Tue, 24 May 2016 10:09:57 +0530 Reply to How do you delete a class from production without using an IDE?

Hi Ravi,

You can do it by using ANT script

<?xml version=”1.0″ encoding=”UTF-8″?>
<Package xmlns=”http://soap.sforce.com/2016/04/metadata”>
<fullName>codepkg</fullName>
<types>
<members>Test1</members>
<members>Test2</members>
<name>ApexClass</name>
</types>
<version>36.0</version>
</Package>
Run the below script in… Read more

]]>
3229c24c5bf9cfdf453077449551c8f1 Ajit replied to the discussion Can we create custom visualforce page for recordtype in standard object? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-we-create-custom-visualforce-page-for-recordtype-in-standard-object/#post-12168 Tue, 24 May 2016 10:06:17 +0530 Reply to Can we create custom visualforce page for recordtype in standard object?

Hi Piyush,

Yes you can you have to query out all the recordtypes in your controller, and after that create a select list and pass the list in the select list.

]]>
d9d494b0275b8851685b014c2ebeab9e Ajit replied to the discussion How to override the standard page only for specific record Type? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-override-the-standard-page-only-for-specific-record-type/#post-12165 Tue, 24 May 2016 09:56:32 +0530 Reply to How to override the standard page only for specific record Type?

Hi Piyush,

You can simply do this by creating multiple page layouts and assign for all the record types and after that crate a vf page using apex detail and after that assign that page to the view button and you are done.

]]>
40f40f605a029a4c37f2a6b2c25a7d25 Ajit replied to the discussion Why can't I use a wrapped sObject in an apex:outputField? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/why-cant-i-use-a-wrapped-sobject-in-an-apexoutputfield/#post-12163 Tue, 24 May 2016 09:49:02 +0530 Reply to Why can't I use a wrapped sObject in an apex:outputField?

Hi Ravi

Need to see your code to solve this problem, from your question it is not clear that how you are using the sObject in your wrapper class.

]]>