Skip to main content

#Official Salesforce Success Community Groups0 discutindo

Cross-Product -Getting Started: http://bit.ly/1n6nD5e -Webinars & Events: http://j.mp/19MZldS -Release Readiness: http://bit.ly/1goeFjK -User Groups: http://sforce.co/1Eb1ufq Reporting & Analytics -Wave: http://sforce.co/1BDZrxT -Reports & Dashboards: http://bit.ly/1iaGycg Mobile -S1: http://bit.ly/1hlZQgQ Sales Cloud -Orders: http://bit.ly/1fUemIj -Forecasting: http://bit.ly/1fUgiAq -Territory Management: http://bit.ly/M62aLM -Productivity: http://bit.ly/M62hqT Community Cloud -Chatter Adoption: http://bit.ly/M62MkK -Chatter Product: http://bit.ly/M62OsM -Implementation: http://bit.ly/M62WbS -Templates: http://j.mp/1aXSYpA -Community Cloud: http://bit.ly/M642El -Files & Content: http://sforce.co/1rkWtd2 -Community Management: http://bit.ly/1ml3zhD Marketing Cloud: http://sfdc.co/3HZH2 Platform -Lightning App Builder: http://sforce.co/1LfTHgs -Workflow Automation: http://bit.ly/1hgk257 -Identity: http://bit.ly/1fUh68B -People: http://bit.ly/M62A

global class ReminderBatch implements Database.Batchable<SObject> {

    global Database.QueryLocator start(Database.BatchableContext BC) {

        // Query for clients with active Crossroads Community User Login profiles who have not created an appointment in the current month

        String query = 'SELECT Id, Name, Email, HouseholdPreferredLanguage__c, Account.Last_Visit_Date__c FROM Contact WHERE Id IN (SELECT ContactId FROM User WHERE Profile.Name = "Crossroads Community Login User")';

        system.debug('query' + query);

        return Database.getQueryLocator(query);

    }

 

    global void execute(Database.BatchableContext BC, List<Contact> cont) {

        List<Messaging.SingleEmailMessage> emailList = new List<Messaging.SingleEmailMessage>();

        // Sending email to client in the client's preferred language

        for (Contact c : cont) {

            system.debug('-contact-' + c);

            Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage();

            if (c.HouseholdPreferredLanguage__c == 'Spanish') {

                email.setTemplateId('00X56000003FlkJ');

                //email.setSubject('Despensa de Crossroads: Recordatorio para hacer su pedido');

            } else {

                email.setTemplateId('00X56000003FlkE');

                //email.setSubject('Crossroads Pantry: Reminder to Place your Order');

            }

            email.setToAddresses(new List<String>{ c.Email });

            email.setTargetObjectId(c.Id);

            email.setSaveAsActivity(true);

            emailList.add(email);

        }

        Messaging.sendEmail(emailList);

        system.debug('Batch class is executed successfully');

    }

 

    global void finish(Database.BatchableContext BC) {

        system.debug('Batch class is executed successfully');

    }

}

 

Can anyone please guide me regarding the above batch apex class, when I am trying to execute the batch apex class, here I am not getting the required records in the developer console log from start method but the same SOQL query is working in salesforce inspector as well as in query editor as well.

#Salesforce Developer #Official Salesforce Success Community Groups

0/9000

I thought I would provide a listing of the groups for products and more you can tap into. These are the groups our salesforce product teams and success teams have launched:

Mobile

- Salesforce1:

http://bit.ly/1hlZQgQ

Sales Cloud

- Salesforce Orders:

http://bit.ly/1fUemIj

- Forecasting:

http://bit.ly/1fUgiAq

- Sales Cloud - Territory Management:

http://bit.ly/M62aLM

- Salesforce Productivity - Official:

http://bit.ly/M62hqT

Service Cloud

- Everything Customer Service:

http://bit.ly/M62ni4

Collaboration Cloud

- Chatter ENGAGE Adoption and Strategy:

http://bit.ly/M62MkK

- Chatter Product Group - Official:

http://bit.ly/M62OsM

- Communities Implementation Grp -Official:

http://bit.ly/M62WbS

- Communities Product Group - Official:

http://bit.ly/M642El

- Salesforce Files: Admin Success:

http://bit.ly/M64eU0

Reporting & Analytics

- Salesforce Reports and Dashboards:

http://bit.ly/1iaGycg

Platform

- Success - Salesforce Identity:

http://bit.ly/1fUh68B

- Salesforce People - Official:

http://bit.ly/M62ASB

Success -

Data.com Community: http://bit.ly/M64v9uWork.com Community: http://bit.ly/M64C58

Salesforce Knowledge User Group:

http://bit.ly/185Ii3m

Success Groups for all:

Success – Getting Started Premier:

http://bit.ly/15P5dK2

Success – Release Readiness Premier:

http://bit.ly/12laJqv

Success - Maximize Adoption Premier:

http://bit.ly/1icdIv8

Success - Performance Edition:

http://bit.ly/177B6mz

Success - Dreamforce to You:

http://bit.ly/1iwx7Hw

Success Groups for Premier Customers

Success - Premier Central:

http://bit.ly/16hUfo3

Success – Getting Started Premier:

http://bit.ly/15P5dK2

Success - Maximize Adoption Premier:

http://bit.ly/1icdIv8

Success – Release Readiness Premier:

http://bit.ly/12laJqv

If I have missed one let me know!

11 comentários
0/9000

Hi Everyone,

                                             Marketing Cloud - Email Studio - Query Activity

 

Please have a look and let me know whether my approch is correct or not.

 

Can we create query to fetchfirst name , last name, email address, open , click , bounce email data  by query activity in single data extension?

I have created a query to fetch all the last month data in single Data extension but I am getting bounce data with open and click date which is impossible. how we can open the bounce email.

 

Query:

 

SELECT

ea.[first name] as 'First Name',

ea.[last name] as 'Last Name',

s.[EmailAddress] as 'Email',

s.SubscriberKey,

s.SubscriberID,

o.[EventDate] as 'Open Date',

c.[EventDate] as 'Click Date',

j.[EmailName] as 'Email Name',

b.[BounceCategory] as 'Bounce Category',

o.[IsUnique] as 'Unique Opens'

FROM

_subscribers as s with (nolock)

INNER JOIN _EnterpriseAttribute ea with (nolock) ON (s.subscriberID = ea._subscriberID)

INNER JOIN _Open as o with (nolock) ON (s.subscriberID = o.subscriberID)

INNER JOIN _Click as c with (nolock) ON (s.subscriberID = c.subscriberID)

INNER JOIN _Bounce as b with (nolock) ON (s.subscriberID = b.subscriberID)

INNER JOIN _Job as j with (nolock) ON (j.JobID = o.JobID)

WHERE

((o.EventDate >= dateadd(month, datediff(month, 0, getdate())-1, 0)

 AND o.EventDate <  dateadd(month, datediff(month, 0, getdate()), 0))

OR

(c.EventDate >= dateadd(month, datediff(month, 0, getdate())-1, 0)

  AND c.EventDate <  dateadd(month, datediff(month, 0, getdate()), 0)))

0/9000

Hi All,

 

Now I'm thinking of starting a Chandigarh User Group on Success Community so that every developer and admin can collaborate with each other.

 

Please let me know if this possible.

 

Thanks,

Vipul

1 comentário
0/9000
@Chuck Nolf @Bob Dickey, following up on our earlier conversation on how do you know which groups to join? Well, there's a topic page for that..and here it is :-) This will give you access to all our salesforce product community groups. Thanks. @Mark Lewin
4 comentários
0/9000