Skip to content

Commit 9443f6d

Browse files
add optional parent folder prop
1 parent 288c227 commit 9443f6d

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

components/box/actions/get-comments/get-comments.mjs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,24 @@ export default {
99
type: "action",
1010
props: {
1111
app,
12+
folderId: {
13+
propDefinition: [
14+
app,
15+
"parentId",
16+
],
17+
label: "Parent Folder",
18+
description: "Use this option to select your File ID from a dropdown list.",
19+
},
1220
fileId: {
13-
type: "integer",
21+
propDefinition: [
22+
app,
23+
"fileId",
24+
(c) => ({
25+
folderId: c.folderId,
26+
}),
27+
],
1428
label: "File ID",
15-
description: "The file ID to get comments from. Use a custom expression to reference a file from your workflow",
29+
description: "The file ID to get comments from. Use a custom expression to reference a file from your workflow or select it from the dropdown list.",
1630
},
1731
},
1832
async run({ $ }) {

0 commit comments

Comments
 (0)