I have a REST API source in Data Connection that uses OAuth2 authentication. The source has webhooks configured (e.g. WebhookLightspeedAPISeasonQuery) that work correctly when tested in Data Connection.
I’m trying to call these webhooks from a Python transforms repository using @external_systems, but:
- source.get_https_connection() fails with “Only single connection sources are supported” because OAuth2 sources internally create multiple connections (API domain + token endpoint)
- source._https_connections is empty ({})
- source.get_session_credentials() returns “Resolved source credentials are not present on the Source”
- The source does provide secrets and source_configuration (with the domain and oauth2_client_rid), but no usable HTTP client or OAuth token
Is there a supported way to execute a Data Connection webhook by API name from a Python transform? Or is there a recommended pattern for batch-syncing data from an OAuth2 REST API source in a Python transforms code repository?
Environment: transforms-external-systems 0.1174.0, external-systems 0.110.0, foundry-platform-sdk 1.69.0