• eustachi
  • NEWBIE
  • 0 Points
  • Member since 2010

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

Hi

 

I'm working on an application for our company that will rely on this pilot feature:

http://blog.sforce.com/sforce/2011/05/apex-rest-services-in-summer-11.html

 

I'm just wondering when will this cease to be a pilot, and if there are any implications for deploying an application based on this feature? E.g. it currently only allows for a restricted set of parameters- will this be expanded post-pilot?

 

Thanks.

Hi

 

I'm running the sample app from here http://wiki.developerforce.com/index.php/Getting_Started_with_the_Force.com_REST_API

 

The following code successfully creates a new Account:

 

 

PostMethod post = new PostMethod(instanceUrl
				+ "/services/data/v20.0/sobjects/Account/");

 

 

However, when I try to create the following custom object, I get a 400 error:

 

 

PostMethod post = new PostMethod(instanceUrl
				+ "/services/data/v20.0/sobjects/OpportunityAccount__c/");

 

I can see the custom object listed when I issue: 

GetMethod get = new GetMethod(instanceUrl
				+ "/services/data/v20.0/sobjects");

 

I get back the following: 

 

 {
      "activateable": false,
      "createable": true,
      "custom": true,
      "customSetting": false,
      "deletable": true,
      "deprecatedAndHidden": false,
      "feedEnabled": false,
      "keyPrefix": "a00",
      "label": "OpportunityAccount",
      "labelPlural": "OpportunityAccounts",
      "layoutable": true,
      "mergeable": false,
      "name": "OpportunityAccount__c",
      "queryable": true,
      "replicateable": true,
      "retrieveable": true,
      "searchable": true,
      "triggerable": true,
      "undeletable": true,
      "updateable": true,
      "urls": {
        "describe": "/services/data/v20.0/sobjects/OpportunityAccount__c/describe",
        "rowTemplate": "/services/data/v20.0/sobjects/OpportunityAccount__c/{ID}",
        "sobject": "/services/data/v20.0/sobjects/OpportunityAccount__c"
      }

 

 

Would appreciate any advice on what I may be doing wrong. 

 

Thanks

 

 

Hi

 

I'm working on an application for our company that will rely on this pilot feature:

http://blog.sforce.com/sforce/2011/05/apex-rest-services-in-summer-11.html

 

I'm just wondering when will this cease to be a pilot, and if there are any implications for deploying an application based on this feature? E.g. it currently only allows for a restricted set of parameters- will this be expanded post-pilot?

 

Thanks.

Hi,

 

I am trying to learn REST API through the sample application given on Force.com website. I have all the code integrated to NetBeans and I am able to put it to Tomcat server. Now, when I run the application through the browser, I get the link that says "click here to get data through REST/oauth" and then I get the salesforce login page too. But, when I type in the username and password, I get  "error 310; too many redirects" and when I reload the page, I get error in doget method that says "addparameter arguments cannot be null.

 

Please help!

Hi

 

I'm running the sample app from here http://wiki.developerforce.com/index.php/Getting_Started_with_the_Force.com_REST_API

 

The following code successfully creates a new Account:

 

 

PostMethod post = new PostMethod(instanceUrl
				+ "/services/data/v20.0/sobjects/Account/");

 

 

However, when I try to create the following custom object, I get a 400 error:

 

 

PostMethod post = new PostMethod(instanceUrl
				+ "/services/data/v20.0/sobjects/OpportunityAccount__c/");

 

I can see the custom object listed when I issue: 

GetMethod get = new GetMethod(instanceUrl
				+ "/services/data/v20.0/sobjects");

 

I get back the following: 

 

 {
      "activateable": false,
      "createable": true,
      "custom": true,
      "customSetting": false,
      "deletable": true,
      "deprecatedAndHidden": false,
      "feedEnabled": false,
      "keyPrefix": "a00",
      "label": "OpportunityAccount",
      "labelPlural": "OpportunityAccounts",
      "layoutable": true,
      "mergeable": false,
      "name": "OpportunityAccount__c",
      "queryable": true,
      "replicateable": true,
      "retrieveable": true,
      "searchable": true,
      "triggerable": true,
      "undeletable": true,
      "updateable": true,
      "urls": {
        "describe": "/services/data/v20.0/sobjects/OpportunityAccount__c/describe",
        "rowTemplate": "/services/data/v20.0/sobjects/OpportunityAccount__c/{ID}",
        "sobject": "/services/data/v20.0/sobjects/OpportunityAccount__c"
      }

 

 

Would appreciate any advice on what I may be doing wrong. 

 

Thanks