• Jun Ke
  • NEWBIE
  • 20 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 2
    Likes Given
  • 3
    Questions
  • 3
    Replies
I followed the tutorial in Getting Started with Native iOS Development.

When I run the app, the simulator popped up:
Salesforce Error
Cannot connect to salesforce: An ssl error has occured and a secure connection to the server cannot be made.
  • December 27, 2016
  • Like
  • 1
Hi All,

I am doing Apex Rest Callouts in Trailhead Apex Integration Service Module.
https://developer.salesforce.com/trailhead/force_com_dev_intermediate/apex_integration_services/apex_integration_rest_callouts

This is AnimalLocator class.
public class AnimalLocator{
    public static String getAnimalNameById(Integer x){
        Http h = new Http();
        HttpRequest req = new HttpRequest();
        
        req.setEndpoint('https://th-apex-http-callout.herokuapp.com/animals/' + x);
        
        req.setMethod('GET');
        
        HttpResponse res = h.send(req);
        Map<String, Object> results = (Map<String, Object>)JSON.deserializeUntyped(res.getBody());
        Map<String, Object> animal = (Map<String, Object>) results.get('animal');
        return (String)animal.get('name');
    }
}
However, I was encountered this error when checking challenge.
Challenge Not yet complete... here's what's wrong: 
The Apex class does not appear to be calling the REST endpoint using HttpRequest.
I have no idea what it means, but I have call the REST endpoint.
  • December 24, 2015
  • Like
  • 0
I found this in the following documentation "Did you know that you can drag the publisher icon (Publisher Actions icon) into either the lower left or lower right corner of the Salesforce1 screen? Try it!", but I have no clue how to do it, or I misunderstood it.

https://developer.salesforce.com/docs/atlas.en-us.salesforce1admin.meta/salesforce1admin/actions_more.htm
I followed the tutorial in Getting Started with Native iOS Development.

When I run the app, the simulator popped up:
Salesforce Error
Cannot connect to salesforce: An ssl error has occured and a secure connection to the server cannot be made.
  • December 27, 2016
  • Like
  • 1
Hi All,

I am doing Apex Rest Callouts in Trailhead Apex Integration Service Module.
https://developer.salesforce.com/trailhead/force_com_dev_intermediate/apex_integration_services/apex_integration_rest_callouts

This is AnimalLocator class.
public class AnimalLocator{
    public static String getAnimalNameById(Integer x){
        Http h = new Http();
        HttpRequest req = new HttpRequest();
        
        req.setEndpoint('https://th-apex-http-callout.herokuapp.com/animals/' + x);
        
        req.setMethod('GET');
        
        HttpResponse res = h.send(req);
        Map<String, Object> results = (Map<String, Object>)JSON.deserializeUntyped(res.getBody());
        Map<String, Object> animal = (Map<String, Object>) results.get('animal');
        return (String)animal.get('name');
    }
}
However, I was encountered this error when checking challenge.
Challenge Not yet complete... here's what's wrong: 
The Apex class does not appear to be calling the REST endpoint using HttpRequest.
I have no idea what it means, but I have call the REST endpoint.
  • December 24, 2015
  • Like
  • 0
Hi friends, m getting below error in above trailhead,, please help me to solve this issue,
error: The page isn't using the Bootstrap List Group component.
I found this in the following documentation "Did you know that you can drag the publisher icon (Publisher Actions icon) into either the lower left or lower right corner of the Salesforce1 screen? Try it!", but I have no clue how to do it, or I misunderstood it.

https://developer.salesforce.com/docs/atlas.en-us.salesforce1admin.meta/salesforce1admin/actions_more.htm

Hi,

 

Can you please help on how to use sforce.one.createRecord function. I'm trying to redirect the user to standard new event page using this function on click of a link. But the page simply refreshes. Below is my code. Please help.

 

function createEvent(){
sforce.one.createRecord('Event', null);
}

 

<apex:outputLink  onClick="createEvent()">New Event</apex:outputLink>

  • December 09, 2013
  • Like
  • 1

I'm working with the Force.com Integration Workbook.  Everything is fine until I get to Tutorial #3! 

 

The workbook talks about setting up Remote Access; however Remote Access is no longer available and you're redirected back to App | Connected Apps.  At this point the workbook doesn't match the latest version of Salesforce (Summer 13).

 

Additionally, in Tutorial 3, Step 2, I cannot get the OAuth to work!  I get the error:

 

HTTP Status 401: Authentication Failed: OAuth login invalid or expired access token

 

I've set this up twice and I'm following the steps "exactly" as they are laid out in the workbook.  Was wondering if anyone else has come across this and if I'm simply missing something.  I'm pretty new to the coding side of SFDC; so I'm working through these workbooks to try and get a better understanding!

 

Thank you!