• Alexandr Zhurylo
  • NEWBIE
  • 25 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 1
    Likes Given
  • 4
    Questions
  • 11
    Replies
I successfully completed the Salesforce Certified Platform Developer II - Multiple Choice (WI21) but didn't receive a certification logo and the certificate doesn't appear in the trailhead profile. Could anyone please give me a piece of advice?

Hi

A couple of days ago I started Salesforce Certified Exam, answered 1 question, and then it was paused. The image on the screen said: 'Please wait for our specialist to connect with you as soon as possible'. 20 minutes past nothing happened.
I connected to Kryterion Support, they answered me that no able to reschedule or cancel an exam and I should open a case in Salesforce Support.
SF Support has not been answered for a couple of days.
The exam still suspended now.

Does anyone has a suspended issue or know some solution?

I'm trying to crete new User, and recieve this error 
Line: 15, Column: 1
System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, Salesforce CRM Content User is not allowed for this License Type.: [UserPermissions]
Does anyone have any ideas how to fix it?

Hi

A couple of days ago I started Salesforce Certified Exam, answered 1 question, and then it was paused. The image on the screen said: 'Please wait for our specialist to connect with you as soon as possible'. 20 minutes past nothing happened.
I connected to Kryterion Support, they answered me that no able to reschedule or cancel an exam and I should open a case in Salesforce Support.
SF Support has not been answered for a couple of days.
The exam still suspended now.

Does anyone has a suspended issue or know some solution?

I successfully completed the Salesforce Certified Platform Developer II - Multiple Choice (WI21) but didn't receive a certification logo and the certificate doesn't appear in the trailhead profile. Could anyone please give me a piece of advice?

Hi

A couple of days ago I started Salesforce Certified Exam, answered 1 question, and then it was paused. The image on the screen said: 'Please wait for our specialist to connect with you as soon as possible'. 20 minutes past nothing happened.
I connected to Kryterion Support, they answered me that no able to reschedule or cancel an exam and I should open a case in Salesforce Support.
SF Support has not been answered for a couple of days.
The exam still suspended now.

Does anyone has a suspended issue or know some solution?

I'm trying to crete new User, and recieve this error 
Line: 15, Column: 1
System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, Salesforce CRM Content User is not allowed for this License Type.: [UserPermissions]
Does anyone have any ideas how to fix it?
hi gyus... This code is working fine..when ever I insert or update record it sends email.. but I am quite confused  so plz explain me the use of line 16,line 19,line 25 & what is the use of flag... and tell me that is messaging.singleEmailMessage is defined keyword...??
Last but not the least I want to edit the code in such a way that if i insert the data with dataloader where there is more than one contact then send email to more than one contact is inserted at a time....

************apex class**********
public with sharing class HelperContactTrigger {
    public static List<Contact> sendEmail(List<Contact>Contacts)
    {
     //query on template object
        EmailTemplate et=[Select id from EmailTemplate where name=:'Sales: New Customer Email'];

        //list of emails
        List<Messaging.SingleEmailMessage> emails = new List<Messaging.SingleEmailMessage>();   
        
        for(Contact con : Contacts)
        {
          //check for Account
            if(con.AccountId != null && con.Email != null){

                //initiallize messaging method
                Messaging.SingleEmailMessage singleMail = new Messaging.SingleEmailMessage();

                //set object Id
                singleMail.setTargetObjectId(con.Id);

                //set template Id
                singleMail.setTemplateId(et.Id);

                //flag to false to stop inserting activity history
                singleMail.setSaveAsActivity(false);

                //add mail
                emails.add(singleMail);
            }
        }
            //send mail
        Messaging.sendEmail(emails);

        return Contacts;          
        
    }

    public static List<Contact> sendEmailafter(List<Contact>Contacts)
    {
    //query on template object
        EmailTemplate et=[Select id from EmailTemplate where name=:'Sales: New Customer Email'];

        //list of emails
        List<Messaging.SingleEmailMessage> emails = new List<Messaging.SingleEmailMessage>();   
        
        for(Contact con : Contacts)
        {
          //check for Account
            if(con.AccountId != null && con.Email != null){

                //initiallize messaging method
                Messaging.SingleEmailMessage singleMail = new Messaging.SingleEmailMessage();

                //set object Id
                singleMail.setTargetObjectId(con.Id);

                //set template Id
                singleMail.setTemplateId(et.Id);

                //flag to false to stop inserting activity history
                singleMail.setSaveAsActivity(false);

                //add mail
                emails.add(singleMail);
            }
         }
            //send mail
        Messaging.sendEmail(emails);

        return Contacts;          
        }
    }

*********Apex trigger********
trigger SendEmailToAccount on Contact (after insert,after update) 
{
    if(Trigger.isAfter)
    {
        if(Trigger.isInsert )
        { 
            //helper class for single email but bulk messages
            HelperContactTrigger.sendEmail(trigger.new);
        }
    }
        if(trigger.isAfter && trigger.isUpdate )
        {           
         HelperContactTrigger.sendEmailafter(trigger.new);
        }
}