Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

New answers tagged

1 vote
Accepted

Named Credential - using a merge field

Named Credential acts as a runtime proxy. The proxy receives your HTTP request then searches its body or headers for the merge field as a literal string. If NC doesn't find the field, it won't ...
user avatar
  • 6,150
1 vote

Named Credential - using a merge field

I don't think you can use a merge field like this, because it's replaced when the call is made. Effectively you're ending up with the encoded value of the literal text {!$Credential.Username}:*...
user avatar
  • 211
0 votes

How to properly test and assert an @restresource that do multiple API calls?

So try something like this (note, this is me coding in the browser so you might need to adjust it). public class MockHttpResponse { public Integer code { get; set; } public String status { get; ...
user avatar
  • 1,576
1 vote

Question for confirmation: Callout from Trigger using Platform Events

You can achieve this now with Platform Event Triggered flows. Once you publish a platform event. You can configure and flow to listen to this and then from the Flow configure it to call an Apex Action....
user avatar
1 vote
Accepted

is it possible to add uri parameters on a http callout using named credentials?

HTTP headers (via setHeader) are typically for things like an authorization token and such. "Application" level data are put into the query string. For example, if I wanted to search Google, ...
user avatar
  • 430k
0 votes

Http POST/PUT data via LWC or VF

If you are developing new and if your users are using Lightning UI, I would suggest you focus on LWC instead of VF page. With that said, you can achieve this both in LWC and VF. Approach for Lwc is as ...
user avatar
  • 1,550
0 votes

After response from future callout how we can update the field value in record, can you please assist

Try Requery with AccountIds and update. Refer: (The issue reported is NOT the same; but check "updateSERecord" method for the code pattern) https://developer.salesforce.com/forums/?id=...
user avatar

Top 50 recent answers are included