Skip to main content
Question

Undocumented Pipeline yaml functionality

  • February 15, 2023
  • 0 replies
  • 108 views

Pipeline yaml files can apparently use at least some of yaml's advanced features.  I was able to use "yaml references" in my pipeline spec to avoid repeating long strings that might be prone to typos. specifically:

- IF:
  - AND:
    - a<>body_params.partner starts c1
  - THEN:
    - ACTION quickbase[abcdefg] bulk_record_set csv_import -> c:
        inputs-meta:
          csv_url: '{{b.file_transfer_handle}}'
          header_row: &headers A,REALLY,LONG,LIST,OF,HEADERS

- IF:
  - AND:
    - a<>body_params.partner starts shi
  - THEN:
    - ACTION quickbase[bcdefgh] bulk_record_set csv_import -> e:
        inputs-meta:
          csv_url: '{{b.file_transfer_handle}}'
          header_row: *headers

The &headers creates a yaml reference to whatever follows.  *headersuses that reference.

Yaml references are kind of obscure and a bit tricky to use in my past experience, but they do work.  Unfortunately, the references are not preserved: When you export the pipeline after using them, the export will have A,REALLY,LONG,LIST,OF,HEADERShard coded wherever the *headers reference was used.

It would be nice if QB would publish a spec for these yaml files along the lines of Gitlab/Github/AWS CodeBuild/ etc.



------------------------------
Dan Locks
------------------------------
This topic has been closed for replies.

Nice find!
I'm curious if the references are preserved in the "Pipeline Summary" in the Activity Log.


Also, I fear that they might also be lost if you use the Refresh Schemas button:




------------------------------
Justin Torrence
Quickbase Expert, Jaybird Technologies
jtorrence@jaybirdtechnologies.com
https://www.jaybirdtechnologies.com/#community-post
------------------------------

Forum|alt.badge.img+15
  • Registered
  • February 19, 2023

Dan,

Would you please expand on the functionality this provides.   

I think you are using it to define the fields that you are importing to with the CSV.



------------------------------
Don Larson
------------------------------