The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [response]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
605 views

@IsTest - How to get the RestContext.response from @HttpPost if the post method is not returning [duplicate]

I created a @HttpPost API end point called SampleAPI that doesn't return an object. Instead I am populating RestResponse like so: @RestResource(urlMapping='/SampleAPI/*') global class SampleAPI{ ...
0
votes
1answer
30 views

Rest reponse for empty field

If I am querying RestResponse using below query: List<Account> accList = [SELECT Name, AccountNumber FROM Account WHERE LastName = :req.params.get('name')]; For any account with an empty ...
-2
votes
3answers
437 views

Lightning component not returning a response

I Have a lightning component from which I pass data to an apex class. I return the object. Why don't I get an update on my object neither a response in my lightning component. Lightning ...
-3
votes
1answer
37 views

Sending status code with response using apex [closed]

I am working on a rest API using http post to get the params and create a record. After creating the record I need to send a response with the details of created record along with a status code and ...