Hello, I am pulling JSON data from a third party API. The data object (although truncated to only show one), looks like this: {
"data": [
{
{
"id": "625",
"type": "projects",
"attributes": {...
Hello everyone,Thank you in advance for any help you can provide me. My setup is this:
I have a portal for end users to submit records through to a custom table on a scoped application. One of the tabs in the form of this portal has a reference field...
I think I solved the issue. You cannot iterate through null values at all. The loop breaks the moment it hits a null object. You HAVE to check for null and skip the iteration using "continue". You also have to check for the string value of "null" and...
With your format, when I take the "first-name" away, I get null for the user object all around:for (i = 0; i <= 4; i++) {
// var userVariable = JSON.stringify((parsed.data[i]['attributes']['procurement-official']['user']['first-name']));
var...
You mean like this, yea?try {
var r = new sn_ws.RESTMessageV2('STP CI Solicitation', 'Default GET');
var response = r.execute();
var responseBody = response.getBody();
var httpStatus = response.getStatusCode();
var parser = new J...
Hello Jaheer, It's not, I assure you. The payload has 33k lines in it and when I first posted this question, I took one object from the array. In my inattention, I added an extra bracket that should not be there. The follow up replies address this. A...
Thank you Chris; here is the error message:} catch (ex) {
var message = ex.message;
gs.error("This is the ex error message" + message);
}
*** Script: This is the ex error messageCannot read property "first-name" from null: no thrown error