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
description: "Retrieves the details of a knowledge base article. [See the docs here](https://desk.zoho.com/portal/APIDocument.do#KnowledgeBase_Getarticle)",
description: "Lists knowledge base articles for a help center. [See the docs here](https://desk.zoho.com/portal/APIDocument.do#KnowledgeBase#KnowledgeBase_Listarticles)",
7
+
type: "action",
8
+
version: "0.0.1",
9
+
annotations: {
10
+
destructiveHint: false,
11
+
openWorldHint: true,
12
+
readOnlyHint: true,
13
+
},
14
+
props: {
15
+
zohoDesk,
16
+
orgId: {
17
+
propDefinition: [
18
+
zohoDesk,
19
+
"orgId",
20
+
],
21
+
},
22
+
portalId: {
23
+
propDefinition: [
24
+
zohoDesk,
25
+
"portalId",
26
+
({ orgId })=>({
27
+
orgId,
28
+
}),
29
+
],
30
+
},
31
+
categoryId: {
32
+
type: "string",
33
+
label: "Category ID",
34
+
description: "Filter by the ID(s) of the categories the articles belong to. Use comma-separated IDs to include multiple categories.",
35
+
optional: true,
36
+
},
37
+
sortBy: {
38
+
type: "string",
39
+
label: "Sort By",
40
+
description: "Sort articles by the specified attribute.",
41
+
optional: true,
42
+
options: [
43
+
"createdTime",
44
+
"modifiedTime",
45
+
"likeCount",
46
+
"viewCount",
47
+
"unlikeCount",
48
+
],
49
+
default: "createdTime",
50
+
},
51
+
tag: {
52
+
type: "string",
53
+
label: "Tag",
54
+
description: "Filter articles by a tag.",
55
+
optional: true,
56
+
},
57
+
maxResults: {
58
+
type: "integer",
59
+
label: "Max Results",
60
+
description: "Maximum number of articles to return. Leave blank to return all available results.",
description: "Lists the help centers configured in an organization. [See the docs here](https://desk.zoho.com/portal/APIDocument.do#HelpCenters_Listhelpcenters)",
7
+
type: "action",
8
+
version: "0.0.1",
9
+
annotations: {
10
+
destructiveHint: false,
11
+
openWorldHint: true,
12
+
readOnlyHint: true,
13
+
},
14
+
props: {
15
+
zohoDesk,
16
+
orgId: {
17
+
propDefinition: [
18
+
zohoDesk,
19
+
"orgId",
20
+
],
21
+
},
22
+
},
23
+
asyncrun({ $ }){
24
+
const{ orgId }=this;
25
+
26
+
const{data: helpCenters=[]}=
27
+
awaitthis.zohoDesk.listHelpCenters({
28
+
params: {
29
+
orgId,
30
+
},
31
+
});
32
+
33
+
$.export("$summary",`Retrieved ${helpCenters.length} help center${helpCenters.length===1
description: "Lists root knowledge base categories for a help center. [See the docs here](https://desk.zoho.com/portal/APIDocument.do#KnowledgeBase_Listallrootcategoriesofthehelpcenter)",
7
+
type: "action",
8
+
version: "0.0.1",
9
+
annotations: {
10
+
destructiveHint: false,
11
+
openWorldHint: true,
12
+
readOnlyHint: true,
13
+
},
14
+
props: {
15
+
zohoDesk,
16
+
orgId: {
17
+
propDefinition: [
18
+
zohoDesk,
19
+
"orgId",
20
+
],
21
+
},
22
+
portalId: {
23
+
propDefinition: [
24
+
zohoDesk,
25
+
"portalId",
26
+
({ orgId })=>({
27
+
orgId,
28
+
}),
29
+
],
30
+
},
31
+
sortBy: {
32
+
type: "string",
33
+
label: "Sort By",
34
+
description: "Sort the categories by the specified attribute.",
35
+
optional: true,
36
+
options: [
37
+
"name",
38
+
"order",
39
+
],
40
+
},
41
+
searchValue: {
42
+
type: "string",
43
+
label: "Search Value",
44
+
description: "Filter categories whose names match the provided value.",
45
+
optional: true,
46
+
},
47
+
visibility: {
48
+
type: "string",
49
+
label: "Visibility",
50
+
description: "Filter categories by visibility (e.g. ALL_USERS).",
51
+
optional: true,
52
+
},
53
+
departmentId: {
54
+
type: "string",
55
+
label: "Department ID",
56
+
description: "Filter categories associated with the specified department.",
57
+
optional: true,
58
+
},
59
+
hasArticles: {
60
+
type: "boolean",
61
+
label: "Has Articles",
62
+
description: "Return only categories that contain articles when set to `true`.",
63
+
optional: true,
64
+
},
65
+
maxResults: {
66
+
type: "integer",
67
+
label: "Max Results",
68
+
description: "Maximum number of categories to return. Leave blank to return all available results.",
0 commit comments