Forcetalks | Yash Pareek | Activity https://www.forcetalks.com/yash-pareek/activity/ Activity feed for Yash Pareek. Sat, 13 Dec 2025 08:51:21 +0530 https://buddypress.org/?v=2.15.3 en-US 30 hourly 2 21be31fc280164787cfb4a7eece63033 Yash Pareek replied to the discussion Need help with syntex in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/need-help-with-syntex/#post-97304 Mon, 25 Oct 2021 12:26:30 +0530 Reply to Need help with syntex

Hello Prafull,

Good Evening

Thank you so much for responding for my query. But my doubt here is that keySet() returns a set and here it is being passed in a list constructor so is is converting the set to List?

Set<String> sStrings = oppty.Map.keySet();

List<Id> opptyIds= = new List<Id>(sStrings);

Is is what is really happening? A set is…

Read more

]]>
8649f9e96a6aaf84d8e175d5d1bc71fb Yash Pareek started the discussion Need help with syntex in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/need-help-with-syntex/ Sun, 24 Oct 2021 06:36:56 +0530 Need help with syntex


@isTest

private class RemindOppyOwnersTest {

// Dummy CRON expression: midnight on March 15.

// Because this is a test, job executes

// immediately after Test.stopTest().

public static String CRON_EXP = '0 0 0 15 3 ? 2022';

static testmethod void testScheduledJob() {

// Create some out of date Opportunity records

List<Opportunity> opptys =…

Read more

]]>
986e95a5da0f9d68286e55c9f852540e Yash Pareek posted an update: @isTestprivate class RemindOppyOwnersTest { // Dummy […] https://www.forcetalks.com/activity/p/126981/ Sun, 24 Oct 2021 06:28:09 +0530 @isTest

private class RemindOppyOwnersTest {

// Dummy CRON expression: midnight on March 15.

// Because this is a test, job executes

// immediately after Test.stopTest().

public static String CRON_EXP = '0 0 0 15 3 ? 2022';

static testmethod void testScheduledJob() {

// Create some out of date Opportunity…

Read more

]]>
0