You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/hubspot/actions/search-crm/search-crm.mjs
+20-46Lines changed: 20 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,14 @@ import {
4
4
DEFAULT_CONTACT_PROPERTIES,
5
5
DEFAULT_DEAL_PROPERTIES,
6
6
DEFAULT_LEAD_PROPERTIES,
7
-
DEFAULT_LIMIT,
8
7
DEFAULT_LINE_ITEM_PROPERTIES,
9
8
DEFAULT_PRODUCT_PROPERTIES,
10
9
DEFAULT_TICKET_PROPERTIES,
11
10
SEARCHABLE_OBJECT_TYPES,
12
11
}from"../../common/constants.mjs";
13
12
importhubspotfrom"../../hubspot.app.mjs";
14
13
importcommonfrom"../common/common-create.mjs";
14
+
constDEFAULT_LIMIT=200;
15
15
16
16
exportdefault{
17
17
key: "hubspot-search-crm",
@@ -42,13 +42,6 @@ export default {
42
42
"Set to `true` to search for an exact match of the search value. If `false`, partial matches will be returned. Default: `true`",
43
43
default: true,
44
44
optional: true,
45
-
reloadProps: true,
46
-
},
47
-
createdAfter: {
48
-
type: "string",
49
-
label: "Created After",
50
-
description: "Filter results to only include objects created after this date. Example: `2023-03-03T16:16:24.400Z`. Recommended when `Exact Match` is set to `false`.",
51
-
optional: true,
52
45
},
53
46
createIfNotFound: {
54
47
type: "boolean",
@@ -59,18 +52,17 @@ export default {
59
52
optional: true,
60
53
reloadProps: true,
61
54
},
55
+
offset: {
56
+
type: "integer",
57
+
label: "Offset",
58
+
description: "The offset to start from. Used for pagination.",
59
+
default: 0,
60
+
optional: true,
61
+
},
62
62
},
63
63
asyncadditionalProps(){
64
64
constprops={};
65
65
66
-
if(this.exactMatch===false&&!this.createdAfter){
67
-
props.exactMatchAlert={
68
-
type: "alert",
69
-
alertType: "info",
70
-
content: "It is recommended to set `Created After` when `Exact Match` is set to `false` to avoid potential timeouts.",
0 commit comments