When a customer creates a new ticket in the self-service portal, the external data source field should immediately call our API using #{current_user.login} and pre-populate the drop-down with the correct SAP systems.
When an agent creates a new ticket in the back office, after selecting a customer, the external data source field should immediately call the API with #{ticket.customer.login} and show the systems without having to save the ticket or type into the field.
Actual behavior:
#{current_user.login} in the customer portal always results in NONE and no API call is triggered on initial form load.
#{ticket.customer.login} in the agent UI only works after saving the ticket, not during initial ticket creation.
Even when adding q=#{search.query} or providing a dummy default (*), the API is not called automatically — it only triggers once a user types into the field.
Hardcoding a username in the URL works fine, so the API itself is functional.
Steps to reproduce the behavior:
Create a new ticket as a customer in the self-service portal.
Add an object field of type “external data source” with URL: