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: "Uploads a file to the specified document.",
11
+
description: "Uploads a file to the specified document. [See the documentation](https://developer.xero.com/documentation/api/accounting/invoices#upload-attachment)",
11
12
version: "1.0.0",
12
13
type: "action",
13
14
props: {
14
-
xero_accounting_api: {
15
-
type: "app",
16
-
app: "xero_accounting_api",
17
-
},
18
-
tenant_id: {
19
-
type: "string",
20
-
description: "Id of the organization tenant to use on the Xero Accounting API. See [Get Tenant Connections](https://pipedream.com/@sergio/xero-accounting-api-get-tenant-connections-p_OKCzOgn/edit) for a workflow example on how to pull this data.",
15
+
xeroAccountingApi,
16
+
tenantId: {
17
+
propDefinition: [
18
+
xeroAccountingApi,
19
+
"tenantId",
20
+
],
21
21
},
22
22
filePathOrUrl: {
23
23
type: "string",
24
24
label: "File Path or URL",
25
25
description: "The file to upload. Provide either a file URL or a path to a file in the `/tmp` directory (for example, `/tmp/myFile.txt`)",
26
26
},
27
-
document_type: {
27
+
documentType: {
28
+
label: "Document Type",
28
29
type: "string",
29
30
description: "Document type of where the attachment will be sent to. This is used in as part of the Xero Account API endpoint where the request is sent against.",
30
31
options: [
@@ -39,19 +40,13 @@ export default {
39
40
"RepeatingInvoices",
40
41
],
41
42
},
42
-
document_id: {
43
+
documentId: {
44
+
label: "Document ID",
43
45
type: "string",
44
46
description: "Xero identifier of the document where the attachment will be sent to.",
45
47
},
46
48
},
47
49
asyncrun({ $ }){
48
-
//See the API docs: https://developer.xero.com/documentation/api/invoices#upload-attachment
49
-
//See a workflow example of this action: https://pipedream.com/@sergio/xero-accounting-api-upload-file-p_rvCqADQ/edit
50
-
51
-
if(!this.tenant_id){
52
-
thrownewError("Must provide tenant_id parameter.");
Copy file name to clipboardExpand all lines: components/xero_accounting_api/xero_accounting_api.app.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ export default {
10
10
type: "string",
11
11
label: "Tenant ID",
12
12
description:
13
-
"Id of the organization tenant to use on the Xero Accounting API. See [Get Tenant Connections](https://pipedream.com/@sergio/xero-accounting-api-get-tenant-connections-p_OKCzOgn/edit) for a workflow example on how to pull this data.",
13
+
"Select an organization tenant to use, or provide a tenant ID",
0 commit comments