• Paras singh 5
  • NEWBIE
  • 25 Points
  • Member since 2018

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
Hi,
I have this class
public class SmsClass {

    public static HttpResponse getInfoFromExternalService() {
        HttpRequest req = new HttpRequest();
        req.setEndpoint('https://auth.routee.net/oauth/token');
        req.setMethod('POST');
        req.setHeader('authorization', 'Basic xxxxxxx');
        req.setHeader('content-type', 'application/x-www-form-urlencoded');
        req.setBody('grant_type=client_credentials');

        Http h = new Http();
        HttpResponse res = h.send(req);
        return res;
		
 		if (res.getStatusCode() != 200) {
            System.debug('The status code returned was not expected: ' +
                res.getStatusCode() + ' ' + res.getStatus());
        } else {
            System.debug(res.getBody());
            String json = res.getBody();
        }              

    }
}

and I receive unreachable statement error... 
Any Idea?
Thanks in advance
Hi,

Is salesforce ligthtning is ruling now ? Is it necessary to learn lightning as developer? what will be used in lightning development and what are prerequisites to learn it.?

Thank you
Hi,
I have this class
public class SmsClass {

    public static HttpResponse getInfoFromExternalService() {
        HttpRequest req = new HttpRequest();
        req.setEndpoint('https://auth.routee.net/oauth/token');
        req.setMethod('POST');
        req.setHeader('authorization', 'Basic xxxxxxx');
        req.setHeader('content-type', 'application/x-www-form-urlencoded');
        req.setBody('grant_type=client_credentials');

        Http h = new Http();
        HttpResponse res = h.send(req);
        return res;
		
 		if (res.getStatusCode() != 200) {
            System.debug('The status code returned was not expected: ' +
                res.getStatusCode() + ' ' + res.getStatus());
        } else {
            System.debug(res.getBody());
            String json = res.getBody();
        }              

    }
}

and I receive unreachable statement error... 
Any Idea?
Thanks in advance
Hi,
I currently have a lightning component with a form that includes a ui:inputDate. It seems that this input is showing cached values, which appear over the date picker calendar when first clicking into the empty input:
User-added image
Is there anything I can do to disable this feature? I don't believe there is an attribute on ui:inputDate that can achieve this.
Thanks!