Why does a Forge web triggers calling invokeRemote produce a FIT with empty strings?

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?

Reached out to the owning team on this. They should get back to you tomorrow.

Looks like this is a known gap, you can follow the following Forge Ticket: Jira

Hey @tbinna

Sorry to resurrect an old post - could you share some info on the use case that required a web trigger to call a remote endpoint?

Is it because you’re exposing an RPC API over the web trigger and you don’t want callers to hit your remote directly?

@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.