• Rajagopal Akella
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 6
    Replies
My Salesforce @RestResource class is having three methods to handle PUT, POST, and GET. But when i am trying to invoke POST from external system, GET method is getting invoked.
When i try to invoke PUT and GET, they are getting invoked correctly. The issue is with POST response only. No idea why GET is getting invoked when i try to POST. Below is my class, and i am using POSTMAN to monitor PUT, POST, and GET responses.

This issue is exclusive when we try to attempt to POST using "http". You will not see this issue if you try to POST using "https".
We need to find a solution to this, as my current project needs an end point to POST using only "http".

Any information regarding this is greatly appreciated!

@RestResource(urlMapping='/myapi/IVAPIInterface/*')
global without sharing class REST_IVAPI {

    @HttpPost
    global static string doPost() {
        RestRequest req = RestContext.request; 
        System.debug('req is---------------------- ' +req); 
        return 'happy';
    }

    @HttpPut
    global static string doPut() {
        RestRequest req = RestContext.request; 
        System.debug('req is---------------------- ' +req); 
        return 'Put';
    }

    @HttpGet
    global static string doGet() {
        RestRequest req = RestContext.request; 
        System.debug('req is---------------------- ' +req); 
        return 'Get';
    }
}
In Collaboartive forecasts, an opportunity is not showing under "Revenue Splits in U.S. Dollar" category. However, I am able to see this opportunity in "Product Family Revenue" category. Any information with this regard is appreciated.
How can i get Account object's custom fields and their details? Like:
ID, FieldName, CreatedBy, CreatedDate.

Result might look like:
00N800000057Vqg, Notes, Raj Akella, 5/5/2014 7:48 PM
My Salesforce @RestResource class is having three methods to handle PUT, POST, and GET. But when i am trying to invoke POST from external system, GET method is getting invoked.
When i try to invoke PUT and GET, they are getting invoked correctly. The issue is with POST response only. No idea why GET is getting invoked when i try to POST. Below is my class, and i am using POSTMAN to monitor PUT, POST, and GET responses.

This issue is exclusive when we try to attempt to POST using "http". You will not see this issue if you try to POST using "https".
We need to find a solution to this, as my current project needs an end point to POST using only "http".

Any information regarding this is greatly appreciated!

@RestResource(urlMapping='/myapi/IVAPIInterface/*')
global without sharing class REST_IVAPI {

    @HttpPost
    global static string doPost() {
        RestRequest req = RestContext.request; 
        System.debug('req is---------------------- ' +req); 
        return 'happy';
    }

    @HttpPut
    global static string doPut() {
        RestRequest req = RestContext.request; 
        System.debug('req is---------------------- ' +req); 
        return 'Put';
    }

    @HttpGet
    global static string doGet() {
        RestRequest req = RestContext.request; 
        System.debug('req is---------------------- ' +req); 
        return 'Get';
    }
}
My Salesforce @RestResource class is having three methods to handle PUT, POST, and GET. But when i am trying to invoke POST from external system, GET method is getting invoked.
When i try to invoke PUT and GET, they are getting invoked correctly. The issue is with POST response only. No idea why GET is getting invoked when i try to POST. Below is my class, and i am using POSTMAN to monitor PUT, POST, and GET responses.

This issue is exclusive when we try to attempt to POST using "http". You will not see this issue if you try to POST using "https".
We need to find a solution to this, as my current project needs an end point to POST using only "http".

Any information regarding this is greatly appreciated!

@RestResource(urlMapping='/myapi/IVAPIInterface/*')
global without sharing class REST_IVAPI {

    @HttpPost
    global static string doPost() {
        RestRequest req = RestContext.request; 
        System.debug('req is---------------------- ' +req); 
        return 'happy';
    }

    @HttpPut
    global static string doPut() {
        RestRequest req = RestContext.request; 
        System.debug('req is---------------------- ' +req); 
        return 'Put';
    }

    @HttpGet
    global static string doGet() {
        RestRequest req = RestContext.request; 
        System.debug('req is---------------------- ' +req); 
        return 'Get';
    }
}
How can i get Account object's custom fields and their details? Like:
ID, FieldName, CreatedBy, CreatedDate.

Result might look like:
00N800000057Vqg, Notes, Raj Akella, 5/5/2014 7:48 PM
Hello,

I have implemented the Hello world Canvas application in Sf but for some reason the Hello User.Full name does not swow up.
I can see only Hello.
The Java script does not work. What could be the reason.
I have implemented the other test application 
http://www.salesforce.com/us/developer/docs/integration_workbook/integration_workbook.pdf
but still the information does not show up there.
Any ideas?

Regards,
Ivo