WebCrmApiReadFromWebcrmByDates Method |
Returns a list of entities basing on date criteria.
ReadFromWebcrmByDates is deprecated, please use ReadFromWebcrmByDatesDirect instead.
Namespace: dk.webCRM.ApiSync.WebServiceAssembly: dk.webCRM.ApiSync.WebService (in dk.webCRM.ApiSync.WebService.dll) Version: 2.0.0.5 (2.0.0.5)
Syntaxpublic WebCrmDataCollection ReadFromWebcrmByDates(
DataEntityType entityType,
DateTime fromDateTime,
DateTime toDateTime,
DateFilterType dateMode
)
Public Function ReadFromWebcrmByDates (
entityType As DataEntityType,
fromDateTime As DateTime,
toDateTime As DateTime,
dateMode As DateFilterType
) As WebCrmDataCollection
public:
WebCrmDataCollection^ ReadFromWebcrmByDates(
DataEntityType entityType,
DateTime fromDateTime,
DateTime toDateTime,
DateFilterType dateMode
)
member ReadFromWebcrmByDates :
entityType : DataEntityType *
fromDateTime : DateTime *
toDateTime : DateTime *
dateMode : DateFilterType -> WebCrmDataCollection
Parameters
- entityType
- Type: dk.webCRM.ApiSync.BusinessLayer.EnumsDataEntityType
Entity type. - fromDateTime
- Type: SystemDateTime
Date from which the search begins.
The date cannot be before January 1st 2000. - toDateTime
- Type: SystemDateTime
Date after which the search ends.
The date cannot be after December 31st 2200. - dateMode
- Type: dk.webCRM.ApiSync.BusinessLayer.EnumsDateFilterType
Identifies date field used for the filter:
- 0: the record create date is used as matching criteria.
- Any other values: the record update date is used as matching criteria.
Return Value
Type:
WebCrmDataCollectionReturns error status and a list of entities.
Examples
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus;
TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus);
DateTime fromDate = new DateTime(2000, 12, 1);
DateTime toDate = new DateTime(2010, 10, 7);
WebCrmDataCollection collection = proxy.ReadFromWebcrmByDates(ticket,
DataEntityType.Activities, fromDate, toDate, DateFilterType.ByCreationDate);
See Also