I guess this may be a question regarding when to use an action and when to use an automation but the original question I wanted to ask is what condition can I use in an action to only fire when a new record is being added and not when I am editing an existing record. I have an action that is used when I save from an Form. It may be slightly more difficult to answer given that I am trying to use both the db preview and the desktop preview and it appears that the record is effectively "stored" even before I press the save button - I see it in the UI Table before I click save.
I was thinking that a test whether _ROWNUMBER is blank or similar may work but I have not perfected the precise expression yet. Can anyone help? Thanks
Solved! Go to Solution.
One way you could try to accomplish this is
This seems to do the job, at least when I try it. There could be other ways like you are trying using an expression on the action but I could not get it to work...
You can check if the record exists in the table, if does not then perform the desired action. This can be defined in the Only if this condition is true of the Behavior section in actions.
That appears to be the problem, how to check. Everything I have tried so far returns that it already exists. I think this is caused by one of the preview features. I got close to a solution but not if I edit and save but not change anything.
Can you place screen shot of what you have tried?
Take a look at this Tips & Tricks they go in line with what you are trying to accomplish:
Tips-Tricks/How-to-Prevent-Duplicate-Records
One way you could try to accomplish this is
This seems to do the job, at least when I try it. There could be other ways like you are trying using an expression on the action but I could not get it to work...
@TeeSee1 wrote:One way you could try to accomplish this is
Yes indeed this does appear to be the case. Or of course use an automation which somehow seems to know the difference. It was interesting that _RowNumber was not blank when adding a record and [_THISROW-BEFORE] was not supported.
Thanks for the response
@alphacp wrote:
use an automation which somehow seems to know the difference.
What is your expression to use this bot's knowledge to distinguish add from edit?
Use ISBLANK([_THISROW-BEFORE])?
None, when adding an event to Automation you can specify "Adds only"
Ah, I see.
User | Count |
---|---|
45 | |
34 | |
27 | |
23 | |
15 |