• Briana Kruse 2
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
I am trying to create a link to the related list case teams on this page with no luck!

<apex:page standardcontroller="Case"> <apex:stylesheet value="{!URLFOR($Resource.SLDS0121, 'assets/styles/salesforce-lightning-design-system-vf.css')}" />
<div class = "slds">
<table>
<tr>
<td>
<div class="slds-text-heading--label">Lead Actions</div></td>
</tr>
<tr>
<td><apex:outputfield value="{!Case.Field_History__c}" /></td>
 </tr>
</table>
 </div>
</apex:page>

 

I have my first trigger written as before insert and need to change it to be before insert, before update but I'm stuck! Any ideas?

trigger TaskCustomActivity on Task (before insert,  before update){
if (trigger.isBefore)
{
if(Trigger.isInsert)
{
for(Task.t = trigger.new){
t. custom_activity_type__c = Type;
insert cont;
}
}
else if (Trigger.IsUpdate)
{
Type = '(Update)';
Custom_Activity_Type__c = Trigger.new;
update cont;
}
}
}

This is my first trigger, so please be nice! :) 

We have to build a trigger that will write the standard field Type onto a custom text field, Custom Activity Type on task. This is what I have but in reading this, I think I wrote it to write the actual word "type" and not the value in type. How do I map in a field?

trigger CustomActivity on Task (before insert) {
    //Goal:to update custom activity type with "type" so that 
    //it can be captured in custom activity reports
    for (Task t: Trigger.new) {
        t.Custom_Activity_Type__c = 'Type';
    }
}

I have my first trigger written as before insert and need to change it to be before insert, before update but I'm stuck! Any ideas?

trigger TaskCustomActivity on Task (before insert,  before update){
if (trigger.isBefore)
{
if(Trigger.isInsert)
{
for(Task.t = trigger.new){
t. custom_activity_type__c = Type;
insert cont;
}
}
else if (Trigger.IsUpdate)
{
Type = '(Update)';
Custom_Activity_Type__c = Trigger.new;
update cont;
}
}
}

This is my first trigger, so please be nice! :) 

We have to build a trigger that will write the standard field Type onto a custom text field, Custom Activity Type on task. This is what I have but in reading this, I think I wrote it to write the actual word "type" and not the value in type. How do I map in a field?

trigger CustomActivity on Task (before insert) {
    //Goal:to update custom activity type with "type" so that 
    //it can be captured in custom activity reports
    for (Task t: Trigger.new) {
        t.Custom_Activity_Type__c = 'Type';
    }
}