Retrieving Standard Resources
Data retrieval - standard resources
Get single object by unique key
To retrieve a single object use the get function for the desired resource
Only UUID is currently supported as a key
Supported Resources: accounts, transactions, activities, transactionLines, transactionScopeItems.
from CPI 15.85 supports also : items, catalogs, users, contacts.
pepperi.api.<resource>
.get( { key: {UUID: "<UUID>
"} , fields: [ <string array of relevant field names>
] }
Example:
Returns the following object that can be used for the "update" functions :
Search list of objects by filter
To retrieve multiple objects use the search function for the desired resource - it returns the following object:
Supported resources: accounts, transactions, activities, transactionLines, allActivities.
from CPI 15.85 supports also : items, catalogs, users, contacts.
pepperi.api.<resource>
.search (filter: { <filter object>
}, sort : [ <array of sort objects>
} , pageSize : <number>,
page: <number>
)
Example:
Returns:
Retrieve item's images:
TO BE DEVELOPED :
Add 12 new fields to items resource - both items.get and items.search functions.
The behavior is similar to attachments.get function = URL always returns URL , while URI field returns Base64 content when called from Mobile Device and URL when called from Web App. Field Names:
ImageURL
ImageURI
ImageURL2
ImageURI2
....Until 6 (Items resource supports up to 6 images per item)
Last updated