Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
56 views

Is it possible to create a Data Extension in a custom Activity?

I'm a beginner in marketing cloud and Journey Builder dev, so sorry if the question seems stupid but I'm struggling on a little problem, I would like to know if in a custom activity, running with ...
3
votes
2answers
286 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 ...
1
vote
0answers
119 views

Star Rating in Custom Lightning component

I was doing the trailhead lightning-restaurant-locator And the trailhead is showing how to use Get request so by looping through the response, name and views are in a list. Now I want to add star for ...
0
votes
1answer
24 views

use the SObject Tree resource to create attachments and notes for opportunity VIA POST Ajax

How do I add notes and attachments to opportunity objects via SObject Tree. I am dong this via java script ajax POST "New Notes" "Attach File" "Opportunities": { "records": [{ "attributes": { "...
0
votes
1answer
55 views

Posting AJAX to SObject Tree resource not working

been trying to have custom field in my opportunity . when the post happens I get the object in the right format however it doesnt post it, and doesnt really tell me the issue here is the object ...
1
vote
2answers
65 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 ...
0
votes
1answer
684 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. ...
0
votes
0answers
57 views

Apex API call vs cURL example giving different results

I sending an API request through apex: -method is POST -Basic auth header -Accept header as "application/json" -endpoint is receiving formdata parameter in body of form "notice=somebase64XML" Code ...
0
votes
1answer
20 views

Creating REST Api with little control over request structure

I'm trying to expose a method to be accessed through HTTP Post. @RestResource(urlMapping='/exampleURL') global with sharing class Listener { //Object jsonObj = JSON.deserializeUntyped(...
0
votes
1answer
557 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 ...
0
votes
1answer
26 views

Why POST is routed to GET?

I have rest controller with GET, DELETE and POST. GET and DELETE work ok. @RestResource(urlMapping='/test123') global class TestRest { @HttpGet global static String getOperation(){ ...
1
vote
2answers
241 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 ...
0
votes
1answer
86 views

How to properly handle missing parameters in @HttpPost request body

Hey I'm writing a little integration to my app, and was looking for some good practices of handling exceptions when there is a blank or a missing parameter passed in request body, but couldn't find ...
0
votes
0answers
55 views

Cloudpage that returns success/failure of CreateSalesforceObject to a post from a different page (for ajax forms)

Hopefully that title was clear. We currently have a page that has the standard method for using ampscript to capture form posts (where the form posts to PAGEURL with a "submitted" parameter, causing a ...
1
vote
0answers
170 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 ...
2
votes
1answer
375 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?...
7
votes
2answers
1k 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-...
0
votes
1answer
213 views

Calling a flow through REST api returns “http body is required” error

I'm trying to initiate a flow through the REST api using PHP: $url = "https://myInstance.salesforce.com/services/data/v40.0/actions/custom/flow/EndCourse_and_Semester_Notification"; $headers = array(...
0
votes
0answers
186 views

Unable to locate Data Extension for CustomObjectKey

I am trying to save a contact in my Data Extesion, my Data Extension has a External Key: 9C3FA3ED-8500-45AB-8A6B-1AE674773F52 and I did the POST https://www.exacttargetapis.com/hub/v1/dataevents/Key:...
0
votes
0answers
58 views

How receive a POST in custom controller

I need your help with a new doubt with a custom controller. In my VisualForce page I have to SelectList, these SelectList could change their name periodically (they are dynamic) in some times I have ...
0
votes
0answers
22 views

Creating Web-to-Lead for more than two salesforce instance

I want to use one web-to-lead form to send data to my two salesforce instances at once. Meaning I need to use two URLs for POST action and two "oid" in the form. Is it possible and if it how can I ...
0
votes
2answers
310 views

How do I do bulk update to external web via REST api?

I have a REST API callout to our website to update data (eg Account) there from our Salesforce instance. This is all working fine doing 1 Account when it's created or updated as the trigger does the @...
0
votes
1answer
298 views

Receive POST message body in VIsualforce controller

I realise that I can receive parameters in the query string via the following syntax: ApexPages.currentPage().getParameters().get('parameterName'); This also seems to work for parameters encoded in ...
1
vote
1answer
34 views

on Post -System.CalloutException on one object but not on another

I'm building an application which sends a post request to an endpoint when a particular record is inserted. The trigger looks like this(for testing purposes): trigger NotifyPlayersOfShowCancelation ...
1
vote
4answers
2k 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? //...
0
votes
1answer
67 views

Web to case form fields pre-populated from another page

We have a Web to case form implemented in the force.com sites. This form has is being triggered from another VF page, with some parameters. One of the parameters holds the Id to another object from ...
0
votes
2answers
1k views

Creating Custom Form and putting info into Data Extension

I would like to know if its possible to create a custom Form. For example, it will have 2 fields. Name and DOB. I can perform a validate via Javascript, but once onsubmit is true, I would like it to ...
0
votes
1answer
198 views

Is there any way to do an ajax call to data extension from 3rd part site html page?

I have an input text box on a 3rd party site webpage and this webpage is simple HTML page. In the input textbox, I want to validate if entered number is valid or not. I can do this by jquery by ...
0
votes
0answers
32 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?
0
votes
1answer
156 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 ...
0
votes
0answers
208 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....
1
vote
0answers
112 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/...
0
votes
1answer
51 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 ...
0
votes
1answer
511 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 ...
1
vote
0answers
76 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" :[{ "...
0
votes
2answers
78 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 ...
1
vote
1answer
129 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: ...
1
vote
1answer
95 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 ...
0
votes
1answer
296 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":...
0
votes
1answer
37 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: { "...
0
votes
1answer
139 views

Apex in Rest Services

I am Giving the RequestBody in Postman like { "contact":[ { "name":"ravtrtr", "phone":"4333", "accountid":"0012800000iJfGi" }, { "name"...
1
vote
1answer
65 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));...
0
votes
1answer
70 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 ...
-1
votes
1answer
354 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":"...
0
votes
2answers
572 views

Error “Unsupported Grant Type” while trying to POST to salesforce using the PHP

<?php $data = array("grant_type" => "password", "client_id" => "*********************************","client_secret"=>"************","username" =>"*********","password" => "************...
0
votes
2answers
12k 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",...
3
votes
1answer
177 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 ...
0
votes
2answers
141 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": [{ ...
4
votes
1answer
780 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 ...
2
votes
3answers
4k 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" :"...