Fix n8n Organization queries for moved compliance portal fields

Drop removed Connect Organization profile fields that break Get Many,
and return those fields from Compliance Portal Get.

Signed-off-by: Sacha Al Himdani <sacha@probo.com>
This commit is contained in:
Sacha Al Himdani
2026-07-22 16:07:11 +02:00
parent 00f5d0c4ba
commit 6313278c0d
5 changed files with 29 additions and 27 deletions

View File

@@ -4,6 +4,11 @@ All notable changes to the `@probo/n8n-nodes-probo` package will be documented i
## Unreleased ## Unreleased
### Fixed
- Organization Get/Get Many/Create no longer query removed Connect `Organization` profile fields (`description`, `websiteUrl`, `email`, `headquarterAddress`), which broke Organization Get Many. Use Compliance Portal Get/Update for those fields instead
- Compliance Portal Get now returns `entityName`, `description`, `websiteUrl`, `email`, and `headquarterAddress`, matching Compliance Portal Update, and selects `logo`/`darkLogo`/`nda` as File objects instead of removed URL scalars
## [0.206.0] - 2026-07-22 ## [0.206.0] - 2026-07-22
### Changed ### Changed

View File

@@ -52,10 +52,26 @@ export async function execute(
id id
active active
searchEngineIndexing searchEngineIndexing
logoFileUrl entityName
darkLogoFileUrl description
ndaFileName websiteUrl
ndaFileUrl email
headquarterAddress
logo {
id
fileName
downloadUrl
}
darkLogo {
id
fileName
downloadUrl
}
nda {
id
fileName
downloadUrl
}
createdAt createdAt
updatedAt updatedAt
} }

View File

@@ -50,10 +50,6 @@ export async function execute(
organization { organization {
id id
name name
description
websiteUrl
email
headquarterAddress
logo { logo {
id id
fileName fileName
@@ -71,17 +67,14 @@ export async function execute(
} }
`; `;
const variables = { const responseData = await proboConnectApiRequest.call(this, query, {
input: { input: {
name, name,
}, },
}; });
const responseData = await proboConnectApiRequest.call(this, query, variables);
return { return {
json: responseData, json: responseData,
pairedItem: { item: itemIndex }, pairedItem: { item: itemIndex },
}; };
} }

View File

@@ -50,10 +50,6 @@ export async function execute(
... on Organization { ... on Organization {
id id
name name
description
websiteUrl
email
headquarterAddress
logo { logo {
id id
fileName fileName
@@ -71,15 +67,12 @@ export async function execute(
} }
`; `;
const variables = { const responseData = await proboConnectApiRequest.call(this, query, {
organizationId, organizationId,
}; });
const responseData = await proboConnectApiRequest.call(this, query, variables);
return { return {
json: responseData, json: responseData,
pairedItem: { item: itemIndex }, pairedItem: { item: itemIndex },
}; };
} }

View File

@@ -70,10 +70,6 @@ export async function execute(
organization { organization {
id id
name name
description
websiteUrl
email
headquarterAddress
logo { logo {
id id
fileName fileName
@@ -125,4 +121,3 @@ export async function execute(
pairedItem: { item: itemIndex }, pairedItem: { item: itemIndex },
}; };
} }