Request and response formulas
Every Open311 transaction consists of a request from the client app and a response from the server. Open311Request and Open311Response formulas can be used to alter the processing of these requests and responses. As shown in the table below, the behavior of each formula depends on the Open311 method that calls it.
Note: The term "request" here refers to an Open311 request, not a service
request.
Method | Request formula | Response formula |
---|---|---|
GET Service List | Run before the response is constructed. If ContinueProcessing is set to False, the formula will bypass the response. For example, you might want to provide a predefined list of services rather than getting them from the database. | Run after the response is constructed. |
GET Service Definition | Run before the response is constructed. | Run after the response is constructed. |
POST Service Request | Alters the request before processing. | Called after the service request is created. |
GET Service Requests | Alters the request before processing. | Alters or overwrites the response before sending. |
GET Service Request | Alters the request before processing. | Alters or overwrites the response before sending. |