function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
fiona gentryfiona gentry 

How to get "Score" Field in JSON Response body to Custom Lightning Component at Contacts

Dear Folks,

I have to display a field named Score from a nested Rest API JSON response in a "Aura Lightning Component"  and this component will be shown in Related Details of Contacts .

Can some one help provide a code to do this ,The Response schema which looks like this 
User-added imageHere is the Nested JSON response sample
{
  "responseID": "bb24077b-12c9-4ffe-ac7b-61cafe7281c2",
  "requestID": "1112211",
  "responseDate": "10/8/2019 12:34:58 PM",
  "prospectScoringOverallScoreID": 2213,
  "model": "your_code",
  "personID": "3333",
  "error": null,
  "blackList": false,
  "approved": false,
  "score": 0,
  "decisions": [
    {
      "code": "approved",
      "description": "Approved"
    }
  ],
  "followUpActions": null,
  "dashboardLink": "https://dashboard.vspinsight.net/app/eligibility-checks/2213",
  "vendors": {
    "primCipScore": {
      "FraudID": "385092122",
      "cvi": 20,
      "nas": 0,
      "nap": 0,
      "cmra": false,
      "poBox": false,
      "dobVerified": false,
      "riskIndicators": [
        {
          "code": "02",
          "description": "The input name matches the OFAC file",
          "sequence": 1
        },
        {
          "code": "19",
          "description": "Unable to verify name  address  SSN/TIN and phone",
          "sequence": 2
        },
        {
          "code": "79",
          "description": "The input SSN/TIN was missing or incomplete",
          "sequence": 3
        },
        {
          "code": "16",
          "description": "The input phone number and input zip code combination in invalid",
          "sequence": 4
        },
        {
          "code": "82",
          "description": "The input name and address return a different phone number",
          "sequence": 5
        },
        {
          "code": "64",
          "description": "The input address returns a different phone number",
          "sequence": 6
        }
      ],
      "followUpActions": [
        {
          "code": "A",
          "description": "Follow your internal policy regarding potential matches to OFAC database information"
        },
        {
          "code": "B",
          "description": "Verify name with Social (via SSN card  DL if applicable  paycheck stub  or other Government Issued I"
        },
        {
          "code": "C",
          "description": "Verify name with Address (via DL  utility bill  Directory Assistance  paycheck stub  or other Govern"
        },
        {
          "code": "D",
          "description": "Verify phone (Directory Assistance  utility bill)"
        }
      ],
      "errorMessage": null
    },
    "primFraudScore": {
      "FraudID": "385092122",
      "fraudScore": 453,
      "stolenIdentityIndex": 0,
      "syntheticIdentityIndex": 0,
      "manipulatedIdentityIndex": 0,
      "vulnerableVictimIndex": 0,
      "friendlyFraudIndex": 0,
      "suspiciousActivityIndex": 0,
      "warningCodes": [
        {
          "code": "IA",
          "description": "The input IP address is not assigned to the United States",
          "sequence": 0
        },
        {
          "code": "38",
          "description": "The input SSN is associated with mulitiple last names",
          "sequence": 0
        },
        {
          "code": "MN",
          "description": "The input SSN was issued within the last seventeen years",
          "sequence": 0
        },
        {
          "code": "PA",
          "description": "Potential address discrepancy - the input address may be a previous address",
          "sequence": 0
        }
      ],
      "followUpActions": [],
      "errorMessage": null
    },
    "primDeviceScore": {
      "score": 0,
      "riskLevel": 0,
      "tdl": null
    },
    "primEmailScore": {
      "easCore": 0,
      "riskBand": 0
    },
    "primTelcoScore": {
      "Impact": "FirstNameScore: 9\nLastNameScore: 0\nStreetAddressScore: 0\nCityScore: 0\nStateScore: 0\nZipCodeScore: 0\nEmailAddressScore: 0\nDataSource: Third-Party\n"
    },
    "primAbuseScore": {
      "score": "0644",
      "unpaidClosures": "",
      "partiallyPaidClosures": "",
      "previousInquiries": "002",
      "reportedClosures": null,
      "reasonCodes": [
        {
          "reasonCode": "CN",
          "reasonText": "PROPERTY OWNERSHIP HISTORY UNKNOWN"
        },
        {
          "reasonCode": "CQ",
          "reasonText": "ASSET OWNERSHIP HISTORY UNKNOWN"
        },
        {
          "reasonCode": "CK",
          "reasonText": "NON-DEROGATORY PUBLIC RECORD HISTORY UNKNOWN"
        },
        {
          "reasonCode": "CG",
          "reasonText": "TIME AT CURRENT ADDRESS UNKNOWN"
        },
        {
          "reasonCode": "CB",
          "reasonText": "TIME SINCE DDA INQUIRY ACTIVITY"
        }
      ]
    },
    "primGeoScore": {
      "geolocation": null,
      "anonymousProxy": false,
      "legitimateProxy": false
    }
  }
}
Regards,
Fiona