Summary
When attempting to create a Salesforce source using the airbyte_api python package, the response indicates that a SourceAirtable object is being created instead of a Salesforce source. This issue also affects the connectivity of the newly created source on Airbyte cloud UI.
Question
Hi all, awesome product!
Not sure where to put this, but when I am trying to create a Salesforce source through airbyte_api python package.
from airbyte_api import models, api
from datetime import datetime
s = airbyte_api.AirbyteAPI(
security=models.Security(
client_credentials=models.SchemeClientCredentials(
client_id=client_id,
client_secret=client_secret,
TOKEN_URL="/v1/applications/token",
),
),
)
res = s.sources.create_source(request=models.SourceCreateRequest(
configuration=models.SourceSalesforce(
client_id=client_id,
client_secret=client_secret,
refresh_token=refresh_token,
force_use_bulk_api=True,
start_date='2019-01-01T00:00:00Z'
),
name='Salesforce test',
workspace_id='31c70a11-2467-476d-b077-1029687aecc8',
))
print(res)```
It gives me this response:
```CreateSourceResponse(content_type='application/json', status_code=200, raw_response=<Response [200]>, source_response=SourceResponse(configuration=SourceAirtable(credentials=None, SOURCE_TYPE=<SourceAirtableAirtable.AIRTABLE: 'airtable'>), name='Salesforce test5', source_id='32a21312-4598-4f29-9636-545b5b7d114e', source_type='salesforce', workspace_id='31c70a11-2467-476d-b077-1029687aecc8'))```
Not sure why it attempts to create SourceAirtable??
And testing this newly created source connectivity fails on Airbyte cloud UI.
Creating Salesforce source from the UI creates SourceAirtable object as well. (Have tried listing sources through the API and it returns 2 Airtable sources).
Not sure where to escalate this, but would love to be able to create Salesforce source through an API.
Cheers
<br>
---
This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1723218359120709) if you want
to access the original thread.
[Join the conversation on Slack](https://slack.airbyte.com)
<sub>
["salesforce-source", "airbyte-api", "sourceairtable", "connectivity-issue", "api"]
</sub>