• Emelie Öst
  • NEWBIE
  • 15 Points
  • Member since 2014
  • Sales Process Management Specialist
  • Envirotainer

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 5
    Replies
I'm trying to create a VS page and include in a new tab, showing Activities. I'm using the below code, and it works perfectly on Salesforce classic.

<apex:page> <apex:enhancedList customizable="false" type="Activity" height="320"/> </apex:page>

The VS is enabled for Salesforce mobile apps. However, I get error messages trying to open up the tab in Salesforce1.
Error message: <apex:enhancedList> component cannot be included when >apex:page> 'showHeader' attribute is false

What do I need to put into the code to make it work in Salesforce1? I'm not a developer, appreciate any help I can get. Thanks.
Hi,

Need help with a trigger on the Event object, I want a checkbox = has_attachment__c to become TRUE if an attachment is added to the Event. 

My trigger has 77% coverage, but it doesn't work.. Can anyone help me find out why? Is this a limitation in the Event/Activities object or am I missing something? Code below. Thanks.


trigger SetEventAttachment on Attachment (before insert, after update) 
{
    Set<Id> setParentId = new Set<Id>();
     for(Attachment att: Trigger.new)
     {
           setParentId.add(att.ParentId);
     }

     List<Event> lstEvents = [select Id , Has_Attachment__c from Event where Id IN :setParentId];
     
     For(Event c : lstEvents)
     {
        c.Has_attachment__c = True;
     }

     update lstEvents;

}

Hi,

Having issues to create a trigger that will change a boolean value in the case record once a related task changes status. When a task related to a case is set to status "Completed" and has the subject "Deactivation of ER" I want the Deactivated checkbox in the case to become checked. 

This is what I got, what am I missing? Tried changing it, but keep getting errors.. 

 


trigger Casedeactivated on Case (after insert, after update) {
set<id> caseId=new set<id>();
for(Task ts : trigger.new)
{
CaseId.add(ts.whatid);
Case cs=[Select status from Case where id in :caseId];
if(String.valueOf(ts.whatId).startsWith('005')==TRUE);
if(String.valueOf(ts.status).startsWith('Completed')==TRUE);
if(String.valueOf(ts.subject).startsWith('Deactivation')==TRUE)
{
cs.Deactivated__c='True';
update cs;
}
}
}

I'm trying to create a VS page and include in a new tab, showing Activities. I'm using the below code, and it works perfectly on Salesforce classic.

<apex:page> <apex:enhancedList customizable="false" type="Activity" height="320"/> </apex:page>

The VS is enabled for Salesforce mobile apps. However, I get error messages trying to open up the tab in Salesforce1.
Error message: <apex:enhancedList> component cannot be included when >apex:page> 'showHeader' attribute is false

What do I need to put into the code to make it work in Salesforce1? I'm not a developer, appreciate any help I can get. Thanks.

Hi,

Having issues to create a trigger that will change a boolean value in the case record once a related task changes status. When a task related to a case is set to status "Completed" and has the subject "Deactivation of ER" I want the Deactivated checkbox in the case to become checked. 

This is what I got, what am I missing? Tried changing it, but keep getting errors.. 

 


trigger Casedeactivated on Case (after insert, after update) {
set<id> caseId=new set<id>();
for(Task ts : trigger.new)
{
CaseId.add(ts.whatid);
Case cs=[Select status from Case where id in :caseId];
if(String.valueOf(ts.whatId).startsWith('005')==TRUE);
if(String.valueOf(ts.status).startsWith('Completed')==TRUE);
if(String.valueOf(ts.subject).startsWith('Deactivation')==TRUE)
{
cs.Deactivated__c='True';
update cs;
}
}
}

I've been banging my head on the desk all morning trying to do this, and before I decide there isn't a way, please let me know if I just missed something painfully obvious. Our organization sells classes as our opportunities. In our opportunity section, we have a custom formula field, "Training_Address_Info" which fills in the field from info in the account related to the opportunity. Once the opportunity - the class - is sold, we have to schedule an instructor for it, so we create an event for the instructor, which is related to the opportunity. I'm trying to create a custom activity forumla field which will pick up the "Training_Address_Info" field from that opportunity. There are actually a few fields I'd like to reference from the related opportunity, but there doesn't seem to be a way to create that relationship between the event and opportunity - but I'm still learning lots regularly, so maybe I just haven't figured it out yet? (Apologies for any awkward wording, I'm also still trying to master the lingo!)
  • September 10, 2009
  • Like
  • 0

I have a sandbox on a production system that I've been able to successfully use with the Apex Data Loader and the Eclipse Force IDE for several months.

 

Today, I can no longer login to my sandbox account with either tool.  I reset my security token, but I still cannot login.  I am able to login to the production system without problems with these tools.  I can also login to the sandbox from the Browser without problems.

 

Please help!

Thanks,

Dave