Error in App Action Logs

Hi,

I created an app action and tested it with runWIthResult method. Everything seems to work fine but when it automatically runs on the server, this is the error I am getting and I have no idea what this is about.

Screenshot 2023-05-29 at 5.30.37 PM

Hi Umar,

Is it possible you are calling the app action (the runWithResult method) is on the same page as the page that contains the code in the Fliplet.Page.onRemoteExecution() method?

They have to be on 2 different screens. See some instructions here:

Hope this helps,
Deb

Hi Deb,

This was exactly the case. I thought only the code inside onRemoteExecution is executed with app action.

There is one more confusion that I would like to clarify. Sometimes, I need to update the app when I make a change to the App action code. Do I need to update the app every time I make a change to the App action code?

Thanks

If you are running scheduled app action then yes only the published version of the screen will run and hence you will need to push an update to run the latest code.

See here (Number 9): App Actions | Fliplet Developers Documentation

Thanks,
Deb