Questions tagged [get]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
32 views

RestResource extracting array from JSON packet

I am currently receving a JSON packet from an external server and placing the values in variables for further use. The JSON packet has an array that can and will grow depending on the amount of assets ...
1
vote
1answer
17 views

Is it possible to remove of filter keysets by a standard method and only maintain keyset which start with a string

I query over Custom metadata to get 1 record(settings) with custom fields "MdtFieldsAcc" I pass the fields in a map with .getPopulatedFieldsAsMap() and then currently remove 1 keyset (Id). Is there a ...
0
votes
1answer
41 views

Pulling values from inner curly brackets

I am trying to pull the values from a JSON response and have managed to get most of the values except the one I need which is nested in an inner set of curly brackets public class web_ser { @future(...
0
votes
1answer
19 views

How to get time left on OrgPartition from Platform Cache?

Is it possible to get the time left from Platform Cache for a particular partition? You initiate by: Cache.OrgPartition orgPart = Cache.Org.getPartition('local.myStore'); You put the value by (...
1
vote
1answer
52 views

Set HttpWebRequest to Accept = application/xml

If I am querying using the following, then Function CallSFDCAPI works. services/data/v41.0/query?q=Select+Id+FROM+Vendor__c" I am required get the response in XML format. But how can i get the ...
0
votes
0answers
26 views

Form Redirect with params to controller

I have a 3rd side that makes a redirect to my VF page (A Force.com Site) with params. <form id="AFormId" action="A Force.com Site" method="post" target="_parent" enctype="application/x-...
2
votes
1answer
255 views

REST GET API response does not contain null fields

I have written a REST API endpoint for Account object for GET operation. The code is below - @httpget global static list<Account> doget(){ RestRequest req = RestContext.request; RestResponse ...
0
votes
1answer
36 views

Getting null in control from input field

I'm stack. I Have a simple controller and visualforce page. Controller: public class NewTaskSchedulerController { public Event Event {get; set;} public NewTaskSchedulerController(){ ...
0
votes
1answer
46 views

Retrieve id of div from within a get()

In my lightning web component I am trying to loop through a an array they determines if an item in a combobox should be marked or not: HTML <ul class="slds-listbox slds-listbox_vertical" role="...
0
votes
1answer
213 views

Get current ID in ligtning component for page Community Salesforce

I need help please, I'm trying to get the ID of the current page. from a page of a community in salesforce, but every time I reload the page to get the ID this arrives undefined, the URL that I am ...
0
votes
0answers
24 views

Not return correctly Json in Method GET Apex, return error page in html

I decode a Json in a Get method via PHP and php returns the answer in correctly Json, however in apex it returns me a page with an error in html, but with the Status Code 200. My client programmer ...
0
votes
2answers
55 views

Catch block code coverage for @HttpPost and @HttpGet REST API

I have some code in my catch block for both @Post and @Get methods. I need to cover catch block to get to 75% for GET, got catch block covered for POST Here is an example : // POST my JSON : [ ...
0
votes
0answers
25 views

Having trouble with a date/time get;set;

UPDATE I made a global string in the controller called temp date composed of the date as yyyy/mm/dd and then used THIS is the get;set; var rather than the one I directly use in the query. When I am ...