Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Request Types

mattkol edited this page Dec 17, 2016 · 6 revisions

SugarRestSharp request type - RequestType enum class has the following types:

Type SugarCRM method Comment
ReadById get_entry Reads entity - request module Id must be valid. This is set in SugarRestRequest parameter.
BulkRead get_entry_list Reads first 100 entities if available. To change the maximum count of 100 this can be changed in Request [Options](Request Options).
PagedRead get_entry_list Reads entities based on CurrentPage and NumberPerPage to be set in Request [Options](Request Options).
Create set_entry Creates entity - request entity data must be valid. This is set in SugarRestRequest parameter.
BulkCreate set_entries Creates entity collection - request entity collection data must be valid. This is set in SugarRestRequest parameter.
Update set_entry Updates entity collection - request entity data must be valid. This is set in SugarRestRequest parameter.
BulkUpdate set_entries Updates entity collection - request entity collection data must be valid. This is set in SugarRestRequest parameter.
Delete set_entry Deletes entity - request module id must be valid. This is set in SugarRestRequest parameter.
LinkedReadById get_entry Reads entity - request module id must be valid. This is set in SugarRestRequest parameter. The linked module info must be set in [Options](Request Options).
LinkedBulkRead get_entry_list Reads entity collection. The linked module info must be set in [Options](Request Options).

For more on SugarCRM methods used check - SugarCRM methods