mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-12 11:35:53 +00:00

### Description Update all other connectors to use the new downstream architecture that was recently introduced for the s3 connector. Closes #1313 and #1311
30 lines
1.0 KiB
Bash
Executable File
30 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Processes multiple files in a nested folder structure from Salesforce
|
|
# through Unstructured's library in 2 processes.
|
|
|
|
# Available categories are: Account, Case, Campaign, EmailMessage, Lead
|
|
|
|
# Structured outputs are stored in salesforce-output/
|
|
|
|
# Using JWT authorization
|
|
# https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_key_and_cert.htm
|
|
# https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_connected_app.htm
|
|
|
|
# private-key-path is the path to the key file
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
cd "$SCRIPT_DIR"/../../.. || exit 1
|
|
|
|
|
|
PYTHONPATH=. ./unstructured/ingest/main.py \
|
|
salesforce \
|
|
--username "$SALESFORCE_USERNAME" \
|
|
--consumer-key "$SALESFORCE_CONSUMER_KEY" \
|
|
--private-key-path "$SALESFORCE_PRIVATE_KEY_PATH" \
|
|
--categories "EmailMessage,Account,Lead,Case,Campaign" \
|
|
--output-dir salesforce-output \
|
|
--preserve-downloads \
|
|
--reprocess \
|
|
--verbose
|