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
0 votes
0 answers
100 views

Pre-populate the "Post" global action to with text?

I am trying to pre-populate the Post (FeedItem.TextPost) global action with text. Anyone know a simple way to do this?
Sidereal's user avatar
  • 465
0 votes
1 answer
534 views

Salesforce REST JSON Nested Self-Related Objects?

ooks like I need some help here. Salesforce documentation and multiple google searches not gave me an answer. Problem description: I'm trying to insert (POST) nested self-related records using REST ...
Nikolai J's user avatar
0 votes
0 answers
677 views

POST data to salesforce

I am trying to POST a JSON content to an apex URL. It always returns "Method not allowed" error. Here is the code HttpClient client = new HttpClient(); client.BaseAddress = new Uri("https://my....
Gopi's user avatar
  • 101
1 vote
0 answers
228 views

PHP Toolkit to SF API, Why am I getting a 402 error with "Unable to determine from which page the request originated"?

I am attempting to build a set of tools in PHP designed to "smoke text" various data transmissions to and from our Salesforce org, using PHP Toolkit 20.0. Here is my PHP: require_once('soapclient/...
TerranRich's user avatar
0 votes
1 answer
82 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 ...
Olivia's user avatar
  • 3,369
0 votes
1 answer
949 views

How to call an Apex WebService from an External System

I'm trying to build a webservice that will expose the ability to input data from an external system into salesforce. I've found multiple resources on making a webservice. I can't however find how to ...
Cody Beaner's user avatar
1 vote
0 answers
133 views

Regarding Postman

For Normal Postman Input i gave as Body like this for group of Accounts in postman uri https://domain name/services/data/v36.0/composite/tree/account/ using post method { "records" :[{ "...
user avatar
0 votes
2 answers
186 views

Make a web listener class publicly available [duplicate]

I am implementing a web listener class and want to listen to POST requests. @RestResource(urlMapping='/MyListener/*') global with sharing class ListnerClassTest { @HttpPost global static ...
krish's user avatar
  • 1
1 vote
1 answer
322 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
187 views

Post approval action on Knowledge articles

I have a business requirement as follows: When a knowledge article gets approved, the article title, subject and article link to be posted on chatter and will be available to specific group(s). I ...
Santanu Boral's user avatar
0 votes
1 answer
926 views

Rest Services using Apex via Postman

I am Giving the Request body in Postman like: {"eventitems": [{ "whatid":"0012800000i92pd", "whoid":"0032800000TirUN", "OwnerId":"005280000010olH", "IsAllDayEvent":true, "Subject":...
user avatar
0 votes
1 answer
52 views

Apex class in Rest Services

My code fails to compile with this error: Compile Error: Incompatible element type Event for collection of CreateEventClass1.eventitems at line 41 Here is my Request Body in Postman: { "...
user avatar
0 votes
1 answer
436 views

Apex in Rest Services

I am Giving the RequestBody in Postman like { "contact":[ { "name":"ravtrtr", "phone":"4333", "accountid":"0012800000iJfGi" }, { "name"...
user avatar
1 vote
1 answer
148 views

Rest Services using Apex

I am Writing the Code Like else if (text == 'Invitees') { Invitees = new List < String > (); while (parser.nextToken() != JSONToken.END_ARRAY) { Invitees.add(new string(parser));...
user avatar
0 votes
1 answer
177 views

Rest Services using Apex class

**I am Accessing the Class using postMan I am Writing the Code like @RestResource(urlMapping='/create Event2/') global class JSON2Apex { @Httppost global static void consumeObject(JSONParser ...
user avatar
-1 votes
1 answer
944 views

How to Write a apex class to get the json input Values from postman

In PostMan the Request Body look Like this : {"eventitems":[{ "whatid":"0012800000i92pd", "whoid":"0032800000TirUN", "OwnerId":"005280000010olH", "IsAllDayEvent":true, "Subject":"...
user avatar
7 votes
3 answers
256k 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
3 votes
1 answer
322 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
0 votes
2 answers
233 views

JSON_PARSER_ERROR

Getting an error while posting a request to this class POST Request is { "RequestWrapper": { "sap_org_Id": "US29", "bolNumber": "888888", "ProductLine": [{ ...
Samir's user avatar
  • 2,619
5 votes
1 answer
10k 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
31k 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
2 votes
1 answer
11k 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
188 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
-5 votes
1 answer
106 views

After posting JSON to external System, I need to return back to salesforce /apex/response page which is not working

<apex:page standardController="Rfleet_Car_Set__c" showHeader="true" extensions="csbreceiver" action="{!test}"> <html> <object style="height : 1200px;width : 1300px;overflow:hidden;"> ...
Mite's user avatar
  • 45
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
0 votes
1 answer
471 views

To post JSON to External System via Visualforce Page usin HTML Form

enter code here <apex:page standardController="fleet_Car_Set__c" showHeader="true"> <html> <object style="height : 1200px;width : 1300px;overflow:hidden;"> <form id="frm"...
Mite's user avatar
  • 45
1 vote
0 answers
250 views

How to redirect after HttpRequest POST?

In a Visualforce controller, if I need to do an HTTP POST and redirect to that same URL, how do I do it? Here's the situation: currently the client has a plain HTML form (standard HTML form and input ...
David Cheng's user avatar
  • 6,868
2 votes
0 answers
49 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
2 votes
4 answers
29k 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
  • 21
4 votes
1 answer
8k 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
  • 375
0 votes
0 answers
1k views

How to use Simple Stripe Checkout in salesforce

I am trying to use the Stripe's Simple Checkout Demo with Salesforce to receive a token. Can someone help me figure out why this simple demo does not work? I am not receiving any value in the ...
JimH's user avatar
  • 891
1 vote
1 answer
347 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
0 answers
203 views

User cannot see new post on chatter

A user on chatter is not able to view new posts on both desktop and mobile phone. The user can only see post of last year 2014. could you please help. What may be the cause of this issue.
BE57's user avatar
  • 93
5 votes
1 answer
472 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
3 votes
1 answer
780 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,176
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
1 answer
598 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
0 votes
1 answer
163 views

Using Trigger, how to post in chatter and @mention only a selective contacts list

I need to post in chatter and @ mention to a selective contacts list based on specific criteria that is selected by the logged in user, when creating a specific record. (for example, corporate wants ...
Abbas Ali Mir's user avatar
6 votes
1 answer
6k 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,662
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
2 votes
4 answers
14k 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
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
1 vote
3 answers
1k views

Execute Apex method avoiding required field validations - <Apex:Region> not working

Here I want to insert one record on clicking "Post" button, at the same time I don't want to execute code in "First" pageblocksection (avoid all required fields). <apex:pageBlockSection id="First"...
Salesforce Steps's user avatar
0 votes
1 answer
3k views

How to make an HTTPS POST from apex

I have this code String endpoint = 'https://url.here.com/path/stuff/here'; String username = 'username'; String password = 'password'; HttpRequest req = new HttpRequest(); req.setEndpoint( endpoint ...
nomadic_squirrel's user avatar
1 vote
1 answer
44 views

What are the configurations in Salesforce for client to access the Rest Service with http instead of https

I have a Rest service(POST) that I expose publicly through sites. What are the configurations required in Salesforce for client to access the Rest Service with http instead of https.
Kamalanathan's user avatar
1 vote
1 answer
889 views

ExactTarget - How to post a record to a data extension that has no primary key?

I have a data extension with the following fields: recordId - number recordKey - text - length: 50 recordValue - text - length: 50 None of the above fields are primary key, because they can occur ...
Gabor Torok's user avatar
0 votes
1 answer
1k views

How can I POST values to and open an external site within Salesforce window?

I want a tab that opens an external website within Salesforce window. I need to POST values to it. I tried creating a Visualforce page and using it in a VF tab but even with using _target=self, the ...
MikeA's user avatar
  • 1,015
1 vote
0 answers
1k views

Posting multiple files from Apex code to an external service

The question on how to post binary data to an external service from Apex has been answered on SFSE already, and I'm aware of that. However, what I'm trying to do, is to optimize a process by posting ...
Haris Osmanagić's user avatar
1 vote
0 answers
546 views

CurrentPage getParameters() is empty the first time I post to a page

I have a VisualForce/APEX page that I am posting to through a form. I send over a list of contacts as a single string. When I get to the other page I use the following code to retrieve the post ...
Joshua Harris's user avatar
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