• judby
  • NEWBIE
  • 0 Points
  • Member since 2013
  • Lead Architect
  • Agillic

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 1
    Questions
  • 7
    Replies
Hi,

I’m trying to create a Contact with reference to an Account using REST/java.

First I lookup Account using an External ID (which works) then tries to create the Contact referencing the Account, which fails.

I send this JSON:

{"Email":"test@agillic.com","AccountId”:”0018E00000IQgzDQAT","FirstName":"Agillic","LastName":"Test"}

with POST to

https://cs87.salesforce.com/services/data/v36.0/sobjects/Contact/

and get HTTP 400:

[{"message":"No such column 'AccountId’ on sobject of type Contact","errorCode":"INVALID_FIELD"}]

What am I doing wrong?
  • May 06, 2016
  • Like
  • 0
Hi,

I’m trying to create a Contact with reference to an Account using REST/java.

First I lookup Account using an External ID (which works) then tries to create the Contact referencing the Account, which fails.

I send this JSON:

{"Email":"test@agillic.com","AccountId”:”0018E00000IQgzDQAT","FirstName":"Agillic","LastName":"Test"}

with POST to

https://cs87.salesforce.com/services/data/v36.0/sobjects/Contact/

and get HTTP 400:

[{"message":"No such column 'AccountId’ on sobject of type Contact","errorCode":"INVALID_FIELD"}]

What am I doing wrong?
  • May 06, 2016
  • Like
  • 0

How to Connect Java to salesforce.com using WSDL..

 

 

 

Thanks,

SFDC_Learner

Hi Friends,

I am facing issues with Outbound Messages in my Production Org. It says "org.xml.sax.SAXException: Bad envelope tag: html". This is the first time we have got this error in our ORG.

The number of re attempts to send has failed 17 times.

Can you someone help me to understand more on this ? Is there anything that I should do something within SFDC or check with third party system to which it is iintegrated?

Please help..Thanks..

 

 

According to SOAP API Developer's Guide - Introducing SOAP API: Development Platforms different versions of the WSC tool can be obtained from http://code.google.com/p/sfdc-wsc/ and http://mvnrepository.com/artifact/com.force.api/force-wsc.

 

However, the latest version on the google-code site is wsc-22 whereas the latest on mvnrepository is wsc-26. On the other hand, the link to source code given on mvnrepository (http://github.com/forcedotcom/wsc) seems to be dead.


Which is which and which version should one use?

  • January 28, 2013
  • Like
  • 1

According to SOAP API Developer's Guide - Introducing SOAP API: Development Platforms different versions of the WSC tool can be obtained from http://code.google.com/p/sfdc-wsc/ and http://mvnrepository.com/artifact/com.force.api/force-wsc.

 

However, the latest version on the google-code site is wsc-22 whereas the latest on mvnrepository is wsc-26. On the other hand, the link to source code given on mvnrepository (http://github.com/forcedotcom/wsc) seems to be dead.


Which is which and which version should one use?

  • January 28, 2013
  • Like
  • 1