Retrieve document info
To view basic info, use NSDocument
To view (and possibly update) complex info, use NSDocumentEntity
List all documents with SearchEngine
NSDocument[] GetDocumentList(Integer[] p0)
Fetches a collection of documents corresponding to a list of IDs.NSDocument[] GetAppointmentDocuments(Integer appointmentId)
Get all documents that are linked to a follow-up.NSDocument[] GetContactDocuments(Integer contactId, DateTime startTime, DateTime endTime, Integer count)
Fetches a limited number of documents within a time range for the given contact.Create document entity
NSDocumentEntity CreateDefaultDocumentEntity()
Create and populate with default values:Set document properties for people and organizations
You can choose whether to use an agent to get associate, contact, and person objects by their ID or to create the objects and set the ID.Link document to a follow-up
Suggested documents
Suggested documents are just that - suggested. They’re blueprints that can be used to create actual documents, and are commonly used for sales guides and project guides.Don’t confuse suggested documents for document templates.
List available suggestions
Create document from suggestion
All you need is the ID of the suggested document, and then callingCreateDefaultDocumentEntityFromSuggestion() will do the magic for you!
Change document properties
The
NSDocumentEntity can’t be changed if the document is marked as Completed.Use GetCompleted() to check the status. Toggle it to 0 to do your edits and then toggle it back if necessary.Delete document entity
Reference
Frequently used fields
For a complete list of fields, see the database reference.