• Nicole Rebelo
  • NEWBIE
  • 40 Points
  • Member since 2017

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 4
    Replies
It keeps reverting to org62 and telling me I don't have permission. I'm at this page: 
https://trailhead.salesforce.com/trails/lex_admin_migration/modules/lightning_app_builder/units/lightning_app_builder_custom_comps  and when I'm asked to copy and paste this link and install it https://login.salesforce.com/packaging/installPackage.apexp?p0=04tj0000001mMYP, it's taking me to Org62 (I'm an employee) and telling me I don't have permission. So I've tried logging into my playground from another browser, without authenticating, but don't know the password, since it logs me in through our system. When I try to reset the password, I'm told I don't have my birth city correct to complete the process.    Techforce sent me here for help. 
Hello,
I have received great help with a trigger that displays a warning message when the "public" checkbox is not checked on the creation of a new task with a specific record type (contact object). Upon trying to deploy this, I ran in to the "No code coverage" message, and subsquently learned that a test class mus be written and the trigger must be tested before a deployment is possible. 

I am not a programmer, really not sure how I would tackle this. I am hopeful that someone here can help me with a test class for this trigger? I would really apprecaite it! Trigger follows:


trigger PublicFORBRYANTHC on Task (after insert,after Update) {
    Set<Id> ids=new Set<Id>();
    Set<Id> Conids=new Set<Id>();

    for(Task t:trigger.new){

    ids.add(t.id);
        if(t.WhoId != null && (((String)t.WhoId).substring(0,3) == '003') ) {
        conIds.add(t.WhoId);
        }
    }
    List<Contact> con=[Select id from contact where id in:conIds and RecordTypeId in (SELECT Id FROM RecordType WHERE Name = 'Bryant HC')];

    for(Task t:trigger.new){

        if(t.IsVisibleInSelfService<> true && con.size()>0 ) {

                    t.AddError('Public Checkbox must be checked!');

        }

    }

}
 
Im creating this code from scratch but I'm getting and error: Illegal assignment from List<TSF_vod__c> to List<String>

public static String getMyObjAB() { 
        List <String> TSFObjetivos = new List<String> ();
        List <String> Objterr = 
        [SELECT Call_Reminder_TSF__c from TSF_vod__c where Account_vod__c = '0015000001Bbyb9AAB'];
        return MyObjAB;
    }

What can I do?
Hi guys,

We have a visualforce page where 5 of our tasks are displayed.

Currently the Activity Date is not being correctly ordered as you can check in the following images:

User-added image

User-added image
Here you have the visualforce page code:
 
<apex:column value="{!task.ActivityDate}" headerValue="Activity Date"/>    
<apex:column value="{!task.ReminderDateTime}" headerValue="Reminder Date"/>
How can we order this according to the most recent day until the oldest one?

Thanks guys!


 
It keeps reverting to org62 and telling me I don't have permission. I'm at this page: 
https://trailhead.salesforce.com/trails/lex_admin_migration/modules/lightning_app_builder/units/lightning_app_builder_custom_comps  and when I'm asked to copy and paste this link and install it https://login.salesforce.com/packaging/installPackage.apexp?p0=04tj0000001mMYP, it's taking me to Org62 (I'm an employee) and telling me I don't have permission. So I've tried logging into my playground from another browser, without authenticating, but don't know the password, since it logs me in through our system. When I try to reset the password, I'm told I don't have my birth city correct to complete the process.    Techforce sent me here for help.