• iatschuck
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 5
    Replies

Hi,

 

I have an Apex class which is shown as below.

 

global class HttpRESTConnection{

    WebService static String postMSG(String body, String url){

        Http h = new Http();

        // Instantiate a new HTTP request, specify the method (GET) as well as the endpoint

        HttpRequest req = new HttpRequest();

        req.setEndpoint(url);

        req.setMethod('POST');  

        req.setBody(body);

        // Send the request, and return a response

        HttpResponse res = h.send(req);

        return res.getBody();

    }

}

when I include this class in the package and upload the package, I saw an error message stating I do not have test method for this class.

 

Can someone help me to create a simple test case for this class?

 

Thanks

I have a custom encrypted field that is used to store password in safesforce db. I would like to know how I can decrypt the data that is stored in custom encrypted field.

 

Thanks

 

 

I would like to use javascript function to add a new custom sobject record. But I have a problem to create a new record.
 
I created custom subject, which has a lookup relationship field form other custom sobject. I have following code.
 
var c = new sforce.SObject("sobject1");
c.Name=’AAA’;
c.sobject2.Name=’BBBB’;  
ß this is not allowed
sforce.connection.create([c]);
 
Can anyone please let me know how I can assign value to sobject2 fields?
 
Thanks

Hi,

 

I have an Apex class which is shown as below.

 

global class HttpRESTConnection{

    WebService static String postMSG(String body, String url){

        Http h = new Http();

        // Instantiate a new HTTP request, specify the method (GET) as well as the endpoint

        HttpRequest req = new HttpRequest();

        req.setEndpoint(url);

        req.setMethod('POST');  

        req.setBody(body);

        // Send the request, and return a response

        HttpResponse res = h.send(req);

        return res.getBody();

    }

}

when I include this class in the package and upload the package, I saw an error message stating I do not have test method for this class.

 

Can someone help me to create a simple test case for this class?

 

Thanks

I have a custom encrypted field that is used to store password in safesforce db. I would like to know how I can decrypt the data that is stored in custom encrypted field.

 

Thanks