This message was deleted.
# suitescript
s
This message was deleted.
n
Copy code
[
   {
      recordType: "job",
      id: "3944",
      values: {
         "customer.internalid": [
            {
               value: "2700",
               text: "2700"
            }
         ],
         custentitycert_billing_uom: [
            {
               value: "4",
               text: "DEL"
            }
         ],
         custentitycert_proj_location: [
            {
               value: "13",
               text: "Fox Creek"
            }
         ],
         custentity_cert_proj_dept: [
            {
               value: "4",
               text: "Operations : Service Hubs"
            }
         ],
         custentity_cert_proj_class: [
            {
               value: "1",
               text: "CNG"
            }
         ],
         cseg_cert_custype: [
            {
               value: "32",
               text: "Oil & Gas : Rig - Bi-Fuel"
            }
         ]
      }
   }
]
right now trying:
Copy code
var jobdepartment = jobres[0].getValue({
      name: "custentity_cert_proj_dept"
    });
s
What is the context of this? MR?
n
yes, but I think I actually got the logging wrong as I put an old field in there 🤦‍♂️
s
if you are int he map stage of the MR, then it is no longer a searchResult type, it is just an JSON object
data is stringified when passed between stages, you just need to read the value off the property like a regular JSON object rather than using a getValue call
n
ya i have a function that returns a search result in the map stage
i had forgotten to change the name of some variables I was logging.. that was actually the issue