Forum Discussion

Re: Use Pipeline to Remove an attachment from a field

I know this is an old post but here is how make this happen.  I make a callable pipeline so I can use in any app/any table.  Below is the YAML after updating your URL/Usertoken you should be able to import to pipelines.  Then just call the pipeline with the variables.  Seems to work pretty good.  Versioning is a little wierd haven't figured it totally out but 1 file uploaded is not 0 like in the QB-UI, it is actually 1.

# Purge File Attachments
#
# Ust this to purge Files Attachments in any App/Table
#

---
- META:
    name: Purge File Attachments
    description: Ust this to purge Files Attachments in any App/Table
    tag_names:
    - EARP
    enabled: true
- TRIGGER cloudpipes-meta pipeline on_called -> a:
    inputs-meta:
      call_definition: PurgeFile(tbid,rid,fid,ver)
- ACTION webhooks request make -> b:
    inputs-meta:
      oauth_credentials_placement: header
    inputs:
      content_type: application/json
      headers:
        name: 'QB-Realm-Hostname

          Authorization'
        value: 'yourURL.quickbase.com

          QB-USER-TOKEN yourUSERTOKENhere'
      method: DELETE
      url: https://api.quickbase.com/v1/files/{{a.tbid}}/{{a.rid}}/{{a.fid}}/{{a.ver}}
...



------------------------------
Sales Quickbase Account
------------------------------
No RepliesBe the first to reply