Hi, short time lurker here! New to AppSheets and come from a non-technical background. I have fallen in love with AppSheets and am trying to learn more about it and using it more in my daily personal and work life.
Right now, as I am trying to get to know the app I am making a Checklist Application. I want to generate a list of yes/no questions based on the checklist frequency “type”. I want the user to be able to quickly and easily add and remove questions as needed.
Question:
I have a Table “Questions”, with a WORKING Action (Create Question Entry) that adds the [Question] to an “Entries” Table and refers the [Question] ref column back to [_ThisRow] and refers the Date column to the MAX() Date of that “Frequency”. Currently, the Application’s Workflow has the User “Start a Checklist” with a deck view of the Table “Frequency” with options Daily, Weekly, Monthly, Quarterly, or Annual. They select an Action that Creates an “Entry Date” related to [_ThisRow].
The creation of this related “Date” triggers a bot that is SUPPOSED to run the Process:
-
data change - Add
- Condition: AND([isMostRecent] = true, [DailyProcessed] = false )
-
run a data action
- Run Action on Rows
- Referenced Table: Questions
- Referenced Rows: Select(Questions[Question], [Frequency] = Daily)
- Referenced Action: “Create Question Entry”
- Run Action on Rows
-
wait
- Condition:
- LOOKUP(
TODAY(),
“Dates”,
“Date”,
“DailyEntryCount”
) = COUNT(
SELECT(
Questions[Question],
([Frequency] = “Daily”)
)
)
- LOOKUP(
- Condition:
-
Run a Data Action
- Set Row Values
- [DailyProcessed] = True
- Set Row Values
As soon as I run the Action to create a new Entry Date that kicks off the Automation, the [DailyProcessed] gets switched over to true immediately and it wont add any rows.
I want to hope its just step 2.1.2 but I might just be unable to do it this way all together. I am open to exploring other methods. I found a couple templates that used like an EnumList in a form view that decided what rows got generated but it did not look like it would work with my table structure..
Table Structure
Table: Questions
| Row ID | Question (text) | Frequency (Ref) |
|---|
Table: Frequency
| Row ID | Frequency (Enum) |
|---|
Table: Dates
| Row ID | Date (Date) | Frequency (ref) | Daily Processed (y/n) |
|---|
Table: Entries
| Row ID | Frequency (LookupRef) | Date (ref) | Response (Text) | Question (ref) |
|---|
Bot Test Error
Failed: Error: ‘Execute an Action on a Set of Rows’ Data action ‘Action for New Entry’ for table 'Dates failed with exception Cannot get key values when Parent or ChangeImage are null.
{
"$type": "Nirvana.Data.TaskResultTakeAction, V2API",
"AppWorkflowRuleOrProcessName": "Process for New Bot - 1",
"ActionName": "Action for New Entry",
"Changes": {
"$id": "1",
"$type": "ChangeOperations.Changes, ChangeOperations",
"ListChanges": [
{
"$id": "2",
"$type": "ChangeOperations.Change, ChangeOperations",
"AfterImage": [
"1",
"UQsn3Gicv6AQtvu9ku7HAg",
"05/30/2024",
"l3uvcYlK7N4m2N9EpRlfDb",
"",
"Y",
"N",
"gNx0VImL3aMt20u15MGZFn",
"",
"TRUE",
"05/30/2024",
"1"
],
"AfterImageOriginal": null,
"BeforeImage": null,
"BeforeImageOriginal": null,
"ChangeImage": null,
"ChangeImageToLog": [],
"ChangeImageSavedImages": null,
"ProcessStateDataChange": null,
"MustReadBeforeOrAfterImage": false,
"OpTypePerformed": "Update",
"TableName": null
}
]
},
"AppErrors": {
"$type": "Jeenee.DataTypes.AppErrors, Jeenee.DataTypes",
"RecordInfo": false,
"RecordWarning": true,
"AnnotateErrors": false,
"Errors": []
},
"TaskType": "TakeAction",
"TaskName": "Action for New Entry"
}