Hello Folks, Trying to retrive values from below: ...
# suitescript
n
Hello Folks, Trying to retrive values from below:
Copy code
var arr = [
   {
      recordType: "customrecord_shrm_cust_import_record",
      id: 52102,
      custrecord_sh_cu_import_sub: {
         value: "1",
         text: "SHRM"
      },
      custrecord_sh_cu_import_email: "csvvtrt565645_nil_import33@gmail.com",
      custrecord_sh_cu_import_fname: "csv3434vff",
      custrecord_sh_cu_import_lname: "nil125589v",
      custrecord_sh_cu_import_title: "testing rec cust",
      custrecord_sh_cu_import_addr1: "testing add line 1",
      custrecord_sh_cu_import_addr2: "testing add 2",
      custrecord_sh_cu_import_city: "testing city",
      custrecord_sh_cu_import_state: {
         value: "30",
         text: "New Jersey"
      },
      custrecord_sh_cu_import_zip: "433434",
      custrecord_sh_cu_import_country: {
         value: "230",
         text: "United States"
      },
      custrecord_sh_cu_import_company: {
         value: "6919193",
         text: "1134079-SH Nilpeter Usa, Inc."
      }
   }
]

Like this but its not giving me value:
arr[0].custrecord_sh_cu_import_email
e
Copying and pasting this code exactly works for me
thanks 1
🙌 1