Row Data disappearing after a few seconds using a bot

I`m trying to create a task to generate a link (and add it to the data set) to a file/image which is created by the user.

A column [Invoice Image] is created when the form is saved, then a bot is set to verify any changes in this column and concatenate the invoice Image path etc to then add the Link in another Column [Invoice Image Link]

All works well, but the new row (the link) only stays in the row for a few seconds, then it disapear.
Any help?

Attn @prithpal @Dan_Bahir

1 Like

Question:why does this process need to be a bot and not a formula in the [Invoice Image Link]?


You are likely running into an issue where there are multiple updates funneling through your bot. Each update will process the complete row in the state it was in WHEN IT WAS EDITED. Meaning if Image Link column was empty on both edits and one edit triggered your bot but the other didn’t, the last row edit applied wins

So, for example, the user enters a new row - that’s 1 edit/change. Then an attached action to the form is fired and, for sake of example, applies some calculated amount to the row.

On the server side, the first edit applies and triggers the bot which updates your Image Link column (again for argument sake of example).

When the second edit is applied, IT KNOWS NOTHING ABOUT THE IMAGE LINK VALUE applied by the bot - the Image Link column will still be blank… If this second row edit happens to NOT trigger the bot, then it will be applied to the table on the server and its blank value, in the Image Link column, will OVERWRITE the recently applied value by the bot.

The suggestion by @Austin_Lambeth is a good one. It would be better to move the expression you have in the bot as the App Formula in the link column. This will avoid the bot issue altogether (assuming my suspicion above is correct). Additionally, if the Image for the link can be updated by any means OTHER than the Form in the app (say an external source or some other view or process in the app) then you might want to consider making the Image Link column a virtual column. This will keep the link always up to date, even of the image is changed elsewhere in the app.

Hope this helps!!


@Austin_Lambeth , Thanks for the comment, will use it as a Virtual Column.
There was no real preference for using a bot, was trying it out the functionality.

Thanks again

@WillowMobileSystems Thanks a lot for the detailed explanation, you were spot on about the updates chain and why it was being OVERWRITTEN to a original (blank) value.

Thanks a lot