Skip to content

🔦 Feature: Allow using values from has-many child tables in webhooks #4481

@djmaze

Description

@djmaze

Please confirm if feature request does NOT exists already ?

  • I confirm there is no existing issue for this

Describe the usecase for the feature

Sometimes you need data from a linked child table when a webhook is triggered. E.g. when you want to dynamically send an email to the user who is selected in a has-many field and the connected "user" table contains the email address.

(many-to-many connections could also be interesting, but not in my case.)

Suggested Solution

Just include all fields from all has-many fields in the webhook payload.

Currently, for a field name user we have the following in the payload:

"data": {
  "nc_tesc__user_id": 1
}

Instead, it should be (example):

"data": {
  "user": {
     "Id": 1,
     "name": "foo",
     "email": "foo@bar.com"
  }
}

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions