I have another seemingly simple requirement depending on BEFOR/AFTER.
When a new user goes to my start page I want to get an email
The start page table has a VIRTUAL column email which is set to the useremail().
Appsheet magically recommends the following โon updateโ event condition to make this happen:
AND([_THISROW_BEFORE].[email] <> USEREMAIL(), [_THISROW_AFTER].[email] = USEREMAIL())
However the event is never triggered. When I look in the test of the workflow I see neither the before or after is set. โฆ so the condition always fails.
If I trigger the event manually then the email is sent as expected.
For what reason might
[_THISROW_BEFORE].[email]
and
[_THISROW_AFTER].[email]
not be set?
Virtual columns cannot trigger events.
What are you trying to accomplish?
oh โฆ that would explain it. i presume you mean the virtual column data change event is not recognized?
โwhen a user comes to the start page i want an emailโ
Correct, the virtual column data change event is not recognized.
What is a โstart pageโ? How would the user arrive at it?
The app can only take action in response to a user action. Entering/starting/returning to the app is not considered a user action.
The start page is a customized home page based on a special table. The user always starts on that page because its view is set as the starting view.
I just changed the virtual column to a real column with useremail() as its formula. I changed the event filter to use that column instead of the virtual one.
Still i see no before and after set,
Having done that I find the physical column is not being set to the usermail() like the virtual column is. At the moment I canโt see why.
What type of view is your starting view? Is there a data change event happening that is allowing USEREMAIL() to evaluate?
It is a detail view. useremail() definitely evaluates because it is visible on the view. I can confirm the virtual column with useremail() as its formula, also does evaluate according to the test mode,
but as you imply the physical column with useremail() as its formula, does not seem to evaluate. So I( suppose that it requires some kind of further user action?
yep
So in summary it is not possible to recognize a user has gone to that view (or indeed any other) unless there is some action they do that can be used to trigger the event. Is there any way around this?
Correct.
I believe you answered your own question:
There has to be a data change to trigger a Bot.
Let me ask the question in a different way โฆ Since appsheet pricing is based on distinct users how can I easily and quickly know when such a user logs into the app?
You can see all sync events in the Audit Logs. This is neither โquickโ nor โeasyโ, if you ask me, but there is no other way. (also check out the โUsage Statisticsโ on the same page)
Why are you showing me this? How does it relate to my issue?
Yes, this is indeed how I show the start page (starting view) on which i am trying to base the trigger.
The launch page is only displayed to each user once, the first time the user opens the app after the app is installed. Is that your understanding?
I am not sure precisely what you mean by launch page, but if you mean, the inbuilt one then yes it will appear once only for a new user. This is not anything to do with my issue.
The starting view, my start page I refer to, is displayed to the user as the first view as set in the options you mentioned, and appears every time a user enters the app โฆ which is what I want.
Now I was hoping to use that view/associated table to trigger the email. I can understand why a virtual column may not be recognized (and only assumed it was ok because appsheet itself recommended the event formula). so how to do this?
This isnโt possible.
Your response is confusing. I am stating a fact not an intent. I set the start view and that is the view the user sees when they start the app (except the first time, when they may see the inbuilt launch page with terms and conditions and so on). What else could they see?
Yes I can see the app sync โ Start with an email buried in the hundreds of sync events. As you say not quick or easy.
BUT โฆ the usage statistics do indeed show Unique app user emails in alphabetical order, but no obvious way of detecting a new one since this would be over a month. But I see on the core plan I can get individual app users per day. This would probably give me what I was looking for.
Thanks for your help, I think this will do for now.
User | Count |
---|---|
49 | |
18 | |
10 | |
9 | |
7 |