Skip to content

Commit

Permalink
add organization id in salesforce connection
Browse files Browse the repository at this point in the history
  • Loading branch information
harshsoni2024 committed Sep 19, 2024
1 parent 7a2b091 commit dc655b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions ingestion/src/metadata/examples/workflows/salesforce.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ source:
username: username
password: password
securityToken: securityToken
organizationId: organizationId
sobjectName: sobjectName
# sslConfig:
# caCertificate: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ def get_connection(connection: SalesforceConnection):
"""
return Salesforce(
username=connection.username,
password=connection.password.get_secret_value()
if connection.password
else None,
password=connection.password.get_secret_value(),
security_token=connection.securityToken.get_secret_value()
if connection.securityToken
else None,
else "",
organizationId=connection.organizationId if connection.organizationId else "",
domain=connection.salesforceDomain,
version=connection.salesforceApiVersion,
**connection.connectionArguments.root if connection.connectionArguments else {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
"type": "string",
"format": "password"
},
"organizationId": {
"title": "Salesforce Organization ID",
"description": "Salesforce Organization ID is the unique identifier for your Salesforce identity",
"type": "string"
},
"sobjectName": {
"title": "Object Name",
"description": "Salesforce Object Name.",
Expand Down

0 comments on commit dc655b1

Please sign in to comment.