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
|
## 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
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user