Currently, the web trigger module only supports function calls. It would be nice if the module could also support calling an endpoint (Forge Remote) similar to how the scheduled trigger and trigger modules do.
To work around this limitation, I have implemented a function that calls invokeRemote. Strangely, with this solution, app.module.type and app.module.key in the FIT are empty strings. Is there any reason why those values cannot be provided in this case?
@HeyJoe, we did this because we wanted a way to force a Forge system access token sync. The thinking was that if, for whatever reason, the scheduled trigger (hourly) fails to deliver a token for more than 4 hours, the remote would lose the ability to communicate with the Forge platform for that specific installation.
Having the web trigger would allow us to manually trigger a sync for a specific installation, e.g., in response to a support request.
We could also increase the scheduled trigger interval to mitigate the impact of missed triggers, at the cost of increased load on our remote.
I honestly don’t know if we really need this. But since I am wary of introducing unnecessary major versions, I thought we’d include it now and remove it later if it’s not needed.