General question on save (UPDATE/PATCH) and on delete (DELETE/DELETE)


#1

Haven’t had time to dig into this… I know script exist for the different CRUD operations in the UI but I’m wondering how I can update/delete/modify an entity by calling into a asp.net core method from these scripts and are there any docs on the topic? A nice little example somewhere would be appreciated.
Thanks in advance.


#2

If you want to extend squidex source code there are several options:

  1. You can write a custom command middleware, that is executed synchronously when something is changed, e.g. the templates are implemented in this way:
  1. You can subscribe to events that happened in the system and then execute other commands:

If you do not want to extend Squidex, which I recommend, you can create webhooks and call your code in another service. You can then use the Squidex Client Library to make updates and so on.


#3

Will stick with webhooks then.

I googled and found https://medium.com/squidex/webhooks-improved-6b4a517256ac

Is this the only resouce available? Checked docs.squidex.io but couldn’t find any more.


#4

No, the new system is called “Rules”: https://docs.squidex.io/concepts/rules