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: "Creates a column. [See the documentation](https://developer.monday.com/api-reference/reference/columns#create-a-column)",
8
9
type: "action",
9
-
version: "0.0.9",
10
+
version: "0.1.0",
10
11
props: {
11
12
monday,
12
13
boardId: {
@@ -18,45 +19,64 @@ export default {
18
19
title: {
19
20
type: "string",
20
21
label: "Title",
21
-
description: "The title of the new column.",
22
+
description: "The title of the new column",
22
23
},
23
24
columnType: {
24
25
type: "string",
25
26
label: "Column Type",
26
-
description: "The type of the new column.",
27
+
description: "The type of the new column",
27
28
options: constants.COLUMN_TYPE_OPTIONS,
28
29
reloadProps: true,
29
30
},
30
31
description: {
31
32
type: "string",
32
33
label: "Description",
33
-
description: "The description of the new column.",
34
+
description: "The description of the new column",
34
35
optional: true,
35
36
},
36
37
},
37
38
asyncadditionalProps(){
38
39
constprops={};
39
-
constdefaults={
40
-
type: "string",
41
-
label: "Defaults",
42
-
description: "The new column's defaults. For use with column types `status` or `dropdown`. [See the documentation](https://developer.monday.com/api-reference/reference/columns#create-a-status-or-dropdown-column-with-custom-labels) for more information.",
description: "The new column's custom labels (defaults). For use with column types `status` or `dropdown`. Should be an object in the format `{ \"1\": \"Technology\", \"2\": \"Marketing\" }` where each key is the label ID and each value is the label text. [See the documentation](https://developer.monday.com/api-reference/reference/columns#create-a-status-or-dropdown-column-with-custom-labels) for more information.",
48
+
optional: true,
55
49
};
56
50
}
57
51
returnprops;
58
52
},
59
53
asyncrun({ $ }){
54
+
let{ defaults }=this;
55
+
if(defaults){
56
+
try{
57
+
if(this.columnType==="status"){
58
+
defaults=JSON.stringify({
59
+
labels: JSON.parse(defaults),
60
+
});
61
+
}elseif(this.columnType==="dropdown"){
62
+
constobj=JSON.parse(defaults);
63
+
defaults=JSON.stringify({
64
+
settings: {
65
+
labels: Object.entries(obj).map(([
66
+
id,
67
+
name,
68
+
])=>({
69
+
id: Number(id),
70
+
name,
71
+
})),
72
+
},
73
+
});
74
+
}
75
+
}catch(err){
76
+
thrownewConfigurationError(`Error parsing \`Custom Labels\` as JSON: "${err}"`);
Copy file name to clipboardExpand all lines: components/monday/actions/get-items-by-column-value/get-items-by-column-value.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ export default {
35
35
label: "Value",
36
36
description: `The value to search for.${options
37
37
? ""
38
-
: " [See the documentation](https://developer.monday.com/api-reference/reference/items-page-by-column-values#supported-and-unsupported-columns) for additional information about column values."} `,
38
+
: " [See the documentation](https://developer.monday.com/api-reference/reference/items-page-by-column-values#supported-and-unsupported-columns) for additional information about column values"} `,
Copy file name to clipboardExpand all lines: components/monday/actions/update-column-values/update-column-values.mjs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ export default {
16
16
updateInfoBox: {
17
17
type: "alert",
18
18
alertType: "info",
19
-
content: "See the [Column types reference](https://developer.monday.com/api-reference/reference/column-types-reference) to find the proper data structures for supported column types.",
19
+
content: "See the [Column types reference](https://developer.monday.com/api-reference/reference/column-types-reference) to find the proper data structures for supported column types",
20
20
},
21
21
boardId: {
22
22
...common.props.boardId,
@@ -50,7 +50,7 @@ export default {
50
50
options: getColumnOptions(columns,id),
51
51
};
52
52
if(column.type==="file"){
53
-
props[column.id].description+=". The path to a file in the `/tmp` directory. [See the documentation on working with files](https://pipedream.com/docs/code/nodejs/working-with-files/#writing-a-file-to-tmp).";
53
+
props[column.id].description+=". The path to a file in the `/tmp` directory. [See the documentation on working with files](https://pipedream.com/docs/code/nodejs/working-with-files/#writing-a-file-to-tmp)";
Copy file name to clipboardExpand all lines: components/monday/monday.app.mjs
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ export default {
13
13
boardId: {
14
14
type: "string",
15
15
label: "Board ID",
16
-
description: "Select a board, or provide a board ID.",
16
+
description: "Select a board, or provide a board ID",
17
17
asyncoptions({ page }){
18
18
returnthis.listBoardsOptions({
19
19
page: page+1,
@@ -34,7 +34,7 @@ export default {
34
34
folderId: {
35
35
type: "integer",
36
36
label: "Folder ID",
37
-
description: "Optionally select a folder to create the board in, or provide a folder ID.",
37
+
description: "Optionally select a folder to create the board in, or provide a folder ID",
38
38
optional: true,
39
39
asyncoptions({ workspaceId }){
40
40
returnthis.listFolderOptions({
@@ -45,7 +45,7 @@ export default {
45
45
workspaceId: {
46
46
type: "integer",
47
47
label: "Workspace ID",
48
-
description: "Select a workspace to create the board in, or provide a workspace ID. If not specified, the **Main Workspace** will be used.",
48
+
description: "Select a workspace to create the board in, or provide a workspace ID. If not specified, the **Main Workspace** will be used",
49
49
optional: true,
50
50
asyncoptions(){
51
51
returnthis.listWorkspacesOptions();
@@ -54,18 +54,18 @@ export default {
54
54
templateId: {
55
55
type: "integer",
56
56
label: "Board Template ID",
57
-
description: "The board's template ID. You can obtain it from the URL when selecting the desired board (e.g. `https://{subdomain}.monday.com/boards/2419687965`) where `2419687965` is the template ID. [See the documentation](https://developer.monday.com/api-reference/reference/boards#create-a-board) for more information.",
57
+
description: "The board's template ID. You can obtain it from the URL when selecting the desired board (e.g. `https://{subdomain}.monday.com/boards/2419687965`) where `2419687965` is the template ID. [See the documentation](https://developer.monday.com/api-reference/reference/boards#create-a-board) for more information",
58
58
optional: true,
59
59
},
60
60
groupName: {
61
61
type: "string",
62
62
label: "Group Name",
63
-
description: "The name of the new group.",
63
+
description: "The name of the new group",
64
64
},
65
65
groupId: {
66
66
type: "string",
67
67
label: "Group ID",
68
-
description: "Select a group or provide a group ID.",
68
+
description: "Select a group or provide a group ID",
69
69
optional: true,
70
70
asyncoptions({ boardId }){
71
71
returnthis.listGroupsOptions({
@@ -98,7 +98,7 @@ export default {
98
98
itemId: {
99
99
type: "string",
100
100
label: "Item ID",
101
-
description: "Select an item or provide an item ID.",
101
+
description: "Select an item or provide an item ID",
102
102
optional: true,
103
103
asyncoptions({
104
104
boardId, prevContext,
@@ -112,7 +112,7 @@ export default {
112
112
updateId: {
113
113
type: "string",
114
114
label: "Update ID",
115
-
description: "Select an update or provide an update ID.",
115
+
description: "Select an update or provide an update ID",
116
116
optional: true,
117
117
asyncoptions({
118
118
page, boardId,
@@ -126,7 +126,7 @@ export default {
126
126
column: {
127
127
type: "string",
128
128
label: "Column",
129
-
description: "Select a column to watch for changes.",
129
+
description: "Select a column to watch for changes",
0 commit comments