Questions tagged [post]

POST is a request method supported by the HTTP protocol used by the World Wide Web. It is often used when uploading a file or when submitting a completed web form.

Filter by
Sorted by
Tagged with
7 votes
3 answers
272k views

How to give date and time values in request body using postman

I have Created a Request Body in Event Object with Date and Time Details, how to give the Date and Time Values in JSON format using Postman { "Type":"contact call", "WhoId":"0038E00000GWXhL",...
user avatar
7 votes
4 answers
9k views

restful call to external analytics API via visualforce/apex

So I'm trying to access Woopra analytic's restful API via apex/visualforce. I am wondering a couple of things: 1) The API returns a JSON object via the usual POST/GET method... would it be best to ...
gfppaste's user avatar
  • 845
7 votes
2 answers
6k views

Communicating between Lightning component and VF Page

I am trying to use lightningStylesheets="true" and communicate from my LC. This doc exactly shows the steps on how to communicate between LC --> VF: https://developer.salesforce.com/blogs/developer-...
Rao's user avatar
  • 16.7k
6 votes
1 answer
7k views

Novice Question: making a cURL callout from Apex to a 3rd party app?

I'm only familiar with REST and SOAP as API standards, and I'm a novice in general, so pardon my lack of understanding of most of these concepts. I have a web form on a third party heroku app that I ...
smohyee's user avatar
  • 3,752
5 votes
1 answer
12k views

Can we insert multiple records in sObject using REST API post method without using apex class in workbench or postman

/services/data/v36.0/sobject/ObjectName and { "name" : "some name", "Description" : "Some Description" } By using above uri and request body we can insert a single record in object with post method ...
KS Kumaar's user avatar
  • 753
5 votes
2 answers
33k views

How to insert multiple records in an object using REST API post method in workbench

By providing following uri and by using following Request Body, we can insert a single record in a sObject uri: /services/data/v36.0/sobjects/sObject Request Body : { "field1" :"value1", "field2" :"...
user avatar
5 votes
1 answer
482 views

Attempting to use jQuery to POST to an external server from a Lightning Component

I'm a new dev so feel free to scrutinize everything I post because I need to learn. So I have a component and am utilizing a helper to send some data to one of our company's external sites using ...
Josh's user avatar
  • 63
5 votes
1 answer
1k views

Multiple APEX REST methods with HttpPost annotation - how to selectively invoke with REST client (e.g. Postman)

I have a class which consists of Post annotation with two methods under it.These methods will be called based on some criteria and they vary by the count(number) of parameters i.e. one method has two ...
Manoj Chandran's user avatar
4 votes
2 answers
5k views

Cannot find Data Extension by external key.

I am getting the response from https://www.exacttargetapis.com/hub/v1/dataevents/BBDD0F10-94A1-4CD6-B7A2-32FEB671E44F/rowset { "message": "Unable to locate data extension with ID bbdd0f10-94a1-...
Jimmy's user avatar
  • 107
4 votes
1 answer
9k views

Cannot deserialize instance of datetime from VALUE_STRING value

I have a REST webservice which inserts multiple records into custom objects. I am executing it on workbench using the following request: {"req" : {"tickets": [{ "External_TicketID__c" :1853, "...
goSF's user avatar
  • 385
3 votes
4 answers
21k views

Send Blob file via Apex Rest Callout

I'm trying to send a Blob Apex REST callout and it is keep failing. I tried all the examples in the web but didn't work. What is the standard and correct way to send Blob data via REST callouts? //...
MalindaL's user avatar
3 votes
4 answers
32k views

Read GET/POST parameters in apex class when service is called from external client

I am new to salesforce. I created an apex class and exposed it as a Rest service. I want to post some parameters to that service from an external client(not vf page). One way is I append it to the url ...
Harshit's user avatar
  • 31
3 votes
1 answer
3k views

How to properly send a Json in the body of a POST request?

I'm trying to do the same I accomplish with postman but with Apex and I'm not being able to do so: I need to send a POST request to this example endpoint: https://cccccccccccccc/api_jsonrpc.php This ...
Nacho Zve De La Torre's user avatar
3 votes
2 answers
1k views

If we change the parameters used in webservice method in our org., will this cause error at end user consuming old WSDL?

Please enlighten me\correct me on following point: When we expose our class as SOAP Web service, End User consumes Enterprise/Partner WADL Class's generated WSDL and then post request to our ...
sfdcnoob's user avatar
  • 101
3 votes
1 answer
2k views

http post for mulitpart form

am trying to post the csv data through http post to end point url. Below is my code. string test = 'test1,[email protected]'; // which will be get from DB and make as CSV string String ...
kitokid's user avatar
  • 1,728
3 votes
1 answer
796 views

Writing an HttpPost RestResource for multipart contentType

I've been able to write a simple HttpPost RestResource that would accept a Base64 string as one of the parameters and make an attachment out of it. But actually we want to use multipart instead of ...
Novarg's user avatar
  • 5,236
3 votes
1 answer
3k views

Changing HTTP header code in POST response

I've been doing some research on this issue, but I haven't been able to find a solution. I'm trying to return HTTP 403 after failing to validate some information sent in a POST request to Salesforce. ...
rebello95's user avatar
  • 165
3 votes
2 answers
1k views

Get list of contacts from search layout

When I select multiple clients on this list and click the Email Contacts button on this search page I want to open a visual force page with a special email form on it. How do I get the ids of all of ...
Joshua Harris's user avatar
3 votes
1 answer
333 views

Postman in Salesforce

If we are using json in post Method by clicking Raw i have given the Request body as like { "name" : "Wingo Ducks", "phone" : "707-555-1234", "website" : "www.wingo.ca.us" } For this body i am ...
KS Kumaar's user avatar
  • 753
3 votes
0 answers
502 views

Named Credentials not working with Twitter API [closed]

So I have set up a Named Credentials with information about my Twitter App. I know the authentication is working correctly becacause my named credential looks like this: And it says I am ...
Hans Donkersloot's user avatar
2 votes
1 answer
11k views

Not able to post data to Http with content type: application/x-www-form-urlencoded

I have tried with the below code but have received {"error":"invalid_request","error_description":"Missing parameters: password"} in response. I have tried with POSTMAN and getting correct response. ...
devforce's user avatar
  • 1,543
2 votes
1 answer
8k views

How to pass @httppost parameters in apex integration?

I’m trying to integrate two salesforce orgs. How to pass httppost parameters of method from other salesforce org in apex code please find the below codes it tried but I am getting status 400 ...
saivinay manapuram's user avatar
2 votes
1 answer
11k views

RestResource Annotation - What is the urlMapping To?

I have never worked with Rest Resource classes before and am trying to debug one from a previous developer. I am looking at: @RestResource(urlMapping='/CompanyData/*') and am unsure what CompanyData ...
Olivia's user avatar
  • 3,431
2 votes
1 answer
89 views

Help with Rest Resource

I'm working with integrations rn, and I'm stuck... I need to create a public site to receive calls fired by a third-party system. I'm using this tutorial: http://www.wadewegner.com/2013/03/creating-...
RedMan's user avatar
  • 107
2 votes
1 answer
751 views

Salesforce Callout to ExactTarget via the ExactTarget REST API

Why does the below code always get a "500 internal server error" back from ExactTarget when run anonymously from the Salesforce developer console? (Of course I'm using my own client id and client ...
SF1Dev's user avatar
  • 765
2 votes
1 answer
4k views

Help Understanding How to write Test Class for Apex HTTP Post

So I've been through quite a few posts/questions already looking for enough information to have this "click" for me, but I'm still missing something. This is my first time working with ...
Jack S's user avatar
  • 53
2 votes
1 answer
1k views

How to send Form Data to DE without hitting submit button using AJAX and AMPscript

I have a HTML Form with AJAX code <html> <head></head> <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <script> function ...
Ranjith Haridas's user avatar
2 votes
1 answer
9k views

How to write a test class for an apex class with do post method

I have tried to write a test class for the below class with post method. But i am not able to bring the coverage.How can I approach this. Thanks in advance. /* code starts here*/ @RestResource(...
Azeem's user avatar
  • 107
2 votes
4 answers
15k views

How to set header as user name and password in post method

I am developing a batch class to make api calls and get data from that api in to salesforce. I need to send http request by post method, with user name & password as header. I have tried but i got ...
Nayana Pawar's user avatar
2 votes
1 answer
1k views

How do I pull in form data via AMPScript?

I am a brand new TA for ExactTarget, so AMPScript is very new to me. I have a web page which has a <textarea>. Users can go in and copy/paste a list of domains to this <textarea> (...
Mike Marks's user avatar
2 votes
2 answers
659 views

WebService Post Rest API is Receiving as GET

I wrote a web service using @RestResource With both Get and Post methods. When I try to send a request via workbench - everything works great, but when I try to send a post request using other ...
Salvation's user avatar
  • 1,137
2 votes
2 answers
3k views

Why is this triggered send "Queued" in response, but never actually queued or sent?

It sounds like my issue is similar to this question. I'm currently POSTing (via Postman) to the following: https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/key:MY_CORRECT_KEY/send?...
Matthew Johnson's user avatar
2 votes
1 answer
12k views

how to create a record in workbench using REST Explorer

I am trying to create a new account record using post method in work bench. But I am unable to follow exact format of map url and it is giving the following error. Please suggest me a correct way how ...
KS Kumaar's user avatar
  • 753
2 votes
1 answer
212 views

Return a response after calling a REST point created on salesforce, while the REST point is calling a @future method

I have crated a RESTful endpoint on my sandbox. When it is called with the proper input it creates a new contact and then decorates a custom response class I created for that purpose and at the end it ...
Masoud Az's user avatar
2 votes
1 answer
1k views

Is it possible to use Ajax to POST data from within a Server-Side Javascript in the Marketing Cloud?

Is it possible to use Ajax to POST data from within a Server-Side Javascript in the Marketing Cloud? Could the FormData be a problem? I've been using this code: var form = new FormData(); form....
Stefano Pistillo's user avatar
2 votes
1 answer
606 views

using VF input fields to set request body for Rest API call

I'm trying to send data from one SFDC org to another org via Rest API. I'm properly able to create Rest Resource in 'receiving org' in this way : @httpPost global static string DepositAmount(string ...
curious_techy's user avatar
2 votes
1 answer
339 views

CloudPage GET/POST Parameter with value "<[aZ]" fails with 500 error

I try to make sense out of an edge case scenario I just came across and would love to get some ideas around why this may happen. On any CloudPage, if I add a GET or POST parameter with the value of &...
shd.lux's user avatar
  • 466
2 votes
0 answers
2k views

Illegal character VCHAR in request Header

We have an external system that sends us POST Requests. The authentication method is using force.com public site with IP restriction. The external system sends a POST request and got an error and we ...
Salvation's user avatar
  • 1,137
2 votes
0 answers
160 views

How to map static date field in Async SOQL query job?

I'm trying to use Aggregate Async SOQL to Query Big Objects to a custom Object like below (https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/...
compski's user avatar
  • 1,251
2 votes
0 answers
825 views

HttpResponse Error 502 on callout to internal URL

Recently, I deployed a change set to my organization production environment. On production, it works fine, but on community my callout doesn't look to work as expected. Basically, on my code, I make a ...
gustavo.lei's user avatar
2 votes
1 answer
113 views

POST a record from Org1 to Org2 with JSON and Map

I need to post created record from Org1 to Org2. I want to "put" my JSON into Map and just "open" Map in another Org. Needed result: fields from new Org1 Object's record = fields from new Org2 Object'...
MichaelLev19's user avatar
2 votes
0 answers
50 views

Posting Pdf to chatter via bulk api?

Which object should we use to post data's to chatter?I am trying to post a pdf file to a chatter object using curl. What is the name of the object that we should specify in txt file? <?xml ...
Priyalakshmi's user avatar
  • 1,456
1 vote
2 answers
563 views

POST Ajax method with Jquery to create new account contact and Opportunity

I am trying to create New Account, Then Contact and Opportunity that is assigned to that account . but use Post method, so have them all in one page. I dont wanna create any class, I know I can do ...
Metawaa's user avatar
  • 709
1 vote
1 answer
1k views

Using apex for posting multipart/form-data Content-Type - limit exceptions

I am using this: Salesforce Apex - POSTing multipart/form-data Content-Type thread to send a file to a 3rd party It works great (taken the EinsteinVision_HttpBodyPart class from here) But when ...
Itai Shmida's user avatar
  • 4,995
1 vote
1 answer
3k views

Test for HttpPost service: how to take JSON body for test?

I have a HttpPost methods. And I really don't know how to test it correctly. My methods: public static App__c ParseRequest(RestRequest req) { App__c app = new App__c(); String body = req....
MichaelLev19's user avatar
1 vote
3 answers
3k views

REST to create multiple objects-JSON Deserializaton failed on token null

I have been trying to create CurrencyType records from APEX and since that doesn't support DML, have been using the REST endpoint and POST method. Everything work fine with single record but with ...
SFDC Dev 27's user avatar
1 vote
1 answer
336 views

Bulk Records Using Rest Services - getting soql 101 error

Request Body represents the id and name of the records that should be updated. I am giving more than 100 Records in Request Body via Postman using a POST method. When I do so I get an error response: ...
user avatar
1 vote
1 answer
359 views

To get a postData on apex page controller through custom url without reordering sequence of parameters

I have implemented a code to get a post body data which has been sent through x-www-form-urlencoded header on custom URL. I have used ApexPages.currentPage().getParameters(); but it returns a ...
Rushikesh Kshirsagar's user avatar
1 vote
1 answer
4k views

Apex callout with a client certificate

I have written one Rest service which is returning a access token to resend it to endsystem to get the final response but we are getting "Request processing failed; nested exception is java.lang....
Anoop's user avatar
  • 47
1 vote
1 answer
11k views

How to resolve Missing closing quote character ' on string, error message

I got the code below working: Corrected the (curved) brackets, 'quote signs'. Now at least anonymous execution window is executing without interruption. Even the 400 message, has gone away. Only need ...
Bart Sporken's user avatar