We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [httppost]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
59 views

Serialized JSON for POST to server not taking

I am following this simple example List<Account> accounts = [SELECT id, name FROM Account LIMIT 2]; String accountsJSON = JSON.serializePretty(accounts); I am trying to replicate this exactly ...
3
votes
1answer
470 views

Multipart Post to Attachment

I am trying to send a binary file in Java to Salesforce '/sobject/Attachment' endpoint. Below is the code I am trying to use, but I keep receiving a 400 error. Any idea as to what the solution is? ...
1
vote
1answer
668 views

insert mutlitple records using restapi apex

I hv 2 salesforce instances & I am inserting multiple account records from source to orgnz. The access token part is working , but I do not understand how to pass multiple account records. In ...
9
votes
2answers
949 views

ID query string parameter call to RestResource results in error

I'm looking to set up a RestResource endpoint that accepts some URL parameters and creates a lead record. Here's the basic gist of my code: @RestResource(urlMapping='/createLead/*') global with ...