The tag has no usage guidance.

learn more… | top users | synonyms

-1
votes
1answer
26 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(); ...
0
votes
0answers
15 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 ...
-3
votes
1answer
27 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
20 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(); ...
0
votes
1answer
38 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 ...
0
votes
0answers
17 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
59 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
16 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
47 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
101 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
70 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
47 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
30 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
90 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
46 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
65 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
14 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
73 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
526 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*/ ...
0
votes
0answers
20 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
242 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
102 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
0answers
157 views

Multi part form posting from Apex to AWS S3 with blob file and post parameters in the same request

This is a continuation of How to upload an image to AWS S3 using Apex? The sample HTML HTTP post form, given by Amazon, works like a breeze. Converting this HTML to Visualforce is a piece of cake, ...
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
595 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
393 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 ...
0
votes
2answers
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
467 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
418 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 ...
0
votes
1answer
201 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
174 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
349 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
414 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
299 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
304 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
617 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
311 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
522 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
359 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 ...