{
"LastModifiedDate": "2017-12-20T02:26:04.000+0000",
"Languages__c": "English",
"AccountId": "0011N00001B39TcQAJ",
"Email": "rose@edge.com",
"Salutation": "Ms.",
"MobilePhone": "(512) 757-9340",
"Name": "Rose Gonzalez",
"Department": "Procurement",
"Level__c": "Primary",
"CreatedById": "0051N0000053hLRQAY",
"OwnerId": "0051N0000053hLRQAY",
"Phone": "(512) 757-6000",
"PhotoUrl": "/services/images/photo/0031N00001JEmOSQA1",
"IsDeleted": false,
"IsEmailBounced": false,
"FirstName": "Rose",
"Avangate_Record__c": false,
"Title": "SVP, Procurement",
"MailingAddress": {
"street": "313 Constitution Place\nAustin, TX 78767\nUSA"
},
"Birthdate": "1965-12-01",
"SystemModstamp": "2017-12-20T02:26:04.000+0000",
"CleanStatus": "Pending",
"LeadSource": "Trade Show",
"CreatedDate": "2017-12-20T02:26:04.000+0000",
"Id": "0031N00001JEmOSQA1",
"LastName": "Gonzalez",
"Fax": "(512) 757-9000",
"LastModifiedById": "0051N0000053hLRQAY",
"MailingStreet": "313 Constitution Place\nAustin, TX 78767\nUSA"
}{
"LastModifiedDate": "2017-12-20T02:26:04.000+0000",
"Ownership": "Public",
"Description": "Edge, founded in 1998, is a start-up based in Austin, TX. The company designs and manufactures a device to convert music from one digital format to another. Edge sells its product through retailers and its own website.",
"BillingCity": "Austin",
"Rating": "Hot",
"Website": "http://edgecomm.com",
"LastReferencedDate": "2019-04-02T16:39:18.000+0000",
"SLA__c": "Silver",
"NumberOfEmployees": 1000,
"Name": "Edge Communications",
"Industry": "Electronics",
"BillingAddress": {
"city": "Austin",
"street": "312 Constitution Place\nAustin, TX 78767\nUSA",
"state": "TX"
},
"CreatedById": "0051N0000053hLRQAY",
"OwnerId": "0051N0000053hLRQAY",
"SLASerialNumber__c": "2657",
"TickerSymbol": "EDGE",
"Phone": "(512) 757-6000",
"NumberofLocations__c": 2,
"UpsellOpportunity__c": "Maybe",
"PhotoUrl": "/services/images/photo/0011N00001B39TcQAJ",
"IsDeleted": false,
"LastViewedDate": "2019-04-02T16:39:18.000+0000",
"Avangate_Record__c": false,
"Sic": "6576",
"ShippingStreet": "312 Constitution Place\nAustin, TX 78767\nUSA",
"AccountNumber": "CD451796",
"SystemModstamp": "2017-12-20T02:26:04.000+0000",
"Type": "Customer - Direct",
"CleanStatus": "Pending",
"SLAExpirationDate__c": "2018-01-13",
"BillingStreet": "312 Constitution Place\nAustin, TX 78767\nUSA",
"ShippingAddress": {
"street": "312 Constitution Place\nAustin, TX 78767\nUSA"
},
"CreatedDate": "2017-12-20T02:26:04.000+0000",
"CustomerPriority__c": "Medium",
"Id": "0011N00001B39TcQAJ",
"Fax": "(512) 757-9000",
"LastModifiedById": "0051N0000053hLRQAY",
"BillingState": "TX",
"AnnualRevenue": 139000000,
"Active__c": "Yes"
}{
"accountId": "0011N00001B39TcQAJ",
"contactEmail": "rose@edge.com",
"contactId": "0031N00001JEmOSQA1",
"accountName": "Edge Communications",
"contactLastName": "Gonzalez",
"accountRating": "Hot"
}

if(fromVendor){
let accountId = transformedObject.accountId;
const https = require('https');
let options = {
host: "api.openconnectors.ext.hanatrial.ondemand.com",
path: "/elements/api-v2/accounts/"+accountId,
port: 443,
method: "GET",
headers: {
"content-type": "application/json",
"authorization": `User ${configuration.userSecret}, Organization ${configuration.organizationSecret}, Element ${configuration.elementInstanceToken}`
}
};
const request = https.request(options, function(res){
let data = "";
res.on('data', function(d) {
data += d;
}).on('end', function(d) {
if(res.statusCode === 200) {
let parsedData = JSON.parse(data);
transformedObject.accountRating = parsedData.Rating;
transformedObject.accountName = parsedData.Name;
done(transformedObject);
}
else {
transformedObject.error = "error";
done(transformedObject);
}
});
});
request.on('error', function(e){
transformedObject.error = "error";
done(transformedObject);
});
request.end();
}

[
{
"accountId": "0011N00001B39TcQAJ",
"contactEmail": "rose@edge.com",
"contactId": "0031N00001JEmOSQA1",
"accountName": "Edge Communications",
"contactLastName": "Gonzalez",
"accountRating": "Hot"
},
{
"accountId": "0011N00001B39TcQAJ",
"contactEmail": "sean@edge.com",
"contactId": "0031N00001JEmOTQA1",
"accountName": "Edge Communications",
"contactLastName": "Forbes",
"accountRating": "Hot"
},
{
"accountId": "0011N00001B39TdQAJ",
"contactEmail": "jrogers@burlington.com",
"contactId": "0031N00001JEmOUQA1",
"accountName": "Burlington Textiles Corp of America",
"contactLastName": "Rogers",
"accountRating": "Warm"
},
{
"accountId": "0011N00001B39TgQAJ",
"contactEmail": "barr_tim@grandhotels.com",
"contactId": "0031N00001JEmOXQA1",
"accountName": "Grand Hotels & Resorts Ltd",
"contactLastName": "Barr",
"accountRating": "Warm"
},
{
"accountId": "0011N00001B39TgQAJ",
"contactEmail": "bond_john@grandhotels.com",
"contactId": "0031N00001JEmOYQA1",
"accountName": "Grand Hotels & Resorts Ltd",
"contactLastName": "Bond",
"accountRating": "Warm"
},
{
"accountId": "0011N00001B39ThQAJ",
"contactEmail": "spavlova@uog.com",
"contactId": "0031N00001JEmOZQA1",
"accountName": "United Oil & Gas Corp.",
"contactLastName": "Pavlova",
"accountRating": "Hot"
},
{
"accountId": "0011N00001B39ThQAJ",
"contactEmail": "lboyle@uog.com",
"contactId": "0031N00001JEmOaQAL",
"accountName": "United Oil & Gas Corp.",
"contactLastName": "Boyle",
"accountRating": "Hot"
},
{
"accountId": "0011N00001B39TiQAJ",
"contactEmail": "b.levy@expressl&t.net",
"contactId": "0031N00001JEmObQAL",
"accountName": "Express Logistics and Transport",
"contactLastName": "Levy",
"accountRating": "Cold"
},












You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 27 | |
| 24 | |
| 13 | |
| 12 | |
| 12 | |
| 11 | |
| 11 | |
| 11 | |
| 10 | |
| 10 |