• Marypearl Parnell
  • NEWBIE
  • 0 Points
  • Member since 2015
  • Desktop Support/Salesforce Admin Developer
  • Pana-Pacific

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 7
    Replies
Trailhead Project: Build a Lightning Component to Override a Standard Action
Challenge: Use Lighting Data Service

Receiving a component error when submitting data for new Property record. Error received once I click submit. I can't find the d.run function anywhere in the code
May I get some assitance with my Apex Trigger?
The trigger should fire if the Travel Request record isn't an exemption. This is indicated by a check box:
 
trigger CreateTask on Travel_Request__c (before insert) 
{
list<task> listtask = new list<task>();
    for (travel request = trigger.new)
    {if (Exemption == 'True')
    {task NewTask = new task();
    NewTask.subject = 'Create Call Report';
    NewTask.duedate = system.today().adddays(7);
    NewTask.whatID = Id;
    listtask.add(NewTask);
    }
    
    }
if (listtask.size()>0)
insert listtask;
}

 
Receving error that notification isn't on the dashboard, although it's present and active.
Why won't this challenge clear me?
I'm having issues with pulling my default email template in the Case feed. Here's what I've got so far:
global class SmartTemplateLoader implements Support.EmailTemplateSelector {
    // Empty constructor
    global SmartTemplateLoader() {
    }
    // The main interface method
    global ID getDefaultEmailTemplateId(ID caseId) {
    Case c = [SELECT Subject, Description, Recordtype.Name FROM Case WHERE Id=:caseID];
    
    EmailTemplate et;
    
    if (c.RecordType.Name.contains('Geotab')){
        et = [SELECT id FROM EmailTemplate WHERE DeveloperName = 'Geotab'];
    } else if(c.RecordType.Name.contains('Telematics')) {
        et = [SELECT id FROM EmailTemplate WHERE DeveloperName = 'Telematics'];
    }
    
        return et.id;
    }
}
When attempting a junction creation within my Visualforce flow, an error throws due to a field missing. The Case Asset Junction custom object only has 2 custom fields and 3 standard fields. I'm not sure which additional field needs to be called in this particular step within the flow.
Any assistance or suggestions are welcome.
I'm looking for a way to create a validation rule on a particular picklist field value. It's looking more like I'll need a trigger for this particular request, and I'm not the best when it comes to writing triggers or classes.
Seeing as I'm the only Salesforce developer on site, I'm hoping for assistance in this task.

Here's how the rule goes:
For the Asset ID custom object, on only the Geotab record type, if the field Activation Status equals 'Complete', then the following fields are required:

MyAdmin Activation Date <> Blank
MyAdmin Plan <> Blank
Geotab Billing <> Blank
Customer Type <> Blank
Service Plan <> Blank
Primary Billing Party <> Blank
JDE Service Account <> Blank
Billing Start Date <> Blank
Recurring Revenue <> Blank
I'm currently working on Challenge 3 and am dealing with trying to fix this error:

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: SYCIXETK

Can anyone guide what is the issue?
May I get some assitance with my Apex Trigger?
The trigger should fire if the Travel Request record isn't an exemption. This is indicated by a check box:
 
trigger CreateTask on Travel_Request__c (before insert) 
{
list<task> listtask = new list<task>();
    for (travel request = trigger.new)
    {if (Exemption == 'True')
    {task NewTask = new task();
    NewTask.subject = 'Create Call Report';
    NewTask.duedate = system.today().adddays(7);
    NewTask.whatID = Id;
    listtask.add(NewTask);
    }
    
    }
if (listtask.size()>0)
insert listtask;
}

 
I'm looking for a way to create a validation rule on a particular picklist field value. It's looking more like I'll need a trigger for this particular request, and I'm not the best when it comes to writing triggers or classes.
Seeing as I'm the only Salesforce developer on site, I'm hoping for assistance in this task.

Here's how the rule goes:
For the Asset ID custom object, on only the Geotab record type, if the field Activation Status equals 'Complete', then the following fields are required:

MyAdmin Activation Date <> Blank
MyAdmin Plan <> Blank
Geotab Billing <> Blank
Customer Type <> Blank
Service Plan <> Blank
Primary Billing Party <> Blank
JDE Service Account <> Blank
Billing Start Date <> Blank
Recurring Revenue <> Blank

Hi,

 

I need to add a custom button on a detail field that create a pdf document using the custom object data

and send a mail using a mail template with the created pdf document in attachement.

 

Can anyone suggest me how to implement this.

 

Thanks,