How to test an AJO external data source without a real backend
By 16Labs · Updated
Short answer: create a receiver of kind Data source, give it a JSON response sample that matches the fields your journey reads, and point the AJO data source at it. Every GET call AJO makes is recorded with its query parameters, and you can force an error response with ?rr_fail=1 to see how the journey behaves when the source fails.
What an external data source needs
Journey Optimizer reads external data sources over REST, with GET or POST, and expects JSON. The response payload sample you give AJO defines the fields the journey can use. For GET calls, parameters are "dynamic values" appended to the URL. Authentication can be none, Basic, API key or Custom.
Adobe now recommends custom actions with responses for new use cases. If you are starting fresh, read How to test an AJO custom action end to end as well.
Steps
- In the 16Labs AEP Lab, go to AEP Lab → AJO Receivers → New receiver and choose Data source (GET).
- Choose the authentication you will use in AJO, backed by a credential in the vault.
- Set the Response sample to the JSON your journey reads, for example a loyalty tier and points balance for a synthetic profile.
- Optionally set an Error sample. It is returned with HTTP 500 when the call has
?rr_fail=1. - Copy the values from the paste-into-AJO panel into Configurations → Data sources in Journey Optimizer.
- Use the data source in a journey condition or message, publish the journey to a development sandbox, and send it a test event.
Each call appears under Calls with its query string, headers (secrets masked) and the response it received.
What to check
- The dynamic values AJO appends are the ones you expect, with the right encoding.
- The journey handles the error sample: a timeout or 500 should take the branch you designed, not stop the journey silently.
- The response fields AJO uses match the sample exactly. A renamed field in the real API will break the journey in the same way.