• seamas li
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 4
    Replies
Hi Expert,

Why I can not get phoneNumber parameter?
Thank you so much.

I am testing Rest Api Apex code:

@RestResource(urlMapping='/mytest/*')
global with sharing class salesforceRestCall{
    
    @HttpGet
    global static String doGet() { 
        RestRequest req = RestContext.request;
        RestResponse res = RestContext.response;
              
        system.debug(' RestContext.request.params :: '+  RestContext.request.params);        
        
        String phoneNumber=req.params.get('subscriptionId');

        String response = processRequest( phoneNumber);

        return response;
    }


Testing Apex class:

    static testMethod void getSubscriptionByPhoneNumberTest() {
    

        test.startTest();
        
        
        RestRequest req = new RestRequest();
        RestResponse res = new RestResponse();
        req.requestURI = '/services/apexrest/subscriptions?phoneNumber=416360999';
        req.httpMethod = 'GET';

        RestContext.request = req;
        RestContext.response= res;
        
        String susbscriptionDetail = salesforceRestCall.doGet();  
        test.stopTest();
    
    }
Hi Experts
I want to move Send an Email button from related list to top of Cases detail page, and near to Edit button(standard button).

Or Can I create a Custom button has same function and behavior with Send an Email button?

Because the Send an Email button always in the bottom of the screen, it is hard to find.

Thanks you so much.
I don't see a Setup menu to run the Lightning App Builder for a challange.  I'm using the Summer `15 Developer Edition.  How is it enabled?