Skip to main content
Question

Webhook to delete a file attachment

  • July 6, 2023
  • 0 replies
  • 69 views

I created the webhook below to delete a file attachment when a checkbox is checked, but it only works for one record at a time. How do I modify this webhook so that it updates multiple records at a time when the checkbox is checked using grid edit? Thanks!

API_EditRecord

<qdbapi>
<udata>mydata</udata>
<ticket>auth_ticket</ticket>
<apptoken>app_token</apptoken>
<rid>[record_id]</rid>
<field fid="[field_id]" filename="delete"></field>
</qdbapi>



------------------------------
Alison
------------------------------
This topic has been closed for replies.

  • Registered
  • July 6, 2023

I think you just need to add the repeat markers, like this:

%RepeatOn%
<qdbapi>
<udata>mydata</udata>
<ticket>auth_ticket</ticket>
<apptoken>app_token</apptoken>
<rid>[record_id]</rid>
<field fid="[field_id]" filename="delete"></field>
</qdbapi>
%RepeatOff%



------------------------------
gary
------------------------------