Let n8n create and update campaigns with scope sources
Replace the separate Add Source operation with multi-select source fields on create and update. Create passes accessReviewSourceIds to the existing GraphQL input; update gains the same omittable field and backend source sync so workflows can configure sources in one step. Load source options from the organization in the n8n UI, and keep surfacing INVALID errors when start fails for missing sources. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
// SOFTWARE.
|
||||
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
import * as addSourceOp from './addSource.operation';
|
||||
import * as createOp from './create.operation';
|
||||
import * as deleteOp from './delete.operation';
|
||||
import * as getOp from './get.operation';
|
||||
@@ -41,12 +40,6 @@ export const description: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Add Source',
|
||||
value: 'addSource',
|
||||
description: 'Add a scope source to an access review campaign',
|
||||
action: 'Add a scope source to an access review campaign',
|
||||
},
|
||||
{
|
||||
name: 'Cancel',
|
||||
value: 'cancel',
|
||||
@@ -98,7 +91,6 @@ export const description: INodeProperties[] = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
...addSourceOp.description,
|
||||
...createOp.description,
|
||||
...deleteOp.description,
|
||||
...getOp.description,
|
||||
@@ -110,7 +102,6 @@ export const description: INodeProperties[] = [
|
||||
];
|
||||
|
||||
export {
|
||||
addSourceOp as addSource,
|
||||
createOp as create,
|
||||
deleteOp as delete,
|
||||
getOp as get,
|
||||
|
||||
Reference in New Issue
Block a user