• jvan001
  • NEWBIE
  • 10 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
Check Challenge looks for the name of the action to be: New Detailed Account 

The system does not allow you to add a name with spaces.  It has to be: NewDetailedAccount

Thus, check challenge fails.  Check Challenge should look for name: NewDetailedAccount, not: New Detailed Account

Error: Name: The Action API Name can only contain underscores and alphanumeric characters. It must be unique, begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.

Dear all,

 

i am having some problem with my trigger. 

 

So, I have custom object called Request.  When the picklist value "Atteneded " is stored in the Request  object's I want it to update Contact checkbox.  It works correctly for the Contact object.  I want to enhance the following code only for few records on contact record types .its updating on everything. 

 

 

------------------------------- 

// Update Contact field: "Visited" to TRUE when Attendance Status record is Update to Attended.

trigger UpdateVisitedCheckbox on Request__c (after insert, after update) {


map< id, contact > contacts = new map< id, contact >();

// Create trigger for new or selectedAttendance Status record
for( Request__c record:trigger.new) 

//if((Recordtype == 'Prospective_Student' or 'Student')
{
if(record.Attendance_Status__c == 'Attended')

// Update checkbox field on the Contact record to TRUE
contacts.put(record.contact__c, new contact(id=record.contact__c, Visited__c = TRUE)); 
}

update contacts.values();

 

 

Any help will be appriciated.