Click or drag to resize
WebCrmApiReadFromWebcrmByIdDirect Method
Returns a list of entities basing on the given organisationID and recordID. If entityType is Organisations then organisationID and recordID must me equal.

Namespace: dk.webCRM.ApiSync.WebService
Assembly: dk.webCRM.ApiSync.WebService (in dk.webCRM.ApiSync.WebService.dll) Version: 2.0.0.5 (2.0.0.5)
Syntax
public WebCrmDataCollection ReadFromWebcrmByIdDirect(
	DataEntityType entityType,
	long organisationID,
	long recordID
)

Parameters

entityType
Type: dk.webCRM.ApiSync.BusinessLayer.EnumsDataEntityType
Entity type.
organisationID
Type: SystemInt64
Organisation ID of the requested entities. If this value is 0 then returns data for all organisations. Otherwise returns data only for the specific organisation.
recordID
Type: SystemInt64
Identifier of the requested entities. If this value is 0 then returns data for all records found. Otherwise return data only for the specified record.

Return Value

Type: WebCrmDataCollection
Returns error status and a list of entities.
Examples
// Login and get a webservice ticket
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus;
TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus);

// Read from webCrm
WebCrmDataCollection collection = 
        proxy.ReadFromWebcrmByIdDirect(ticket, DataEntityType.Activities, 35, 1);
See Also