U225X PUBLIC-SAFE CONVERSATION NOTE RECORD: CHAT-0143 TOPIC: Drafting Submission Status Issue IMPORTED: 2026.07.14 This note was generated from a matching conversation in the supplied ChatGPT export. EXTRACTED REQUEST: { "type": "If", "expression": { "or": [ { "equals": [ "@triggerBody()?['BatchID']", "" ] }, { "equals": [ "@triggerBody()?['BatchPrimary']", true ] } ] }, "actions": {}, "else": { "actions": { "Terminate": { "type": "Terminate", "inputs": { "runStatus": "Succeeded" } } } }, "runAfter": {} } RECOVERED CONVERSATION EXCERPTS USER MESSAGES: 1. I JUST SUBMITTED A SINGLE LINE ITEM IN DRAFTING SUBMISSIONS and it isn't changing my status 2. { "type": "If", "expression": { "or": [ { "equals": [ "@triggerBody()?['BatchID']", "" ] }, { "equals": [ "@triggerBody()?['BatchPrimary']", true ] } ] }, "actions": {}, "else": { "actions": { "Terminate": { "type": "Terminate", "inputs": { "runStatus": "Succeeded" } } } }, "runAfter": {} } 3. where do i put it 4. OK I AM GETTING THE TEAM MESSAGE THAT THE DRAWING IS APPROVED BUT I AM NOT GETTING THE EMAIL ASSISTANT RESPONSES: 1. I think I see exactly what happened. The important clue is this screenshot: - Condition 2 = Terminated - The fields on the left are showing `?BatchID` and `?BatchPrimary` instead of the normal dynamic content tokens. That usually means those values do not exist on the item that triggered the flow. What I suspect happened When we added batch support we made the flow check something like: [code excerpt omitted] so that only the primary item sends the approval. For a normal single submission, those fields should either be: [code excerpt omitted] or [code excerpt omitted] Instead, it looks like the flow can't even evaluate the condition because those fields are missing or aren't coming from the trigger.. First thi… 2. That code explains it. For a single-line submission, BatchID is probably `null`, not an empty text string `""`. Your condition currently checks: [code excerpt omitted] Because `null` does not equal `""`, and the single item likely does not have `BatchPrimary = true`, the condition goes to False, runs Terminate, and skips the status update. Change Condition 2 to this Use this expression: [code excerpt omitted] In the condition designer, the easiest setup is: First row In the left box, select Expression and enter: [code excerpt omitted] Set: [code excerpt omitted] Right box: [code excerpt omitted] Second row Keep: [code excerpt omitted] Make sure the condition uses OR, not AND. The resulting code should look app… 3. Now we can see the exact problem. Inside Get items, your Filter Query is: [code excerpt omitted] The value being passed into `trim()` is `null` for this single submission, so the flow stops before it reaches Send an email (V2) 2. Replace the purple `trim(...)` expression Click the purple expression in the Filter Query, delete it, and enter this expression: [code excerpt omitted] Your complete Filter Query should be: [code excerpt omitted] Do not type that whole line as plain text. Build it like this: [code excerpt omitted] then insert the expression: [code excerpt omitted] then type the final apostrophe: [code excerpt omitted] So visually it should be: [code excerpt omitted] Why this fixes it Inside the Apply… EXTRACTED KNOWLEDGE / HOW-TO - Condition 2 = Terminated - The fields on the left are showing `?BatchID` and `?BatchPrimary` instead of the normal dynamic content tokens. - -- - Click the ... in the upper right of the Condition. - Choose Code View. - Copy and paste the JSON here. - BatchID - BatchPrimary CONVERSATION SHAPE: 7 user turns / 8 assistant turns ATTACHMENTS DETECTED: 50 Raw transcripts, private details, exact locations, account information, employer/customer-confidential material, and restricted software references are not published in this note. PROPERTY OF U225X / PUBLIC-SAFE IMPORT