Audit Tool help (Workflow: Result of Add Row)

I have been working on an app for the past 3 weeks at least. I’m so close to finishing up and have learned a lot in this process. however I have reached a point where I am asking this awesome community for help.

I have a simple 3 Action Workflow for a “New Audit” button. Action 1: Adds a Row and sets values (CreatedBy, Created At, Etc), Action 2: is supposed to reference the Row that is created in step 1. Action 3: Shows the detail page to actually perform the audit. The guidance via ChatGPT is to have Action 2 set Data.Users.USLastAuditID with the Row ID created in Action 1.

I cannot find the option for Result of Add Row option or anything similar.

1 Like

The add row action has a Result section where you could write the new RowID to a column in the user profile for example, and then create a relation in the user profile table that you can then use to show the detail screen. Seems that you could just eliminate Action 2 because the Add Row action will take care of that.

2 Likes

thank you for the quick response.

I’ve tried that with the “Write Row ID To” user.USLastAuditID but it didn’t seem to populate that column in my users table.

Are you previewing the app as an existing user?

1 Like

I’m previewing as admin, but I check the column for USLlastAuditID after I click my “New Audit” button. I creates a new row but doesn’t move the new RowID into the Users.USLlastAuditID column.

1 Like

It seems to work fine for me when I try it.

Can you show the configuration for your Add Row action?

2 Likes

I have a feeling it is something simple I’m overlooking.

1 Like

Can you scroll down and show the Result section with the Write To? That’s the part I want to see the most. It’s cut off on your screenshot.

2 Likes

1 Like

Is there any chance that your set column action is clearing it out after being set? You could probably get rid of that action altogether. Other than that nothing obvious is jumping out to me.

1 Like

I wouldn’t even know how to see if it clearing it out. I’ve clicked the New Audit Button and tried to watch the Data at the bottom of the screen to see it it populated for a quick second and it just bumped me over to the AuditSessions table where the Audit actually occurs, eventually.

Ill delete Action 2 and keep tinkering. if you need to see anything else or have any more insight im all ears. This one thing has had me stuck for quite a while.

1 Like

In your Set Column action, you would have something like this, or be overwriting the value with something different.

1 Like

No Clear Action selected. Here are some more screenshots of the Button and workflow.




1 Like

Thank you for the input. Would you happen to have an example I could see? (I’m a simple hillbilly for NorthWest Florida and retired Air Force guy. I need pictures lol)

Pretty sure Theo is using AI to respond to questions, as their responses often don’t make sense or add any value to the conversation. You do not need the second action as we’ve already discussed, and it’s obvious from your screenshots that everything is in the same workflow.

I’m still trying to think about what may be going wrong in your case. You say that you are previewing as a specific user as opposed to Anyone, so I’m taking your word on that for now. I suspect that I’m missing some context somewhere but I’m not sure what. I guess just for something to try, you could hop into the builder using a different computer or browser, or clear the browser cache in case something is stuck. Your setup seems correct to me.

3 Likes

Thanks for the clarification.

I have confirmed I am viewing as admin. I’m gonna clear my cache and restart everything.

1 Like

I cleared my cache and did a restart. Once I got logged back in I created a new user with Admin Roels in my Users Data and it worked like a champ. Thanks for your help. I have been hung up on this for weeks.

2 Likes