Document Template creation - Save PDF to field in record
Hi,
I basically imported the following YAML. And everything is looking ok until it comes to the Body of the “Save File to a Table” Where I am getting a “This field contains invalid jinja references” error. Thank you so much for helping! Below is the Body (image also below):
{
"to": "bts4ydgrs",
"data": [
{
"340": {
"value": {
"fileName": "{{a.json.fileName}}",
"data": "{{a.json.data}}"
}
}
}
],
"fieldsToReturn": []
}
}
}
]
}
"fieldsToReturn": []
}
The Below is the YAML I imported:
# Doc Gen Testing
#
# Account slugs:
# - quickbase[CHANGE ME]: Realm Default Account <None>
# - microsoft-outlook[CHANGE ME]:
# <None>
---
- META:
name: Doc Gen Testing
- ACTION quickbase[CHANGE ME] quickbase_api make -> a:
inputs:
method: GET
url: https://api.quickbase.com/v1/docTemplates/1/generate?tableId=DBID_CHANGE_ME&format=pdf&pageSize=Letter&filename=Invoice&margin=1
1 1 1&unit=in&orientation=portrait&recordId=1
name: Generate Doc
- ACTION quickbase[CHANGE ME] quickbase_api make -> b:
inputs:
body: "{\n \"to\": \"CHANGE_ME_TABLE_ID\",\n \"data\": [\n {\n \"6\"\
: {\n \"value\": {\n \"fileName\": \"{{a.json.fileName}}\"\
,\n \"data\": \"{{a.json.data}}\"\n }\n \
\ }\n }\n ],\n \"fieldsToReturn\": []\n }\n }\n }\n \
\ ]\n}\n \"fieldsToReturn\": []\n }"
method: POST
url: https://api.quickbase.com/v1/records
name: Save File to a Table
note: 'Write the record '
- LOOKUP quickbase[CHANGE_ME] record look_up -> c:
inputs-meta:
table: '"Demo App: Invoice Files" <CHANGE_ME>'
export_fields: '"File" <6>'
inputs:
id: '{{b.json.metadata.createdRecordIds[0]}}'