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:
@@ -4,6 +4,11 @@ All notable changes to the `@probo/n8n-nodes-probo` package will be documented i
|
||||
|
||||
## 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
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -52,10 +52,26 @@ export async function execute(
|
||||
id
|
||||
active
|
||||
searchEngineIndexing
|
||||
logoFileUrl
|
||||
darkLogoFileUrl
|
||||
ndaFileName
|
||||
ndaFileUrl
|
||||
entityName
|
||||
description
|
||||
websiteUrl
|
||||
email
|
||||
headquarterAddress
|
||||
logo {
|
||||
id
|
||||
fileName
|
||||
downloadUrl
|
||||
}
|
||||
darkLogo {
|
||||
id
|
||||
fileName
|
||||
downloadUrl
|
||||
}
|
||||
nda {
|
||||
id
|
||||
fileName
|
||||
downloadUrl
|
||||
}
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
|
||||
@@ -50,10 +50,6 @@ export async function execute(
|
||||
organization {
|
||||
id
|
||||
name
|
||||
description
|
||||
websiteUrl
|
||||
email
|
||||
headquarterAddress
|
||||
logo {
|
||||
id
|
||||
fileName
|
||||
@@ -71,17 +67,14 @@ export async function execute(
|
||||
}
|
||||
`;
|
||||
|
||||
const variables = {
|
||||
const responseData = await proboConnectApiRequest.call(this, query, {
|
||||
input: {
|
||||
name,
|
||||
},
|
||||
};
|
||||
|
||||
const responseData = await proboConnectApiRequest.call(this, query, variables);
|
||||
});
|
||||
|
||||
return {
|
||||
json: responseData,
|
||||
pairedItem: { item: itemIndex },
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -50,10 +50,6 @@ export async function execute(
|
||||
... on Organization {
|
||||
id
|
||||
name
|
||||
description
|
||||
websiteUrl
|
||||
email
|
||||
headquarterAddress
|
||||
logo {
|
||||
id
|
||||
fileName
|
||||
@@ -71,15 +67,12 @@ export async function execute(
|
||||
}
|
||||
`;
|
||||
|
||||
const variables = {
|
||||
const responseData = await proboConnectApiRequest.call(this, query, {
|
||||
organizationId,
|
||||
};
|
||||
|
||||
const responseData = await proboConnectApiRequest.call(this, query, variables);
|
||||
});
|
||||
|
||||
return {
|
||||
json: responseData,
|
||||
pairedItem: { item: itemIndex },
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -70,10 +70,6 @@ export async function execute(
|
||||
organization {
|
||||
id
|
||||
name
|
||||
description
|
||||
websiteUrl
|
||||
email
|
||||
headquarterAddress
|
||||
logo {
|
||||
id
|
||||
fileName
|
||||
@@ -125,4 +121,3 @@ export async function execute(
|
||||
pairedItem: { item: itemIndex },
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user