SetActivityStatus(activityId, statusApiName) updates the route activity with the specified status.
For example, use this function to update the status of a route activity to a "Visited" status after the user submits the check-in form, or create custom statuses for handling other outcomes of visits (for example, "cancelled" status).
Input
activityId: ID of a route activity that you want to update.
β
statusApiName: api name of the route activity status that you want to set for this route activity.
Example:
{{ SetActivityStatus(routeActivity.id, "Visited") }}
Output
The resulting route activity status will be set and will be visible on the route panel:

