• thienthang
  • NEWBIE
  • 59 Points
  • Member since 2016
  • h2holdings.com


  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 2
    Likes Given
  • 1
    Questions
  • 12
    Replies
hi,i am in "creating a list view" challenge.i created "My Recent Contacts" view.
i am getting error message saying:-
"Challenge Not yet complete... here's what's wrong: 
The 'My Recent Contacts' list view was not found"
can anyone help me to go furthur.
Could you guys tell me how to fix this issue? I appreciate any tip in advanced, thank you very much. I would like to describe the issue as below

I have tried the example in Trailhead for Apex SOAP Callouts.

Downloaded this xml file: https://th-apex-soap-service.herokuapp.com/assets/calculator.xml

Added this end point to remote site too: https://simple-salesforce-soap-server.herokuapp.com

But unfortuanlly, when I ran the sample code, I got this error: 
Line: 142, Column: 1
System.CalloutException: Web service callout failed: Unexpected element. Parser was expecting element 'http://schemas.xmlsoap.org/soap/envelope/:Envelope' but found ':html'

Follow the error log, I got this explaination: 
20:59:09:000 CALLOUT_RESPONSE               <p>There is no app configured at that hostname.<br/>Perhaps the app owner has renamed it, or you mistyped the URL.</p>

User-added image
 
Could you guys tell me how to fix this issue? I appreciate any tip in advanced, thank you very much. I would like to describe the issue as below

I have tried the example in Trailhead for Apex SOAP Callouts.

Downloaded this xml file: https://th-apex-soap-service.herokuapp.com/assets/calculator.xml

Added this end point to remote site too: https://simple-salesforce-soap-server.herokuapp.com

But unfortuanlly, when I ran the sample code, I got this error: 
Line: 142, Column: 1
System.CalloutException: Web service callout failed: Unexpected element. Parser was expecting element 'http://schemas.xmlsoap.org/soap/envelope/:Envelope' but found ':html'

Follow the error log, I got this explaination: 
20:59:09:000 CALLOUT_RESPONSE               <p>There is no app configured at that hostname.<br/>Perhaps the app owner has renamed it, or you mistyped the URL.</p>

User-added image
 
if i have an application in salesforce classic.is it possible to convert this application to saleforce lightning?.if possible menas how to do it?
I have a scenario like this :
 When a file is sending from external systems to salesforce ,how to convert that file into base64binary format which is the datatype for body in attachment object.
Let's Say if iam adding an attachment to a  lead object from .net code ,How can we convert that into base64binary and add to attachments in salesforce for lead object.
hi,i am in "creating a list view" challenge.i created "My Recent Contacts" view.
i am getting error message saying:-
"Challenge Not yet complete... here's what's wrong: 
The 'My Recent Contacts' list view was not found"
can anyone help me to go furthur.
The following code works fine:
List<Datetime> dtList = new List<Datetime>();
List<Object> oList = (List<Object>) dtList;

The following code, however, does not compile:
Set<Datetime> dtSet = new Set<Datetime>();
Set<Object> oSet = (Set<Object>) dtSet;

It results in a "Incompatible types since an instance of Set<Datetime> is never an instance of Set<Object>" compilation error.

Same thing here:
 
public class TestA {
}
public class TestB extends TestA {
}

List<TestB> tbList = new List<TestB>();
List<TestA> taList = (List<TestA>) tbList; // <--- compiles fine

Set<TestB> tbSet = new Set<TestB>();
Set<TestA> taSet = (Set<TestA>) tbSet;  // <--- doesn't compile
 
And here:
 
List<Account> aList = new List<Account>();
List<SObject> soList = (List<SObject>) aList; // <--- works fine

Set<Account> aSet = new Set<Account>();
Set<SObject> soSet = (Set<SObject>) aSet; // <--- compilation error
 
Am I missing something obvious?  If not, is there a reason you can't cast Sets like this?
I have a lookup field in my object and a text field.

Whenever the value of the lookup field changes the text field should get updated and i am trying to write a trigger for the same.

Please help it's very urgent.
I am having this error "Return type of an Apex action method must be a PageReference. Found: core.apexpages.el.adapters.ApexObjectValueELAdapter "

PLEASE HELP

my controller code is:

global with sharing class AccountClone_Controller {
    private final Id recordId;
    private final Account record;
    private final ApexPages.StandardController controller;

    public AccountClone_Controller(ApexPages.StandardController controller) {
        this.controller = controller;
        this.record = (Account) (this.controller.getRecord());
        this.recordId = this.controller.getId();
    }

    public PageReference cloneAcc() 
    {
        Account newAccount = this.record.clone(false, true, true, false);
        insert newAccount;
  
       // cloning related list contacts
       
       List<Contact> clonedContacts = new List<Contact>();
        for(Contact contact : [SELECT Id, LastName, AccountId FROM Contact WHERE AccountId = : this.recordId])
         {
            Contact clonedContact  = Contact.clone(false, true, true, false);
            clonedContact.AccountId = newAccount.Id;
            clonedContacts.add(clonedContact);
        }

        insert clonedContacts;

        return new ApexPages.StandardController(newAccount).view();
    }
}

VF PAGE :

<apex:page standardController="Account" extensions="AccountClone_Controller" action="{!clone}">
</apex:page>


 
Completed Step 2, Provision the Heroku Connect add-on. Filled out Phone Number changer form, and record successfully updated in my dev org. However, when I went to verify the step, got this error:
Step Not yet complete... here's what's wrong: 
The 'Tim Barr' contact record was not updated correctly in Salesforce. Please check your Heroku Connect setup. 
Note: you may run into errors if you've skipped previous steps.

Please advise. Thanks!
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 ?
The following code works fine:
List<Datetime> dtList = new List<Datetime>();
List<Object> oList = (List<Object>) dtList;

The following code, however, does not compile:
Set<Datetime> dtSet = new Set<Datetime>();
Set<Object> oSet = (Set<Object>) dtSet;

It results in a "Incompatible types since an instance of Set<Datetime> is never an instance of Set<Object>" compilation error.

Same thing here:
 
public class TestA {
}
public class TestB extends TestA {
}

List<TestB> tbList = new List<TestB>();
List<TestA> taList = (List<TestA>) tbList; // <--- compiles fine

Set<TestB> tbSet = new Set<TestB>();
Set<TestA> taSet = (Set<TestA>) tbSet;  // <--- doesn't compile
 
And here:
 
List<Account> aList = new List<Account>();
List<SObject> soList = (List<SObject>) aList; // <--- works fine

Set<Account> aSet = new Set<Account>();
Set<SObject> soSet = (Set<SObject>) aSet; // <--- compilation error
 
Am I missing something obvious?  If not, is there a reason you can't cast Sets like this?
Just finished all of the Trails, Modules and Projects that are available up to this point using 3 different Dev Orgs. (2/3/2016)

Keep them coming. More Trails/Modules/Projects on development would be great. (Lightining,Apex,Visual Force, Javascript, Integration and using the Developer Console)

Thanks for providing these valuable resources !