• Varun Singh
  • SMARTIE
  • 786 Points
  • Member since 2017


  • Chatter
    Feed
  • 22
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 157
    Replies
Hello all,

been doing some research, and understand that I cannot directly reference a contact or account record type from the task object. Here is my need:

I created a new record type for the contact object, let's call it ABC. Anytime a user creates a activity of type 'task' where the Parent object is a contact and the record type is ABC, I want to make sure the user clicks the "Public" checkbox on the task record when he/she saves the record. 

I was thinking either show an error if it's not checked, or simply set the checkbox to TRUE when the record is saved, regardless of whether the user remembered or not. 

From what I understand, this will require a trigger to be written. Looking for some help / sample trigger code that would get me there, as I am not a programmer :|

thank you!
 
I have an Apex Class that creates a Public List of Tasks
public class AgentTasks {
    
    List<Task> tasks;

    public List<Task> getTasks() {
        if(tasks == null)
            tasks = [SELECT subject, status, owner.name FROM Task LIMIT 10];
        return tasks;
    }
       public PageReference Save()
    {
        update tasks ;
        return new PageReference('/apex/TaskTest');
    } 
}
And I have a Visualforce page that uses an ApexPageBlock Table:
 
<apex:page controller="AgentTasks" id="thePage" standardStylesheets="false">
	<style>
        .StatusClass {
             background-color: {!IF(CONTAINS(tasks.Status,"Not Started"), "red","")};
        }
    </style>
    
    <apex:form>
    <apex:pageblock>
    <apex:pageBlockTable value="{!tasks}" var="task" id="theTable" rowClasses="odd,even" styleClass="tableClass">
        <apex:column headerValue="Status" headerClass="Status" styleClass="StatusClass">
            <apex:outputField value="{!task.Status}" id="Status1"><apex:inlineEditSupport showOnEdit="saveButton, cancelButton" 
            hideOnEdit="editButton" event="ondblclick" changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/></apex:outputField>
        </apex:column>

        <apex:column>
            <apex:facet name="header">Subject</apex:facet>
            <apex:outputText value="{!task.subject}"/>
        </apex:column>

    </apex:pageBlockTable>
        <apex:pageBlockButtons >
            <apex:commandButton action="{!Save}" value="Save"/>
      </apex:pageBlockButtons>
    </apex:pageblock>
    </apex:form>
</apex:page>

If I replace the background-color style tag with just "red" I'm able to save and display a visualforce page where the output values for Status are red. But if I write that line of code :
 
.StatusClass {
             background-color: {!IF(CONTAINS(tasks.Status,"Not Started"), "red","")};
        }

My error message is: Unknown property 'VisualforceArrayList.Status.' How can I fix this so that I can reference it in the style tag?
Hi,

I am trying to campare dates in a button javascript, but it doesn't work. Can anyone help me?

Code:
{!REQUIRESCRIPT("/soap/ajax/36.0/connection.js")} 
{!REQUIRESCRIPT("/soap/ajax/36.0/apex.js")} 

var tempdate = new Date("{!Case.Next_action_required_date__c}");
var agora = "{!NOW()}";

if( tempdate < agora)

alert("Please, inform the Next Action Required Date")
Hi,

I am extremely new at writing apex code and I managed to write a trigger, but I don't quite know how to write a test class for it. My trigger looks like this:

trigger Changestage on Opportunity ( before update) {

    set<ID> oppId = new set<ID>();
    for (Opportunity opp: Trigger.new) {
    if ((opp.StageName == 'Detailed Design') && (trigger.oldMap.get(opp.Id).StageName == 'Concept Design') && (opp.Equipment_Margin__c == null)) {
          opp.addError('Cannot move the stage to Detailed Design if the Equipment Margin is empty');
        }  
    }
}

Any help is much appreciated.

Thank you!

Alexandra
Can somebody please tell me that what is SingleEmailMessage in "Messaging.SingleEmailMessage".
I have uderstood that Messaging is a class but I haven't understood what is SingleEmailMessage. Is it a static method or innerclass or what?
trigger CopyBillingAddtoShpAdd on Account (before insert, before update) {
    for( Account ACC : trigger.new){
    if(Check_Billing_as_Shipping__c == True){
               ACC.BillingStreet          = ACC.ShippingStreet;    
               ACC.BillingCity            = ACC.ShippingCity;  
               ACC.BillingZip/Postal Code = ACC.ShippingZip/Postal Code;    
               ACC.BillingCountry         = ACC.ShippingCountry;    
}
}
}
trigger locationAcc on Account(before insert)
{
List<Account> listAcc= new List<Account>();
List<Contact> listCon= new List<Contact>();
for(Account a: trigger.new)
{
listAcc.add(a.Location__c);
for(Contact c: listAcc )
{
// please give any idea.
}
}
Below is the code how can we write test class for this page with controller. Please help me
<apex:page controller="listViewsForContactRecords">
<apex:form >
            <apex:pageBlock >
           
            <apex:pageBlockTable value="{!accountsToDisplay}" var="acc" columns="2" id="pgtparent">
            <apex:column headerValue="AccountName" >
            <apex:commandLink value="{!acc.name}" action="{!MethodToCall}" rerender="pgbContacts" status="status">
            <apex:param value="{!acc.Id}" name="idForConts" assignTo="{!recid}"/>
            </apex:commandLink>
            </apex:column>
            <apex:column value="{!acc.Phone}"/>
            </apex:pageblockTable>
            </apex:pageBlock> 
    <apex:pageBlock title="Account Related Contacts"> 
       
    <apex:outputPanel id="pgbContacts">
    <apex:actionStatus startText="Please Wait Loading..." stopText="" id="status"></apex:actionStatus>
    <apex:pageblockTable value="{!conList }" var="cons">
    <apex:column headerValue="FirstName">
    <apex:inputText value="{!cons.FirstName}"/>
    </apex:column>
    <apex:column headerValue="LastName">
    <apex:inputText value="{!cons.LastName}"/>
    </apex:column>
    <apex:column >
    <apex:commandButton value="EditContact"/>
    </apex:column>
    </apex:pageblockTable>
    </apex:outputPanel> 
    </apex:pageBlock>
</apex:form>
</apex:page>
Controller:
public class listViewsForContactRecords {

    public list<contact> conList{get;set;}
    public string recid{get;set;}

    set<id> accIds = new set<id>();
    public list<account> accountsToDisplay{get;set;}
    public account getAcounts() {
        return null;
    }

public listViewsForContactRecords(){
accountsToDisplay = [select id, name, phone from account limit 10];

}
 public void MethodToCall() {
        conList = [select id, FirstName, LastName from contact where accountid=:recid];

    }
}
Hi All,

I have just began practicing salesforce development and would like to ask for your help. I have a custom object Circuit__c and I create a custom button overriden by a visualforce page that leads to Send Email page with specific Email template and field values. I have to set different values on "Additional to" email field based on the value in a custom picklist or lookup field on the Circuit object. I'm not sure if I should use trigger or add some codes on my class. Here is the sample code:
 
public with sharing class emailHelper {
  // In a separate class so that it can be used elsewhere
public Circuit__c ckt {get;set;}    
public User myUser { get;set;}

public emailHelper(ApexPages.StandardController stdController)
{ ckt = (Circuit__c)stdController.getRecord(); 
}

User currentUser = [Select email from User where username = :UserInfo.getUserName() limit 1];  

public  PageReference sendEmail() {
PageReference emailPage = new PageReference('/email/author/emailauthor.jsp');
Map<String, String> params = emailPage.getParameters();
params.put('p3_lkid',ckt.ID); //email will be attached to the activity history of the account where the button was clicked using the ckt.ID
params.put('template_id','00X7F000001GKu8'); /// template ID of the email template to be shown goes here
params.put('rtype','003');
params.put('p24','belgarjobelle@gmail.com; sample@dummy.org; blabla@email.com'); //currentUser.Email showing in "Additional to" field
params.put('p5','support@intelletrace.com'); //email address showing in Bcc field
params.put('new_template','1'); 
params.put('retURL',ApexPages.currentPage().getUrl()); //after send button is clicked, go back to the account where the button was clicked
     
return emailPage;
  
    }  
}

Thanks for your help!
here is my apex class
public class wrapperexample2 {
    public wrapperexample2(ApexPages.StandardSetController controller) {        
    }
public List<Schema.contact> SList{get;set;}  //this line was not cover in test class
List<wrapper> WList=New List<wrapper>();
public List<wrapper> getLstwrapperstring()    //this line was not cover in test class
    {
        slist=[SELECT Account_name__c,Name,Phone,Title,Email FROM Contact WHERE AccountId =:ApexPages.CurrentPage().GetParameters().Get('id')];  //this line was not cover in test class
        for(Integer i=0 ;i<SList.size();i++){          //this line was not cover in test class
           WList.add(New wrapper(SList[i].name,SList[i].Account_name__c,SList[i].phone,SList[i].Title,SList[i].Email)); //this line was not cover in test class
        }
        return WList;   //this line was not cover in test class
    }
 public class wrapper
 {
     public string cid{get;set;}
     public string cName{get;set;}
     public string cPhone{get;set;}
     public string cTitle{get;set;}
      public string cEmail{get;set;}
   public wrapper(string cName,string cid,string cPhone,string cTitle,string cEmail)
     {
         this.cid=cid;
         this.cName=cName;
         this.cPhone=cPhone;
         this.cTitle=cTitle;
         this.cEmail=cEmail;
     }  
 }
}

and here is my current test class
@isTest
public class contact_pdf_test {
    
    static testMethod void data1(){
      List<contact> acc = new List<contact>();
        contact a = New contact();
        a.firstName = 'mycontact';
        a.lastName = 'mycontact';
        a.phone='124365';
        a.Title='Customer';
        a.Email ='test@gmail.com';
        acc.add(a);
        insert acc; 
              
 ApexPages.StandardSetController  sac = new ApexPages.StandardSetController (acc);  
 wrapperexample2 aop = new wrapperexample2(sac);   
     test.startTest();
        PageReference myVfPage = Page.contact_pdf;
         Test.setCurrentPage(myVfPage);
        String mycontact;
        String cid;
        String cPhone;
        String cTitle;
        String cEmail;
        wrapperexample2.wrapper sacc = new wrapperexample2.wrapper(mycontact,cid,cPhone,cTitle,cEmail);                    
     test.stopTest();
    }
 }

 
Apex class:
public class multiAddCEx {

    public multiAddCEx(ApexPages.StandardSetController controller) {

    }


    public multiAddCEx(ApexPages.StandardController controller) {

    }

List <Expense_Line_Item__c> CExList;
public Id cID = ApexPages.currentPage().getParameters().get('Id');
public Id getID {get; set;}
public PageReference reset()  {
CExList = [select name, Expense__c, Expense_Head__c, Amount__c, Date__c, Sub_Expense__c, Payment_Type__c, Cost_Head__c from Expense_Line_Item__c where Expense__c =: cID order by createddate limit 15 ];
return null; }
public List <Expense_Line_Item__c> getCExs() {
   if(CExList == null) reset();
   return CExList;}
public void setAccounts(List <Expense_Line_Item__c> cexs) {
   CExList = cexs;}
public PageReference save() {
upsert CExList;
ApexPages.Message myMsg = new ApexPages.message(ApexPages.Severity.Info, 'Records Saved Successfully');
return null;}
public PageReference add() {
CExList.add(New Expense_Line_Item__c(Expense__c= cID));
return null; }
}
Apex Class
-------------------
public class Calci {
    
    integer a;
    integer b;
    
    public void cal()
    {
        a=10;
        b=45;
        integer r;
        if(a>b)
        {
            r=a+b;
            system.debug('if a greter than b values should be added'+r);
        }
        else if(a<b)
        {
            r = a-b;
            system.debug('if a is lesser than b values should be subtract'+r);
        }
        else
        {
            system.debug('values are equal');
        }
    }
}


Test Class
--------------
@isTest
public class CalciTest {
    public static testmethod void test(){
       
        Calci c = new Calci();
        c.cal();
    }
}
How can I write Test class for the given Apex class?

Apex Class:
public with sharing class logCallCtrl{
    public Task followUpTask        {   get;set;    } 
    public Boolean isFollowup       {   get;set;    }
    private ApexPages.StandardController stdController;
    public logCallCtrl(ApexPages.StandardController stdController){
        String whoId = ApexPages.currentPage().getParameters().get('who_id');
        String sobjectName = String.isNotBlank(whoId) ? Id.valueOf(whoId).getSObjectType().getDescribe().getName() : '';
        this.stdController = stdController;
        Task objTask = (Task)stdController.getRecord();
        objTask.Status = 'Completed';
        objTask.OwnerID = Userinfo.getUserId();
        objTask.Subject = 'Call';
        objTask.WhatId = ApexPages.currentPage().getParameters().get('what_id');
        objTask.WhoId = sobjectName == 'Lead' || sobjectName == 'Contact' ? objTask.WhoId : null;
        isFollowup = false;  
        followUpTask = new Task(Status = 'Open', OwnerID = Userinfo.getUserId(), Subject = 'Call Follow-up', WhatId=objTask.WhatId, WhoId=objTask.WhoId);
    }
    
    public PageReference save(){  
        String retURL = apexpages.currentpage().getparameters().get('retURL');  
        stdController.save();
        if(isFollowup){
            if(followUpTask.OwnerID == null){
                ApexPages.Message errorMessage1 = new ApexPages.Message(ApexPages.Severity.ERROR,'\'Assigned To\' can not be blank.');
                ApexPages.Message errorMessage2 = new ApexPages.Message(ApexPages.Severity.ERROR,'If you do not want to add Follow-up Task, uncheck \'Add follow-up task?\'');
                ApexPages.addMessage(errorMessage1);
                ApexPages.addMessage(errorMessage2);
                return null;
            } 
            insert followUpTask;
        }
        return String.isNotBlank(retURL) ? new PageReference(retURL) : new PageReference('/'+stdController.getId());
    }
   
}

Visualforce Page:
<apex:page title="Log a Call" standardController="Task" tabStyle="Task" extensions="logCallCtrl">
    <apex:sectionHeader title="Log a Call" subtitle="Log a Call" help="/apex/help page"/>
    <apex:form id="formId">
        <apex:pageMessages />
        <apex:pageBlock id="pageBlockTask" title="Task Edit">
            <div style="border: 0px solid rgb(0,191,255); width:100%;height:23px; background:#CEF6F5;">
                <p style="margin-left:20px;">
                    <table width="100%">
                        <tr><td align="left" width="50%"><B>Task Information </B></td><td align="right" width="30%"><b><span style="color:red;">|</span> = Required Information</b></td></tr>
                    </table>
                </p>
            </div>
            <apex:pageBlockSection id="pbs" columns="2" collapsible="false" >
                <apex:inputField value="{!Task.Subject}" required="true"/>
                <apex:outputLabel />
                <apex:inputField value="{!Task.OwnerId}"/>
                <apex:inputField value="{!Task.ActivityDate}"/>
                <apex:inputField value="{!Task.WhoId}"/>
                <apex:inputField value="{!Task.WhatId}"/>
                <apex:outputField value="{!Task.Status}"/>
                <apex:inputField value="{!Task.Type}" required="true"/>
                <apex:inputField value="{!Task.Description}"/>
            </apex:pageBlockSection>
            <br/>
            <apex:actionRegion >
                <apex:inputCheckbox id="chkbox" value="{!isFollowup}"><b>Add follow-up task?</b>
                     <apex:actionsupport event="onclick" rerender="oppanel"/>
                </apex:inputCheckbox>
                <apex:outputPanel id="oppanel">
                     <apex:outputPanel rendered="{!isFollowup}">
                         <div style="border: 0px solid rgb(0,191,255); width:100%;height:23px; background:#CEF6F5;">
                            <p style="margin-left:20px;">
                                <table width="100%">
                                    <tr>
                                        <td align="left" width="50%"><b>Schedule follow-up task</b></td>
                                        <td align="right" width="30%" style="text-align:right;">
                                        </td>
                                    </tr>
                                </table>
                            </p>
                        </div>
                        <div style="border: 0px solid rgb(0,191,255); width:100%;height:23px; background:#CEF6F5;"><p style="margin-left:20px;">
                            <table width="100%">
                                <tr><td align="left" width="50%"><B>Task Information </B></td><td align="right" width="30%"><b><span style="color:red;">|</span> = Required Information</b></td></tr>
                            </table></p>
                        </div>                
                        <apex:pageBlockSection id="pbs2" columns="2" collapsible="false" >
                            <apex:inputField value="{!followUpTask.Subject}" />
                            <apex:outputLabel />
                            <apex:inputField value="{!followUpTask.OwnerId}" required="false"/>
                            <apex:inputField value="{!followUpTask.ActivityDate}"/>
                            <apex:inputField value="{!followUpTask.WhoId}"/>
                            <apex:inputField value="{!followUpTask.WhatId}"/>
                            <apex:inputField value="{!followUpTask.Status}"/>
                            <apex:inputField value="{!followUpTask.Type}" />
                            <apex:inputField value="{!followUpTask.Description}"/>
                        </apex:pageBlockSection>
                    </apex:outputPanel>
                </apex:outputPanel>
            </apex:actionRegion>
            <apex:pageBlockButtons >
                <apex:commandButton Value="Save" action="{!save}" />
                <apex:commandButton Value="Cancel" action="{!Cancel}" />
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>

In custom "Save and New" button  I've to fetch the same parent from Lookup in every record when we click the save & new button.
How can we achive this ? Please reply ASAP
User-added image

Like in this pic every new record same Account should be selected when we select for the first record!! 


Anyone Please reply ASAP.
It will be very helpful for us.

 
  • July 11, 2017
  • Like
  • 0
Getting the error "Challenge Not yet complete... here's what's wrong:  The 'Opportunities Updates' report was not an Opportunities report type"

In the sample video there is acutally report called "Opportunities" but in my Developer.Demo account there is no report called "Opportunites", see pics below for more clarity. What are my next steps?




User-added imageUser-added image
Hi all,

I have two objects A and B.A is master and B is detail object.In object A,I have a record, when I open that record and scroll down, in related list we have list of child objects and a new button.when I create a new child record from Object A  related list by clicking new button it will redirect to VF page.I have controller for this VF page.So my recruitment is to get the Object A record id to controller.Can any one help me .
Hi Everyone,

Could anyone explain me that how to make Http callouts in batch class with example.

Note:Need to call the batch class from apex trigger
Hello

I want to display different icons in lightning:dataTable based on row condition.
For example
If row1.someField == 'A' then iconName = A
If row2.someField == 'B' then iconName = B

I have looked at documentation but it seems we can specify icons at the colmun level .

This is what I have done so far but it always display the same icon :
 
component.set('v.resultColumns', [
            		{label: 'Provenance', 						fieldName: 'provenance', 				 cellAttributes: { iconName: 'action:call' }}

                ]);

 
I have a text field "Student Marks" which allows only numbers and fixed string.( numbers >=100 and string "AB").

I have to write a validation for this.can anyone help me out with this.

Thanks in advance. 
Hi ,
can we Update the Records From parent to child & also  from child to parent  (viceversa ) through trigger .
I have a requirement where i have 10-15 Fields In parent Whose values i need to update in child fields &  fields with Same values  i have in child ,If I update any child field values from Child that should Update the values in parent. How We can do this through Trigger when record is Inserted & also While Updated ?  
In one interview i had a question like How many relationship can be defiend on junction object??
 
My ans was one : i.e Many To Many Relationship

is it correct//
Hi, me again....   :/
My org seems to be 'hanging' after the create PDF click....see below.
User-added image
Challenge is not completing with an error message of:  Could not find a completed Service Appointment with the Description of 'Drill'
I can see the completed SA with the required description. Any assistance appreciated.  MT

I want to restrict all users, except admins, to our "Line of Sight - 10%" opportunity stage. Stated differently, "Line of Sight - 10%%" is the only opportunity stage a user should be able to set their opportunity to unless they're an admin. I've written the following rule. It allows admins to set to any stage like it should. However, it prevents everyone else from setting any opportunity stage. Meaning, users can't set the opportunity stage to "Line of Sight - 10%" like they should be able to. They also can't set it to any other stage but that is correct. Any idea what I'm missing?
 

AND(
	OR(
	ISNEW()
	ISCHANGED(StageName)),
	NOT(ISPICKVAL(StageName, "Line of Sight - 10%")),
	$Profile.Name <> "Admin")
Thank you,
Nick
Hello all,

been doing some research, and understand that I cannot directly reference a contact or account record type from the task object. Here is my need:

I created a new record type for the contact object, let's call it ABC. Anytime a user creates a activity of type 'task' where the Parent object is a contact and the record type is ABC, I want to make sure the user clicks the "Public" checkbox on the task record when he/she saves the record. 

I was thinking either show an error if it's not checked, or simply set the checkbox to TRUE when the record is saved, regardless of whether the user remembered or not. 

From what I understand, this will require a trigger to be written. Looking for some help / sample trigger code that would get me there, as I am not a programmer :|

thank you!
 
I have an Apex Class that creates a Public List of Tasks
public class AgentTasks {
    
    List<Task> tasks;

    public List<Task> getTasks() {
        if(tasks == null)
            tasks = [SELECT subject, status, owner.name FROM Task LIMIT 10];
        return tasks;
    }
       public PageReference Save()
    {
        update tasks ;
        return new PageReference('/apex/TaskTest');
    } 
}
And I have a Visualforce page that uses an ApexPageBlock Table:
 
<apex:page controller="AgentTasks" id="thePage" standardStylesheets="false">
	<style>
        .StatusClass {
             background-color: {!IF(CONTAINS(tasks.Status,"Not Started"), "red","")};
        }
    </style>
    
    <apex:form>
    <apex:pageblock>
    <apex:pageBlockTable value="{!tasks}" var="task" id="theTable" rowClasses="odd,even" styleClass="tableClass">
        <apex:column headerValue="Status" headerClass="Status" styleClass="StatusClass">
            <apex:outputField value="{!task.Status}" id="Status1"><apex:inlineEditSupport showOnEdit="saveButton, cancelButton" 
            hideOnEdit="editButton" event="ondblclick" changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/></apex:outputField>
        </apex:column>

        <apex:column>
            <apex:facet name="header">Subject</apex:facet>
            <apex:outputText value="{!task.subject}"/>
        </apex:column>

    </apex:pageBlockTable>
        <apex:pageBlockButtons >
            <apex:commandButton action="{!Save}" value="Save"/>
      </apex:pageBlockButtons>
    </apex:pageblock>
    </apex:form>
</apex:page>

If I replace the background-color style tag with just "red" I'm able to save and display a visualforce page where the output values for Status are red. But if I write that line of code :
 
.StatusClass {
             background-color: {!IF(CONTAINS(tasks.Status,"Not Started"), "red","")};
        }

My error message is: Unknown property 'VisualforceArrayList.Status.' How can I fix this so that I can reference it in the style tag?
what are the best practises for Exception handling in salesforce.I have gone through SF Document but didn't find any where.
Thanks
I've created a lightning component and included that in VF page, and that component is button (ui:button),
For this ui:button component, I want write function when I click this button all contacts should be displayed in the screen, 
Can anyone tell me  the function?
 
<apex:page >
    <apex:includeLightning />

    <div style= "width:90%;height:70px;align:center" id="FlipContainer" />
    <br/>
    <div style= "width:90%;height:40px;align:center" id="ButtonCon" />
    
    
    <script>
    
    $Lightning.use("c:DemoFlipContain", function(){
       $Lightning.createComponent("c:FlipCard", 
                                  { 	borderColor : "#16325c", 
                                     	bgColor 	: "#16325c" ,
                                     	fontColor	: "White",
										frontText : "Race2Cloud Technologies",
                                   		backText : "Partnership with Salesforce"
                                  },
                                  "FlipContainer",
                                  function(cmp) {
                                      console.log('Component created, do something cool here');
                                     
                                  });  
         
        $Lightning.createComponent("ui:button",
          { label : "See Contacts!" },
          "ButtonCon",
          function(cmp) {
            
              
          });
    });
    </script>    
</apex:page>

 
  • October 09, 2017
  • Like
  • 0
I was trying to write a validation rule , but it is not reflecting which i expected. please help there is a picklist field having 6 values namely active, processing, accepted,rejected, Admitted, discharge. once these picklist value has been saved as admitted we need to lock down this value for all users except system admin user.
I have been struck for the below validation rule.
AND(PRIORVALUE(Status) = "Admitted",NOT($User.Id = "005P00000015Vvm"),ISCHANGED(Status))
Thanks in advance.
Hi,

I am trying to campare dates in a button javascript, but it doesn't work. Can anyone help me?

Code:
{!REQUIRESCRIPT("/soap/ajax/36.0/connection.js")} 
{!REQUIRESCRIPT("/soap/ajax/36.0/apex.js")} 

var tempdate = new Date("{!Case.Next_action_required_date__c}");
var agora = "{!NOW()}";

if( tempdate < agora)

alert("Please, inform the Next Action Required Date")
Hi all,

I'm stuck in the Apex Integration Services - Apex SOAP Callouts challenge with the following message "The Apex class 'ParkLocator' does not appear to be calling the SOAP endpoint.".

Could you please advise ?