Drupal
Create and list content nodes in your Drupal site.
On this page
Connect
Auth type: Credentials form (custom_auth). Pass the fields the provider needs (listed below) as the connection's credentials. They are sealed at rest.
| Field | Type | Description |
|---|---|---|
urlrequired | text | Your Drupal site URL |
usernamerequired | text | Drupal admin username |
passwordrequired | secret | Drupal admin password |
- From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
- Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
- Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.
Call it from a workflow
step.ctx.integrations.invoke("drupal", action, input) resolves with the provider's answer and rejects when Drupal isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "drupal"} says whether yours can call it.
// workflows/notify.ts: call Drupal when a booking is confirmed
import { on } from "@appbricx/workflows";
export const tellDrupal = on.transition("booking", "status", "confirmed", async (_event, step) => {
// Recorded once: a retry doesn't send it twice. Rejects when Drupal isn't connected.
const output = await step.run("Drupal", () =>
step.ctx.integrations.invoke("drupal", "drupal-call-service", {
"service": "<service>",
"config": {}
}),
);
step.ctx.log("Drupal answered", output);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "drupal",
"piece_action": "drupal-call-service",
"input": {
"service": "<service>",
"config": {}
},
"env": "dev"
}
}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-service
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-entity
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-entity
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-entity
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-entities
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-entity
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- Runs
- Through the integration runner