• Dhinesh Muralidharan
  • NEWBIE
  • 25 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
Hi All,
       I am doing the ISV trail in Salesforce. In one of the module , i am required to create the test org in partner community. Should i use the same Salesforce Id (off my Developer edition) to create one or should i create a brand new username for the partner edition. I used the log in with salesforce username option/ it gave me this window. User-added image
I didn't know which option to choose. Iam stuck on how to create a new partner profile. Can someone help me with steps on creating a new one. 

Thanks
Dhinesh
Hi,
    i am currently doing the above mentioned challenge in the salesforce trailhead. I creatd a permission set and assigned it to the user like it was mentioned and even logged in using the two factor authentication method. but still it is showing challenge not complete. Is there any reason to this. I don't know what i am missing. The following is the error message i received

Challenge Not yet complete... here's what's wrong:
Could not find a user's successful login using two-factor authentication. Make sure you successfully login at least once and that you are prompted for a second factor of authentication

Any help wpuld be appreciated
Hi i am very new to salesforce and has statred learning through Trialhead. I am in the REST callouts section. I started it but i don't know how to get the response. i am not sure if i am going about this right. This is my first time seeing a http service. please any help or guidance would be appreciated. i have pasted my code here .. I get an error that an object cannot be assigned to a string. if i change the type of result to object , the error goes away.I am not sure how to convert it back to a string.

public class AnimalLocator {

    public static String getAnimalNameById(Integer id){
        Http http = new Http();
        HttpRequest request = new HttpRequest();
        request.setEndpoint('https://th-apex-http-callout.herokuapp.com/animals/:id');
        request.setMethod('GET');
        HttpResponse response = http.send(request);
        
        // check the response
      if (response.getStatusCode() == 200)
      {
           String result = JSON.deserializeUntyped(response.getBody());
           
      }//end of if
            return null;
    }//end of method
    }//end of class
Hi,
    i am currently doing the above mentioned challenge in the salesforce trailhead. I creatd a permission set and assigned it to the user like it was mentioned and even logged in using the two factor authentication method. but still it is showing challenge not complete. Is there any reason to this. I don't know what i am missing. The following is the error message i received

Challenge Not yet complete... here's what's wrong:
Could not find a user's successful login using two-factor authentication. Make sure you successfully login at least once and that you are prompted for a second factor of authentication

Any help wpuld be appreciated
Hi,
    i am currently doing the above mentioned challenge in the salesforce trailhead. I creatd a permission set and assigned it to the user like it was mentioned and even logged in using the two factor authentication method. but still it is showing challenge not complete. Is there any reason to this. I don't know what i am missing. The following is the error message i received

Challenge Not yet complete... here's what's wrong:
Could not find a user's successful login using two-factor authentication. Make sure you successfully login at least once and that you are prompted for a second factor of authentication

Any help wpuld be appreciated
Hi i am very new to salesforce and has statred learning through Trialhead. I am in the REST callouts section. I started it but i don't know how to get the response. i am not sure if i am going about this right. This is my first time seeing a http service. please any help or guidance would be appreciated. i have pasted my code here .. I get an error that an object cannot be assigned to a string. if i change the type of result to object , the error goes away.I am not sure how to convert it back to a string.

public class AnimalLocator {

    public static String getAnimalNameById(Integer id){
        Http http = new Http();
        HttpRequest request = new HttpRequest();
        request.setEndpoint('https://th-apex-http-callout.herokuapp.com/animals/:id');
        request.setMethod('GET');
        HttpResponse response = http.send(request);
        
        // check the response
      if (response.getStatusCode() == 200)
      {
           String result = JSON.deserializeUntyped(response.getBody());
           
      }//end of if
            return null;
    }//end of method
    }//end of class
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