Closed kmatt closed 4 years ago
Discovered after entering this ticket that b.custom_fields['d-e-f']
is an option, which may also be the answer to my issue.
Hi @kmatt, that is one way, by default it will replace non usable characters, such as "-" with an underscore, so you could access it via b.custom_fields.d_e_f
Some details on how it works under the hood are in the wiki
b.custom_fields.d_e_f
That works!
Have a JSON data source with a nested key containing dashes.
Noting that makes for an invalid Python identifier, and "Box will automatically make otherwise inaccessible keys safe to access as an attribute", is there an option to support this format?