跳转到内容
EN

Search records

Code Mode: praxis.crm.objects.search

HTTP: POST /crm/v1/objects/{objectType}/search

Find records using text query, property filters and sort order rather than scanning a list. Obtain objectType from schemas.list and filter propertyName values from properties.list. Supply filterGroups, sorts, properties, limit and after; use empty arrays for no filters, sorts or property selection, and an empty after for the first page. Copy paging.next.after with the same query to continue. This operation reads records without changing them.

签名

praxis.crm.objects.search(args:{path:{objectType:string};body:{/** A paging cursor token for retrieving subsequent pages. */ after:string;/** Up to 6 groups of filters defining additional query criteria. */ filterGroups:Array<{/** Conditions combined with AND within this filter group; separate filter groups are combined with OR. */ filters:Array<{/** The upper boundary value when using ranged-based filters. */ highValue?:string;/** Comparison applied to propertyName; supply value, values or highValue according to the selected operator. e.g. "BETWEEN" */ operator:"BETWEEN"|"CONTAINS_TOKEN"|"EQ"|"GT"|"GTE"|"HAS_PROPERTY"|"IN"|"LT"|"LTE"|"NEQ"|"NOT_CONTAINS_TOKEN"|"NOT_HAS_PROPERTY"|"NOT_IN";/** The name of the property to apply the filter to. */ propertyName:string;/** The value to match against the property. */ value?:string;/** The values to match against the property. */ values?:Array<string>}>}>;/** The maximum results to return, up to 200 objects. e.g. 0 */ limit:number;/** Internal property names to include in each returned record; obtain them from properties.list. */ properties:Array<string>;/** The search query string, up to 3000 characters. */ query?:string;/** Property names controlling ordering; prefix a property name with a minus sign for descending order. */ sorts:Array<string>}}):Promise<{/** Pagination links and opaque continuation cursors; absence of next marks the final page. */ paging?:{/** Continuation cursor for the following page; omit further calls when this member is absent. */ next?:{/** A paging cursor token for retrieving subsequent pages. */ after:string;/** A URL that can be used to retrieve the next page results. */ link?:string};/** Continuation cursor and link for the preceding page, when available. */ prev?:{/** A paging cursor token for retrieving previous pages. */ before:string;/** A URL that can be used to retrieve the previous pages' results. */ link?:string}};/** Resources returned by this request; batch callers must also inspect per-input errors. */ results:Array<{/** Whether the object is archived. */ archived:boolean;/** The timestamp when the object was archived, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ archivedAt?:string;/** The timestamp when the object was created, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ createdAt:string;/** The unique ID of the object. */ id:string;/** An identifier used for tracing the write request for the object. */ objectWriteTraceId?:string;/** Key-value pairs representing the properties of the object. */ properties:{[key:string]:string|null};/** Key-value pairs representing the properties of the object along with their history. */ propertiesWithHistory?:{[key:string]:Array<{/** Identifier of the source that recorded this property value. */ sourceId?:string;/** A human-readable label. */ sourceLabel?:string;/** Source category that produced this historic property value. */ sourceType:string;/** The timestamp when the property was updated, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ timestamp:string;/** The ID of the user who last updated the property. e.g. 0 */ updatedByUserId?:number;/** Property value recorded at timestamp, represented as a string. */ value:string}>};/** The timestamp when the object was last updated, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ updatedAt:string;/** Direct URL for this object in the portal */ url?:string}>;/** The total number of objects included into response. e.g. 0 */ total:number}>;

参数

名称位置类型必填说明
objectTypepathstring是Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>.

请求体

必填内容类型说明
是application/jsonValues for search records; use internal property names and resource ids from the corresponding list operations.

响应

状态码内容类型说明
200application/jsonSearch records succeeded; inspect the returned resource or result collection.
400application/jsonVALIDATION_ERROR rejects invalid properties or stage rules; supply errors[0].context.properties when requirements are missing, or choose an allowed stage. BAD_REQUEST rejects malformed input; correct the request before retrying.
401application/jsonThe bearer credential is missing or invalid; provide a valid platform API key before retrying.
404application/jsonOBJECT_NOT_FOUND means an object type, record or definition is unavailable in your organization; select an accessible identifier from its list operation.