Abstract objects

Object

Description

ewarebase abstract

An abstract declaration from which all other Sage CRM objects inherit.

idbase abstract

An abstract declaration from which all ID types inherit.

ewarebaselist

A list of the abstract objects above.

crmrecordtype

An enumeration that represents the types of a Sage CRM field (string, datetime, integer, or decimal).

Use the crmrecordtype object with its associated add, update, and delete functions to query an entity and return a list of fields that you can iterate through.

It allows you to specify which fields you want returned in your query, and to dynamically add fields to the Web Services entities. It removes the need for strongly typed objects in client applications. Follow code samples closely when performing these tasks.

Example

Copy
Private static void CallQueryRecordOnCompanyEntity()
{
    String companyid =  ReadUserInput("Please enter a company name: ");
    Queryrecordresult aresult = Binding.queryrecord("comp_companyid,address","comp_name='compo1'","company","comp_companyid");
}

This example specifies a field list and an entity name, a Where clause and an order by. If you enter an asterisk (*) or leave the field list blank, all the fields are returned.

crmrecord

Contains an entity name and a list of objects of type recordfield that represent one record in the Sage CRM database.

aisid

Contains the ID of the record, the created and updated date, and a flag to indicate whether the record was added, updated, or deleted since the token was passed to queryid.

multiselectfield

Represents a multi-select field from CRM. It contains a field name and an array of strings representing the values of the field in CRM. These values are translations.

recordfield

Represents a field in a database record. It has a name value and a type of crmrecordtype. It can also represent a nested structure. For example, the name of the recordfield in a company crmrecord could be person. The type would be crmrecord and the record property would contain a list of crmrecords – one for each person in the company.