I am running the following data method to get the company details of a given ticket.
client.data.get("company").then (
function(data) {
console.log(data)
CompanyData1 = JSON.stringify(data);
},
function(error) {
// failure operation
}
);
Basically, this returns all the company details of the ticket. The retrieved payload can be seen as below:
Sample Data
{
"company": {
"avatar": [{
"attachment_url": "<AVATAR_URL>",
"content_type": "application/octet-stream",
"created_at": "2015-08-28T10:27:58Z",
"id": 9,
"name": "lantern.png",
custom_fields:
admin_status: XXXX
business_type: "XXXX"
corporate: "XXXX"
hs_company_id: "XXXX"
lifecycle_stage: "XXXX"
oabp_clinic_id: "XXXX"
pims_platform: "XXXX"
region: XXXX,
"thumb_url": "<THUMB_URL>",
I want to retrieve a specific attribute once I retrieve the data. Is this feasible?