DealCloud
Other Resources
install
npm install dealcloud-js
Examples
Create Client
const dealcloud = ; const params = username: 'username@firm.com' password: 'password' url: 'https://schema.dealcloud.{com|eu}' ; const client = await dealcloud;
No Parameters
These methods do not require or accept any params.
Get Currencies
const dealcloud = ; const params = username: 'username@firm.com' password: 'password' url: 'https://schema.dealcloud.{com|eu}' ; const client = await dealcloud; const currencies = await dealcloud;
Get Lists
const dealcloud = ; const params = username: 'username@firm.com' password: 'password' url: 'https://schema.dealcloud.{com|eu}' ; const client = await dealcloud const result = await dealcloud;
Get Fields
const dealcloud = ; const params = username: 'username@firm.com' password: 'password' url: 'https://schema.dealcloud.{com|eu}' ; const client = await dealcloud const result = await dealcloud;
Parameters
These methods require params.
Modified Entries
const dealcloud = ; const params = username: 'username@firm.com' password: 'password' url: 'https://schema.dealcloud.{com|eu}' ; const fromDate = "2018-10-26T21:32:52"; //can be any valid date format const client = await dealcloud; const result = await dealcloud;
Filtered Entries
{ return $attributes: "$xsiType": `{http://www.w3.org/2001/XMLSchema}xsd:` $value: arg } const filterInfo = FieldId: 58743 FilterOperation: "StartsWith" Value: const entryListId = 67337; //Id parameter returned by getLists const srcFilters = FilterInfo: filterInfo; const client = await dealcloud const result = await dealcloud;
Chains
These methods require a parameter returned by one or more of the No Params methods
Get Entries
const dealcloud = ; const params = username: 'username@firm.com' password: 'password' url: 'https://schema.dealcloud.{com|eu}' ; const entryListId = 67337; //Id parameter returned by getLists const client = await dealcloud const result = await dealcloud;
Get Records
const client = await dealcloud // Getting Lists const entryLists = await dealcloud; // Getting Fields const allfields = await dealcloud; // Random entry list const entryList = entryListsMath; const entries = await dealcloud; const entryFields = _ // If pulling against an empty entry list could get an error, // this is needed only because i'm pulling from random entry lists if entries == null return ; /** * If filtering, run this loop twice, first only for fields that you would like to filter on but for all entries * Filter DCPull results however you'd like * Run this loop again for all fields, but only for the filtered entries */ entriesNamedEntry; // Without Batching // const result = await processDCPullAsync(client, DCPulls) // Batching DCPulls into batching of 10k pulls, can specify alternate batch sizes const result = await ; return result;
The actual batching function
{ const manyBatchedDCPulls = _ value; const manyResults = await PromiseallmanyBatchedDCPulls; const result = _ return result;}
the dcpull function
{ const result = await dealcloud; return result;};