Questions tagged [get]
The get tag has no summary.
35 questions
1 vote
0 answers
68 views
SSJS GET Image request retrieving different data than Postman
Using a SSJS GET on an endpoint which returns binary image data results in different data than the same call in Postman. Here's my setup: var url = "https://graph.microsoft.com/v1.0/me/photo/$...
0 votes
1 answer
39 views
HTTP GET for All Push Locations not working
I am creating a script to get the list of all locations but the Get function is not retrieving anything. Here's my script: <script runat="server"> Platform.Load("Core", "...
0 votes
0 answers
40 views
Post API converts automatically to get method in Salesforce
We are trying to hit our salesforce instance from outside using webservices. 3rd party is using post as a method. But in salesforce it is not recognized as post request. We have used these lines in ...
0 votes
0 answers
25 views
Sort Element - Can it work with/as a variable from GET to UPDATE
Situation. We are tidying up some flows so they use less GET's. We have one that gets a single highest value of the last 6 months. Previously we had a filter (for its requirements) then a descending ...
1 vote
1 answer
201 views
Below is my class I want recordId from the Database.error
for (Database.SaveResult result : saveResultList) { if (result.isSuccess()) { successCount++; system.debug('Get id of success Record'+result.getid()); } ...
1 vote
1 answer
1k views
Recently started showing Salesforce web api error for V49.0 "The requested resource does not exist". There is no issue in the URL
Salesforce web api GET and POST both were working OK before. Suddenly from today started giving following error. Noticed in the API setup API version is changed but after updating newer version code ...
0 votes
1 answer
71 views
.get method not returning value even though I copy/pasted the key into it
I'm creating a map based on a custom object in my org. Basically this is the code for it. Map<String, String> translationMap = new Map<String, String>(); List<StageNameTranslation__c>...
1 vote
1 answer
470 views
Unable to retrieve value from a map even though the key is correct
I have a map and have pushed a value into it, but when using get map, the result returns null. After debugging, I found that the key is correct. What could be the reason? Can someone help me? This is ...
0 votes
1 answer
248 views
How to pass value from attribute lightning component to apex controller without apex
I have a component with an attribute. I try to pass the value to the controller without succes. How do I achieve this. Aura component <aura:attribute name="currentUser" type="...
0 votes
1 answer
1k views
Get value from Map in trigger
I am trying to get values from map and assign the value in trigger. Below is the code so far - I need to get ID based on a value from a Map which I have created. public class AccountTriggerHandler ...
2 votes
1 answer
507 views
CloudPage GET/POST Parameter with value "<[aZ]" fails with 500 error
I try to make sense out of an edge case scenario I just came across and would love to get some ideas around why this may happen. On any CloudPage, if I add a GET or POST parameter with the value of &...
0 votes
1 answer
372 views
LWC Component unable to get response from Nager.Date API although response is shown in network tab
I am unable to get the response from Nager.Date API using the follow code: LWC function: getData(){ let myurl = 'https://date.nager.at/api/v3/publicholidays/2021/AU'; fetch('https://date.nager....
0 votes
1 answer
1k views
Batch Class Error - System.UnexpectedException: Start did not return a valid iterable object
I m trying to Sync Salesforce with an external system and run the batch class every night but when I try to test the batch class in Execute anonymous window, I get this - System.UnexpectedException: ...
0 votes
1 answer
1k views
Rest api get endpoint with bind var in query
I want to bind variable in get request, but it gives me error "Bind variables only allowed in Apex code","errorCode":"MALFORMED_QUERY"}". How to do it? Account ...
0 votes
1 answer
722 views
Salesforce RestResource GET API is unable to identify special characters passed in query string
I have created a RestResource API class with GET method. It is supposed to accept the email passed as an input via the query string, and perfom logic based on that email received. It all worked fine ...