[{"data":1,"prerenderedAt":665,"buildId":666},["ShallowReactive",2],{"\u002Fautomations\u002Fvalues":3,"\u002Fautomations\u002Fvalues-surround":559,"navigation":572},{"id":4,"title":5,"body":6,"description":550,"extension":551,"meta":552,"navigation":553,"path":555,"seo":556,"stem":557,"__hash__":558},"docs\u002F3.automations\u002F04.values.md","Values and templates",{"type":7,"value":8,"toc":538},"minimark",[9,13,18,92,95,101,105,115,161,168,173,180,198,211,217,221,235,245,249,256,413,416,420,423,487],[10,11,12],"p",{},"Most settings can take their value from the run instead of being typed in. A setting that can shows a mode switch with three choices.",[14,15,17],"h2",{"id":16},"the-three-modes","The three modes",[19,20,21,37],"table",{},[22,23,24],"thead",{},[25,26,27,31,34],"tr",{},[28,29,30],"th",{},"Mode",[28,32,33],{},"Use it for",[28,35,36],{},"Example",[38,39,40,64,77],"tbody",{},[25,41,42,49,52],{},[43,44,45],"td",{},[46,47,48],"strong",{},"Fixed",[43,50,51],{},"A value you type or pick",[43,53,54,55,59,60],{},"Max width ",[56,57,58],"code",{},"1920",", the folder ",[61,62,63],"em",{},"Screenshots",[25,65,66,71,74],{},[43,67,68],{},[46,69,70],{},"From a step",[43,72,73],{},"A value the run produced, keeping its type",[43,75,76],{},"The run's file width, the content Resize produced",[25,78,79,84,87],{},[43,80,81],{},[46,82,83],{},"Text",[43,85,86],{},"Text with values placed in it",[43,88,89],{},[56,90,91],{},"Screenshot {{ trigger.content.receivedAt | date: 'yyyy-MM-dd' }}",[10,93,94],{},"Folders and tags are always chosen from pickers and saved by id, so renaming a folder or tag never breaks a workflow.",[10,96,97,98,100],{},"Content settings are always ",[46,99,70],{},": content only exists inside a run, so there's nothing to type. Fields are picked from your fields and saved by id, like folders and tags.",[14,102,104],{"id":103},"values-you-can-use","Values you can use",[10,106,107,108,110,111,114],{},"Choosing ",[46,109,70],{}," opens a tree of the values available at that point in the workflow. It only lists values from the trigger and from steps that come ",[46,112,113],{},"before"," this one, and only those whose type fits the setting.",[19,116,117,127],{},[22,118,119],{},[25,120,121,124],{},[28,122,123],{},"Group",[28,125,126],{},"What's in it",[38,128,129,137,145,153],{},[25,130,131,134],{},[43,132,133],{},"Current file",[43,135,136],{},"The file the run is about, as it is now. In a library run, this is the trigger's file. In an intake run it doesn't exist until a Save file step has saved the upload.",[25,138,139,142],{},[43,140,141],{},"Previous steps",[43,143,144],{},"The trigger's values, and each earlier step's outputs, nearest first.",[25,146,147,150],{},[43,148,149],{},"Run",[43,151,152],{},"The run's id, when it started, the workflow's id, and whether it's a test.",[25,154,155,158],{},[43,156,157],{},"Owner",[43,159,160],{},"Your user id and user name.",[10,162,163,164,167],{},"A value from a step that might not run (for example, one on only one branch of a Condition) is marked ",[46,165,166],{},"May be missing",".",[169,170,172],"h3",{"id":171},"files-and-content","Files and content",[10,174,175,176,179],{},"A ",[46,177,178],{},"file"," value (the current file, or what Save file produced) has these fields: name, original name, extension, type (MIME type), category, size, uploaded and taken dates, width, height, folder and tags.",[10,181,182,183,186,187,189,190,193,194,197],{},"The current file also has its ",[46,184,185],{},"fields",", listed by name under ",[61,188,185],{}," in the tree, and its ",[46,191,192],{},"attachments"," (name, kind, size and when it was added). A field with no value on the file is missing, so mark the setting's fallback with ",[56,195,196],{},"| default:"," in text, or check it with a Condition first.",[10,199,200,201,204,205,207,208,210],{},"An ",[46,202,203],{},"attachment"," value (from Add attachment, or the current file's attachments) stands for its text: a setting that takes text, such as Add attachment's ",[46,206,83],{},", accepts it from ",[46,209,70],{}," and reads the text when the step runs.",[10,212,175,213,216],{},[46,214,215],{},"content"," value (the upload in an intake workflow, or what a content step produced) has: name, extension, type, category, size, SHA-256, width, height, taken and received dates, and source. Its bytes are only read by steps, never shown.",[14,218,220],{"id":219},"text-templates","Text templates",[10,222,223,224,226,227,230,231,234],{},"In ",[46,225,83],{}," mode, put values in curly braces: ",[56,228,229],{},"{{ path }}",". Use ",[46,232,233],{},"Insert value"," to pick one from the same tree instead of typing the path. Text has no logic: no conditions or loops, just values and filters.",[236,237,243],"pre",{"className":238,"code":240,"language":241,"meta":242},[239],"language-text","{{ trigger.content.receivedAt | date: 'yyyy\u002FMM' }}\n{{ trigger.file.name | lower | replace: ' ', '-' }}\n{{ steps.ai.topic | default: 'Other' }}\n","text","",[56,244,240],{"__ignoreMap":242},[169,246,248],{"id":247},"filters","Filters",[10,250,251,252,255],{},"Add filters after a ",[56,253,254],{},"|",". They apply left to right.",[19,257,258,270],{},[22,259,260],{},[25,261,262,265,268],{},[28,263,264],{},"Filter",[28,266,267],{},"Does",[28,269,36],{},[38,271,272,287,303,322,337,359,374,386,401],{},[25,273,274,279,282],{},[43,275,276],{},[56,277,278],{},"date: 'format'",[43,280,281],{},"Formats a date with a .NET format string, in the workflow's time zone (UTC unless set)",[43,283,284],{},[56,285,286],{},"date: 'yyyy-MM-dd'",[25,288,289,298,301],{},[43,290,291,294,295],{},[56,292,293],{},"lower",", ",[56,296,297],{},"upper",[43,299,300],{},"Changes case",[43,302],{},[25,304,305,310,313],{},[43,306,307],{},[56,308,309],{},"slug",[43,311,312],{},"Makes the text safe for names and paths",[43,314,315,318,319],{},[56,316,317],{},"My Shot!"," → ",[56,320,321],{},"my-shot",[25,323,324,329,332],{},[43,325,326],{},[56,327,328],{},"truncate: n",[43,330,331],{},"Keeps the first n characters",[43,333,334],{},[56,335,336],{},"truncate: 40",[25,338,339,344,354],{},[43,340,341],{},[56,342,343],{},"replace: 'a', 'b'",[43,345,346,347,350,351],{},"Replaces every ",[56,348,349],{},"a"," with ",[56,352,353],{},"b",[43,355,356],{},[56,357,358],{},"replace: '_', ' '",[25,360,361,366,369],{},[43,362,363],{},[56,364,365],{},"size",[43,367,368],{},"Formats a number of bytes",[43,370,371],{},[56,372,373],{},"1.2 MB",[25,375,376,381,384],{},[43,377,378],{},[56,379,380],{},"join: ', '",[43,382,383],{},"Joins a list",[43,385],{},[25,387,388,393,396],{},[43,389,390],{},[56,391,392],{},"default: 'text'",[43,394,395],{},"Uses the text when the value is missing or null",[43,397,398],{},[56,399,400],{},"default: 'Other'",[25,402,403,408,411],{},[43,404,405],{},[56,406,407],{},"optional",[43,409,410],{},"Uses empty text when the value is missing or null",[43,412],{},[10,414,415],{},"The rendered text can be up to 4 KiB.",[14,417,419],{"id":418},"missing-empty-and-null","Missing, empty and null",[10,421,422],{},"Tessra keeps these apart so a step never quietly does the wrong thing:",[19,424,425,437],{},[22,426,427],{},[25,428,429,432,435],{},[28,430,431],{},"Value",[28,433,434],{},"Means",[28,436,36],{},[38,438,439,450,461,471],{},[25,440,441,444,447],{},[43,442,443],{},"Missing",[43,445,446],{},"The value doesn't exist in this run",[43,448,449],{},"The step that produces it was skipped, or a file has no width",[25,451,452,455,458],{},[43,453,454],{},"Null",[43,456,457],{},"The value exists but has nothing in it",[43,459,460],{},"A screenshot with no date taken",[25,462,463,466,469],{},[43,464,465],{},"Empty",[43,467,468],{},"Empty text or an empty list",[43,470],{},[25,472,473,481,484],{},[43,474,475,294,478],{},[56,476,477],{},"0",[56,479,480],{},"false",[43,482,483],{},"Real values",[43,485,486],{},"A width of 0 is a width",[488,489,490,501,506,518],"ul",{},[491,492,175,493,496,497,500],"li",{},[46,494,495],{},"required"," setting whose value is missing fails the step with ",[56,498,499],{},"input_missing",", naming the value. Tessra never guesses a default for it.",[491,502,200,503,505],{},[46,504,407],{}," setting whose value is missing uses the step's default.",[491,507,175,508,511,512,515,516,167],{},[46,509,510],{},"template"," with a missing or null value fails the step, unless that placeholder uses ",[56,513,514],{},"default"," or ",[56,517,407],{},[491,519,520,521,524,525,294,528,294,531,515,534,537],{},"In a ",[46,522,523],{},"Condition",", comparing a missing or null value is always false. Use ",[61,526,527],{},"exists",[61,529,530],{},"doesn't exist",[61,532,533],{},"is empty (null)",[61,535,536],{},"is empty"," to test for them directly.",{"title":242,"searchDepth":539,"depth":540,"links":541},2,3,[542,543,546,549],{"id":16,"depth":539,"text":17},{"id":103,"depth":539,"text":104,"children":544},[545],{"id":171,"depth":540,"text":172},{"id":219,"depth":539,"text":220,"children":547},[548],{"id":247,"depth":540,"text":248},{"id":418,"depth":539,"text":419},"Fixed values, values from earlier steps, text templates, and what happens when a value is missing.","md",{},{"icon":554},"i-lucide-braces","\u002Fautomations\u002Fvalues",{"title":5,"description":550},"3.automations\u002F04.values","landKYPhFtKJfRhdVEDDUxPQj_bILf0hUkXb3KPtMW0",[560,566],{"title":561,"path":562,"stem":563,"description":564,"icon":565,"children":-1},"The editor","\u002Fautomations\u002Feditor","3.automations\u002F03.editor","The canvas, the outline, the step picker, step settings, the Problems list and workflow settings.","i-lucide-mouse-pointer-2",{"title":567,"path":568,"stem":569,"description":570,"icon":571,"children":-1},"Conditions and branching","\u002Fautomations\u002Fbranching","3.automations\u002F05.branching","Send files down different paths with Condition and Switch, and understand how branches skip and join.","i-lucide-split",[573,582,602],{"title":574,"path":575,"stem":576,"children":577,"icon":581},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[578],{"title":579,"path":575,"stem":576,"icon":580},"Introduction","i-lucide-house",false,{"title":583,"icon":581,"path":584,"stem":585,"children":586,"page":581},"Library","\u002Flibrary","2.library",[587,592,597],{"title":588,"path":589,"stem":590,"icon":591},"Fields","\u002Flibrary\u002Ffields","2.library\u002F1.fields","i-lucide-text-cursor-input",{"title":593,"path":594,"stem":595,"icon":596},"Attachments","\u002Flibrary\u002Fattachments","2.library\u002F2.attachments","i-lucide-paperclip",{"title":598,"path":599,"stem":600,"icon":601},"Search","\u002Flibrary\u002Fsearch","2.library\u002F3.search","i-lucide-search",{"title":603,"path":604,"stem":605,"children":606,"icon":581},"Automations","\u002Fautomations","3.automations\u002F01.index",[607,610,615,616,617,618,623,628,633,638,649],{"title":608,"path":604,"stem":605,"icon":609},"Overview","i-lucide-workflow",{"title":611,"path":612,"stem":613,"icon":614},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","3.automations\u002F02.first-workflow","i-lucide-rocket",{"title":561,"path":562,"stem":563,"icon":565},{"title":5,"path":555,"stem":557,"icon":554},{"title":567,"path":568,"stem":569,"icon":571},{"title":619,"path":620,"stem":621,"icon":622},"Testing","\u002Fautomations\u002Ftesting","3.automations\u002F06.testing","i-lucide-flask-conical",{"title":624,"path":625,"stem":626,"icon":627},"Upload intake","\u002Fautomations\u002Fintake","3.automations\u002F07.intake","i-lucide-inbox",{"title":629,"path":630,"stem":631,"icon":632},"Quarantine and failures","\u002Fautomations\u002Fquarantine","3.automations\u002F08.quarantine","i-lucide-shield-alert",{"title":634,"path":635,"stem":636,"icon":637},"Runs and history","\u002Fautomations\u002Fruns","3.automations\u002F09.runs","i-lucide-history",{"title":639,"icon":640,"path":641,"stem":642,"children":643,"page":581},"Guides","i-lucide-book-open","\u002Fautomations\u002Fguides","3.automations\u002F10.guides",[644],{"title":645,"path":646,"stem":647,"icon":648},"Compress and resize uploads","\u002Fautomations\u002Fguides\u002Fcompress-uploads","3.automations\u002F10.guides\u002F1.compress-uploads","i-lucide-file-image",{"title":650,"icon":651,"path":652,"stem":653,"children":654,"page":581},"Reference","i-lucide-library","\u002Fautomations\u002Freference","3.automations\u002F11.reference",[655,660],{"title":656,"path":657,"stem":658,"icon":659},"Step reference","\u002Fautomations\u002Freference\u002Fsteps","3.automations\u002F11.reference\u002F1.steps","i-lucide-blocks",{"title":661,"path":662,"stem":663,"icon":664},"Limits and errors","\u002Fautomations\u002Freference\u002Flimits","3.automations\u002F11.reference\u002F2.limits","i-lucide-gauge",1796147277645,"6b28aab5-1860-4b98-b972-637aef5edbec"]