ContributionsMost RecentMost LikesSolutionsRe: Pipelines: Lookup newest record? Many thanks Mark! I ended up using another technique where I used a formula query to "reverse number" the records a "formula- checkbox" field to identify the latest formula based on that. Sharing the recipe in case someone might find it useful: 1. I added a "Formula - Number"-type field (named "Order") to my table. The formula is: // Query all records with Record ID greater than the current record's Record ID var text QUERY = "{3.GT." & [Record ID#] & "}"; // How many records returned from the query var number ORDER = Size(GetRecords($QUERY)); // Because ORDER actually yields nothing when empty If($ORDER > 0, $ORDER + 1, 1) 2. I added a "Formula - Checkbox"-type field (named "IsLatest") with this formula: [Order] = 1 3. In my pipeline I lookup only the record where IsLatest is checked. Pipelines: Lookup newest record? Hi, In a Quickbase pipeline, I need to fetch a single record from a table. That record needs to be the newest record added to the table. I tried two common approaches but neither seems possible using "Search Records" or "Lookup Record" steps: - Filtering so that Record ID = "MAX(Record ID)" - Sorting by Record ID descending and limiting results to 1. Any help would be appreciated. Kinds regards, Uri SolvedRe: How to resize a pie chart embedded in a form? Thanks Mark, Adding more charts on the same line does not make any of the charts smaller. The form expands to the right to fit the charts in. Cheers, Uri ------------------------------ Uri Goldstein ------------------------------ How to resize a pie chart embedded in a form? Hello, I have embedded several pie charts in a form. The charts are rendered quite large (600px X 450px) and I would like to resize them to be smaller. Is this possible in Quickbase? If so, how? Thanks. ------------------------------ Uri Goldstein ------------------------------ Re: Quickbase Pipelines: How to upsert nested JSON array to multi-select text field? Hi Justin, Many thanks for the more succinct way of extracting the value from the nested JSON array. And thanks for the explanation and the link, they are most useful. 🌷 I've opened a case with Quickbase to examine why the array is flattened to a Python string representation in the first place. Will update if there are any conclusions. Cheers, Uri ------------------------------ Uri Goldstein ------------------------------ Quickbase Pipelines: How to upsert nested JSON array to multi-select text field? Hello, I am using Quickbase Pipelines to pull data from a REST API and save it into a table. I have a "Add a Bulk Upsert Row" step where I am mapping fields from my table to properties of incoming JSON records. I am facing a challenge around "custom fields" in my JSON records These are fields where instead of simply appearing as "key": "value" pairs in JSON, they appear in a nested array similar to this: "custom_fields": [ { "key": "street", "value": "foo", }, { "key": "city", "value": "bar", }, { "key": "state", "value": "baz", } ] I've been able to extract specific values by their key from this structure using this Jinja code block inside my upsert step: {% for field in d.custom_fields %} {% if field['key'] == 'street' %} {{ field['value'] }} {% endif %} {% endfor %} This works well for Text fields but my first question is - Is this the right way to go about getting in done? Might there be a more succinct way to do this using Jinja? Unfortunately for me, this technique fails when trying to get a JSON array value into a Multi-Select Text field. When I use the a Jinja code block like the one above to parse this bit of JSON: "custom_fields": [ { "key": "choices", "value": [ "foo, "bar", "baz" ], } ] I get these 3 values in my Multi-Select Text field: [u'foo' , u'bar' and u'baz'] It's as if Quickbase / Jinja are parsing the value as a literal string rather than a JSON array. My second question is therefor - How can I get the above JSON value to be transformed into the correct choices: foo , bar and baz ? Thanks, Uri ------------------------------ Uri Goldstein ------------------------------