Drupal
Create and list content nodes in your Drupal site.
On this page
Connect
Auth type: Credentials form (custom_auth). Fill in the fields the provider needs (listed below). They are stored encrypted in the vault.
| Field | Type | Description |
|---|---|---|
urlrequired | text | Your Drupal site URL |
usernamerequired | text | Drupal admin username |
passwordrequired | secret | Drupal admin password |
- In the editor: Backend panel, Integrations tab, then Connect. This connects it for the project.
- For every project in a workspace: Workspace settings, Integrations.
- Owners and admins choose which integrations members may connect in the admin panel (Integrations tab), and can attach their own OAuth app there.
Call it from a workflow
Pass the action name and its input. The call resolves with { success, output, error? }; a missing connection resolves with success false and the reason. See ctx.integrations.invoke and ctx.integrations.call.
// .workflow.js (native ctx)
export async function run(ctx) {
const res = await ctx.integrations.invoke("drupal", "drupal-call-service", {
"service": "<service>",
"config": {}
});
if (!res.success) throw new Error(res.error);
ctx.log.info("Drupal answered", { output: res.output });
}// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";
export default defineWorkflow({
id: "drupal-drupal-call-service",
name: "Drupal: Call Service",
description: "Calls Drupal when a row is created.",
trigger: { type: "entity_event", entity: "tickets", event: "created" },
async run(ctx, event) {
const res = await ctx.integrations.call("drupal", {
"action": "drupal-call-service",
"service": "<service>",
"config": {}
}) as { success: boolean; error?: string };
if (!res.success) throw new Error(res.error);
},
});curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/drupal/drupal-call-service" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"service":"<service>","config":{}}}'Actions
drupal-call-servicein catalog
Call Service. Call a service on the Drupal site
| Input | Type | Description |
|---|---|---|
servicerequired | id (picked from your account) | The service to call. |
configrequired | object (depends on other props) | Service configuration |
drupal-create-entityin catalog
Create Entity. Create a new entity in Drupal with smart field discovery and validation
| Input | Type | Description |
|---|---|---|
entity_typerequired | id (picked from your account) | Choose the type of content to create. |
entity_fieldsoptional | object (depends on other props) | Fill in the content fields. Available fields depend on the entity type selected above. |
drupal-delete-entityin catalog
Delete Entity. Delete an entity from Drupal
| Input | Type | Description |
|---|---|---|
entity_typerequired | id (picked from your account) | Choose the type of content to delete. |
entity_uuidrequired | text | The unique identifier (UUID) of the specific content item to delete. |
drupal-get-entityin catalog
Get Entity. Retrieve a single entity by UUID
| Input | Type | Description |
|---|---|---|
entity_typerequired | id (picked from your account) | Choose the type of content to retrieve. |
entity_uuidrequired | text | The unique identifier (UUID) of the specific content item to retrieve. |
drupal-list-entitiesin catalog
List Entities. List entities from Drupal using JSON:API
| Input | Type | Description |
|---|---|---|
entity_typerequired | id (picked from your account) | Choose what type of content to list. |
published_statusoptional | one of "all" | "published" | "unpublished" | Filter by publication status |
sort_byoptional | object (depends on other props) | Choose how to sort the entities |
sort_directionoptional | one of "DESC" | "ASC" | Sort Direction |
limitrequired | number | Maximum number of entities to retrieve (0 = all entities) |
output_optionsoptional | object (depends on other props) | Output Options |
drupal-update-entityin catalog
Update Entity. Update an existing entity in Drupal with smart field discovery and validation
| Input | Type | Description |
|---|---|---|
entity_typerequired | id (picked from your account) | Select the entity type and bundle |
entity_uuidrequired | text | The UUID of the entity to update |
entity_fieldsoptional | object (depends on other props) | Update the values for the entity fields (only provide values for fields you want to change) |
Details
- Id
drupal- Category
- Content
- Tags
- cms, enterprise, content, open-source
- Package
@activepieces/piece-drupal@1.1.4- Tier
- Community