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
1answer
20 views

Retrieve Single Most Recent Article to have Topic Assigned in Topic Assignment Trigger SOQL Apex Salesforce

I'm creating an Apex Topic Assignment Trigger for our Community that simply does this: After insert of a new topic to a knowledge article, create a post that simply says "A new article called <...
0
votes
0answers
18 views

Running JS function only after the constructor finished

I have a process in which an external site redirects itself to my VF page site and then I POST redirect to another site. External Site -> (redirct) -> My force.com site -> (POST redirect) ...
0
votes
0answers
40 views

POST Request via SSJS - Authorisation Types

I am working on sending an outbound POST request and haven't been able to send one to my end point url. I'm receiving a Status Code 500 indicating that this is an SSJS issue however, upon closer ...
2
votes
1answer
37 views

Help with Rest Resource

I'm working with integrations rn, and I'm stuck... I need to create a public site to receive calls fired by a third-party system. I'm using this tutorial: http://www.wadewegner.com/2013/03/creating-...
0
votes
0answers
44 views

I am using LWC component as the UI and get few input parameters and file upload. I want the file and the metatags to be saved in postgreSQL

The LWC component gets the few parameters as input in UI and a upload file functionality is also there. If I upload the file, the file and the above given metatags should also be sent via the POST ...
0
votes
0answers
12 views

Send an HTTP POST API Call Through a Script Activity Using Basic Auth?

I am trying to load the data in a data extension but the code does not work, I do not know how to enter the user parameters and password, the security system is Basic Authentication, can I show you ...
0
votes
1answer
142 views

ApexRest HTTPPost - Testing using workbench

I have created an apex rest httppost class. This requires two parameters which are passed via response. I am trying to test this via workbench by passing two parameters. @RestResource(urlMapping='/...
1
vote
1answer
55 views

Apex rest API with get and post in the same time [duplicate]

I have a scenario where I need to do a httpPost to save a value from the request parameter and then return some other fields for the same object fields using httpget. So, my parameter would be ...
0
votes
1answer
34 views

Can I open page(NON-Visualforce) by POST method?

We want to open page(NON-Visualforce) by POST method. User open Visualforce page, and click 「submit」 button. This button call Apex class( or js? ) , other page open by POST method. Other page is ...
0
votes
1answer
52 views

get the source domain from a post request

Third-party need to send Data to Salesforce using Https post request - They cant handle token access so it must be a force.com site. I referred an Apex class to the site (Without using VF page), by ...
1
vote
1answer
211 views

Using apex for posting multipart/form-data Content-Type - limit exceptions

I am using this: Salesforce Apex - POSTing multipart/form-data Content-Type thread to send a file to a 3rd party It works great (taken the EinsteinVision_HttpBodyPart class from here) But when ...
0
votes
1answer
232 views

How to Make Pardot Authorisation Request?

I have a training org where I'm making API callouts for authorise to the Pardot environement, but recieving the error :- Error Code :- 49 Error :- Access Denied, The details of the API url which I'm ...
0
votes
2answers
136 views

Impossible to patch Account

Is there a configuration to allow patching in SalesForce ? I tried to patch the Account on Postman, no success. I also tried on Workbench, no success. My Url (on workbench): /services/data/v47.0/...
0
votes
1answer
98 views

JSON_PARSER_ERROR on POST in Workbench

I am using https://workbench.developerforce.com/restExplorer.php . Trying to add new patient, on URL /services/data/v46.0/sobjects/HealthCloudGA__EhrPatient__c, with POST method, with body like this : ...
0
votes
1answer
27 views

Can't Consume POST request but Dev Console shows url is being hit with requests

Afternoon, We have a vendor that is trying to send POST requests to a method in we have hosted using Site Guest User. Here is our code snippet that we are using to see if the request is even ...
2
votes
0answers
39 views

How to map static date field in Async SOQL query job?

I'm trying to use Aggregate Async SOQL to Query Big Objects to a custom Object like below (https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/...
0
votes
1answer
351 views

Form post to external url through an aura component embedded in community page

Is it possible to execute a form post to an external site from an aura component that is exposed in a community page? Our aura component looks like this <aura:component implements="forceCommunity:...
1
vote
1answer
286 views

Apex callout with a client certificate

I have written one Rest service which is returning a access token to resend it to endsystem to get the final response but we are getting "Request processing failed; nested exception is java.lang....
0
votes
0answers
782 views

System.CalloutException: Unable to tunnel through proxy. Proxy returns “HTTP/1.1 503 Service Unavailable” ERROR

I'm trying to make an HTTP Request to other System. They provided the endpoint URL which contains a Port number. https://Test.com:50001/RESTAP/BGN/PRDV/CREATE When I'm trying to make the request I'...
1
vote
1answer
2k views

How to resolve Missing closing quote character ' on string, error message

I got the code below working: Corrected the (curved) brackets, 'quote signs'. Now at least anonymous execution window is executing without interruption. Even the 400 message, has gone away. Only need ...
0
votes
1answer
451 views

dynamic json body as http post request

public class RequestWrapper { public static GetUrlRequest GetUrlRequest; public class OrderDetails { public String txnId; public String custOrder; public ...
0
votes
1answer
55 views

APEX test script to web server with a static time stamp doget cakk and HttpGet

New to writing test scripts. Looking for help in error in Unexpected token 'Lead' for my test code. I have a static field that pulls off time stamp to only pull data after a certain time. I am ...
0
votes
1answer
53 views

read JSON, POSTed to my visualforce Site page from 3rd party. without authentication

The currentPage().getParameters() can read GET pagams, and also reads POST body only if the header Content-Type = application/x-www-form-urlencoded However, when the Content-Type changes to ...
1
vote
1answer
181 views

Future class error - First error: Argument cannot be null

I have a requirement where I need to send JWT token as a part of my request body. I have created a JWT class and an Apex rest class to acheive the required scenario. Below are the classes Apex Rest ...
-2
votes
1answer
578 views

Apex Trigger to callout Rest API to external system when the status is updated

I have a REST API class which will send the response to external system as { "AccountId" : "0098", "email" : "Email-ID", "status" : "active" } Below is the REST API class that will send data to ...
0
votes
1answer
2k views

How to pass @httppost parameters in apex integration?

I’m trying to integrate two salesforce orgs. How to pass httppost parameters of method from other salesforce org in apex code please find the below codes it tried but I am getting status 400 ...
1
vote
2answers
167 views

WebService Post Rest API is Receiving as GET

I wrote a web service using @RestResource With both Get and Post methods. When I try to send a request via workbench - everything works great, but when I try to send a post request using other ...
0
votes
1answer
201 views

Submitting Web-to-Lead via POST returning 401: Unauthorized?

I need to capture data locally as well as submit that data to Salesforce. I am trying to POST data to https://[example].secure.force.com/HC4__WebFormProcessor , however I am getting a response of 401: ...
1
vote
1answer
122 views

Unable to make /login POST call from application of marketing cloud

I'm working on building the application on the salesforce marketing cloud and facing the issue of making POST /login call to application. Scenario: We have created a cloud application in Installed ...
0
votes
1answer
114 views

Wrong format of JSON Array after a successful POST using Apex Class

I've been trying to create a List from the Account object, filtered by their record type, to be sent to our website using the Apex Class. I managed to create the query correctly and it returned the ...
0
votes
2answers
943 views

PATCH Issue - {“Message”:“The requested resource does not support http method 'POST'.”}

I have a callout that is having an issue with it's POST. I have seen a couple of work arounds for this issue but none of them seem to work with my integration. req.setMethod('POST'); req.setHeader('...
0
votes
0answers
1k views

POST API: System.HttpResponse[Status: Forbidden , StatusCode=403 ]

I am working callout to post my JSON. When I test my JSON at PostMan it's all correct but when same JSON with my api, I got ' System.HttpResponse[Status: Forbidden , StatusCode=403 ]' ( 403 Confirmed.....
0
votes
2answers
1k views

Redirect following POST method

I have a scenario : A user needs to fill a form and after submitting, it should send the data of the form using POST API to some URL - the user will need to be redirected to this page after the ...
0
votes
1answer
56 views

Dispaly an Error Message on unsuccessful POST function

I have a requirement where the user is updating a table and when he/she clicks on the Save button a POST service is called and the data gets saved. The requirement is now enhanced where by the user ...
0
votes
1answer
30 views

Error in Json for Rest Api

I have a trigger that sends a certain opportunity to an unspecified stage, so I have a json with the objects, but I intend to send everything in a single string, so I joined json, when I run the code ...
0
votes
0answers
31 views

POST service with Rest API callout method for HTTPS

I have a requirement for POST service. I am using the Rest API callout approach. The end point is in http. The client is asking for using https end point. My question is what is the procedure for ...
2
votes
0answers
208 views

HttpResponse Error 502 on callout to internal URL

Recently, I deployed a change set to my organization production environment. On production, it works fine, but on community my callout doesn't look to work as expected. Basically, on my code, I make a ...
1
vote
1answer
50 views

How to get our Salesforce org ready for APIs?

I need some guidance to understand how a certain API will work and the process of making it so. We have a third party online e-learning app (called bksb) where learners do assessments and we manually ...
0
votes
1answer
111 views

rest post execution of AfterInsert caused by: System.NullPointerException: Argument cannot be null

i am doing an callout to a third parity using a trigger. and I am getting the error. CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY message: LeadCallout: execution of AfterInsert caused by: System....
0
votes
2answers
867 views

Json parsing in rest service apex

I want to know how Apex parse rest post data.. Like in the following example: // Apex code for Post service @HttpPost global static String doPost(String n,String site, String name) { Account ...
0
votes
1answer
124 views

post Event for a lead getting incorrect type for WhatId

I am trying to post an Event for a lead in salesforce from an external system I am using the WhatId to link the event to the Lead and I am getting: MALFORMED_ID message: Related To ID: id value of ...
1
vote
1answer
2k views

Test for HttpPost service: how to take JSON body for test?

I have a HttpPost methods. And I really don't know how to test it correctly. My methods: public static App__c ParseRequest(RestRequest req) { App__c app = new App__c(); String body = req....
0
votes
1answer
412 views

Callout REST HttpPost: how to create an object with all fields?

I wrote my Callout, but it create an object only with Id. How can I create an object with all fields? HttpPost: public static App__c ParseRequest(RestRequest req) { App__c app = new App__c(); ...
0
votes
1answer
27 views

Can we use a map in HttpPost to make our code shorter? (too many fields and we can add more in future)

Can we use a map? And how to do that? Too many fields here already and we can add more in future. @HttpPost global static Ticket__c postT(String title, String whattime, String whatdate, String ...
0
votes
1answer
30 views

How to to foresee External ID in HttpPost?

When we post a Box record we also send it an External Id from another side. How to to make it in HttpPost method? I have an object1 in Org1. In Org1 are all my callouts. object1 has a button POST. ...
2
votes
1answer
623 views

How to send Form Data to DE without hitting submit button using AJAX and AMPscript

I have a HTML Form with AJAX code <html> <head></head> <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <script> function ...
1
vote
1answer
63 views

API Header authorization for Bright Pattern

I have issue with posting an API header to Bright Pattern out of Developer Console using a workspace. below is the Code and when I send it I get an error: Execute Anonymous Error on line 6 column:...
2
votes
1answer
37 views

POST a record from Org1 to Org2 with JSON and Map

I need to post created record from Org1 to Org2. I want to "put" my JSON into Map and just "open" Map in another Org. Needed result: fields from new Org1 Object's record = fields from new Org2 Object'...
0
votes
1answer
896 views

System.NullPointerException: null argument for JSONGenerator.writeStringField() in POST Method

I have a custom Obj, and try to realize a POST method. But I get an Error: System.NullPointerException: null argument for JSONGenerator.writeStringField() What is wrong here? public static ...
0
votes
1answer
188 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 ...