Forcetalks | vishnu | Activity https://www.forcetalks.com/vishnu/activity/ Activity feed for vishnu. Sat, 13 Dec 2025 20:37:20 +0530 https://buddypress.org/?v=2.15.3 en-US 30 hourly 2 dfc02ad1176fbc47f14f3f0a5160d699 vishnu replied to the discussion What is the difference between Clone() and DeepClone() in Salesforce Apex? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-difference-between-clone-and-deepclone-in-apex/#post-15990 Wed, 14 Sep 2016 07:46:53 +0530 Reply to What is the difference between Clone() and DeepClone() in Salesforce Apex?

Hi tanu,

If a list is cloned, it duplicates it and has reference.
If a list is DeepCloned, it duplicates and doesn’t have any reference.

]]>
0e2a291521c10b88ec07860dae994bc6 vishnu replied to the discussion Is there any way of mapping a key prefix to an object type? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-there-any-way-of-mapping-a-key-prefix-to-an-object-type/#post-15989 Wed, 14 Sep 2016 07:38:51 +0530 Reply to Is there any way of mapping a key prefix to an object type?

Hi mohit,

String objectAPIName = someId.getSObjectType().getDescribe().getName();

]]>
73780d4634c626c79e946f8b2d9ab93c vishnu replied to the discussion How can I generate a Set from a List structure in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-generate-a-set-from-a-list-structure/#post-15963 Mon, 12 Sep 2016 07:53:04 +0530 Reply to How can I generate a Set from a List structure in Salesforce?

hi Pranav,

you get set like this

List listname=Databse.query(write your query);
set setname=new set (new Map(setname).keyset());

hope this helps

]]>
3d7876afcf6b2f3a5e4dc6fd5960af02 vishnu became a registered member https://www.forcetalks.com/activity/p/12648/ Mon, 12 Sep 2016 07:35:00 +0530 0