The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
8 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",...
4
votes
1answer
88 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 ...
0
votes
2answers
30 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": [{ ...
3
votes
1answer
106 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 ...
1
vote
2answers
66 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" :"...
2
votes
1answer
34 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 ...
2
votes
1answer
22 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 ...
-1
votes
1answer
29 views

Regarding test Class in salesforce 9

In PostMan Using Post Method the Requested Body is in Json Format,same code i am writing in Test Class with RestRequest req = new RestRequest(); RestResponse res = new RestResponse(); req....
0
votes
0answers
19 views

PostMan GET difference between sandbox and Dev Edition

In Developer Edition ,while we accessing the Postman using Get Method ,the request should be in Postman will be https://ap2.salesforce.com/service/data/v36/apexrest/Pharmacycom/v1/ProfileService/ But ...
-4
votes
1answer
39 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;"> ...
1
vote
0answers
32 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....
0
votes
1answer
51 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"...
0
votes
0answers
24 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 ...
0
votes
0answers
76 views

Test Class for @Future Http POST Callout

I'm having trouble creating a test class for my Future Http POST class. The code works and I'm able to parse the response and update the lead, but I need code coverage. I've looked at the Salesforce ...
2
votes
0answers
17 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 ...
0
votes
2answers
133 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 ...
1
vote
1answer
187 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, "...
0
votes
0answers
14 views

How to login and post project using codeshare?

I have been trying to submit a project in codeshare. There seems to be no login available in this page. Is codeshare still functional or is there any other site to submit projects for salesforce? ...
0
votes
0answers
96 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 ...
1
vote
1answer
51 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 ...
1
vote
0answers
31 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.
0
votes
0answers
139 views

Using Process Builder to post to Chatter Group

I created a simple Process using Process Builder Object = Opportunity when a record is created or edited All Conditions are met 1. Status = Closed Won 2. Amount greater than 200,000.00 Immediate ...
0
votes
0answers
56 views

Posting an AJAX Quote Form to the SF REST API in jQuery

I have an AJAX form meant to submit JSON to the REST API and retrieve the response for display on the page. The submission I have is as follows: function submit_form(){ //callback handler for ...
5
votes
1answer
72 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 ...
0
votes
0answers
15 views

How to pass dynamic information to salesforce on click online chat button?

I am working on salesforce live agent chat. Our requirement is when click on online chat button then dynamically information will pass to salesforce either using addCustomDetail or any other methods. ...
1
vote
1answer
85 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 ...
1
vote
1answer
705 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(...
0
votes
0answers
22 views

How to migrate Chatter posts assigned to each existing case

Can anyone help me out with how to migrate Chatter posts assigned to each existing case from one org to other. Thanks In advance
0
votes
0answers
273 views

Redirect the page to external website with Post values from Visualforce page & APEX controller

i have one Application in salesforce. it is passing parameters in URL querystring form. I want to avoid passing params in this form, it may have sensitive data. Question How to redirect the page to ...
2
votes
1answer
118 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 ...
0
votes
1answer
35 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 ...
1
vote
1answer
693 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 ...
2
votes
2answers
473 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-...
1
vote
3answers
1k 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 ...
2
votes
1answer
504 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. ...
1
vote
3answers
469 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"...
0
votes
1answer
246 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 ...
1
vote
1answer
27 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.
1
vote
0answers
239 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 ...
0
votes
1answer
380 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 ...
1
vote
0answers
455 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 ...
1
vote
0answers
317 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 ...
5
votes
1answer
323 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 ...
3
votes
2answers
658 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 ...
2
votes
1answer
331 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 ...
1
vote
1answer
559 views

HTTP Post issue - unable to redirect when authenticated

We are experiencing an issue with our HTTP Post method. We have the need to POST some information to an external server. We have created some code in visualforce to do this for us but it seems to only ...
2
votes
1answer
416 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> (...
2
votes
1answer
1k 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,test1@gmail.com'; // which will be get from DB and make as CSV string String ...
5
votes
4answers
7k 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 ...