The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
47 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
16 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
89 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
45 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
65 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
23 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
181 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 ...
1
vote
2answers
131 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
0answers
24 views

Custom Object Feed - Posting Problem

We are working on a project where we use a few kind of Profiles. We have Two Visual Force Page which we are Using : chatter:feedWithFollowers entityId="{!Account.Id}" showHeader="true" For Viewing ...
0
votes
2answers
256 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 ...
0
votes
0answers
14 views

Get the data enclosed in a POST request

I am a salesforce partner. I have a customer who is having a problem with credit card processing. He is getting an error everytime someone tried to purchase something with a credit card. Upon speaking ...
2
votes
1answer
247 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
210 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
93 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
81 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
221 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
233 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
198 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
192 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 ...
2
votes
2answers
341 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
223 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
354 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
213 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
816 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 ...
4
votes
4answers
6k 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 ...