In the latest July 2023 release of SnapLogic.
We've added the response transformer policy!
Want to see it? Check out this video: https://snaplogic.box.com/s/mfthchoxpgvo28f9dft0mqpznkb9qeg5
Use this policy to transform the API response body. The Response Mapper policy contains a mapping table that evaluates an expression and writes the result to an optional field, which then deletes the path specified in the expression.
You can use this policy in the following use cases.
- Data normalization: This can be used to standardize the format of the data returned by the API, making it easier for clients to consume. For example, you could use a response transformation policy to convert all dates to a standard format, such as ISO 8601.
- Data security: This can be used to redact sensitive data from the response data, such as credit card numbers or social security numbers. For example, you could use a response transformation policy to replace all credit card numbers with asterisks or even hashing using encodings such as MD5 SHA 256/512.