Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(integrations): add validation rules to salesforce fetch-fields #17

Merged
merged 5 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 45 additions & 29 deletions flows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3764,109 +3764,118 @@ integrations:
actions:
fetch-fields:
description: >
Fetch available task fields. If the input is not specified then it
defaults back to "Task"
Fetch available task fields, child relationships and validation rules.
If the input is not specified then it defaults back to "Task"

Data Validation: Parses all incoming data with Zod. Does not fail on
parsing error will instead log parse error and return result.
scopes: offline_access,api
input: SalesforceEntity
version: 1.0.0
output: SalesforceFieldSchema
endpoint: GET /salesforce/fetch-fields
syncs:
accounts:
runs: every hour
description: |
Fetches a list of accounts from salesforce
output: SalesforceAccount
output: Account
sync_type: incremental
version: 1.0.0
endpoint: GET /salesforce/accounts
contacts:
runs: every hour
description: |
Fetches a list of contacts from salesforce
output: SalesforceContact
output: Contact
sync_type: incremental
version: 1.0.0
endpoint: GET /salesforce/contacts
deals:
runs: every hour
description: |
Fetches a list of deals from salesforce
output: SalesforceDeal
output: Deal
sync_type: incremental
version: 1.0.0
endpoint: GET /salesforce/deals
articles:
runs: every day
description: |
Fetches a list of articles from salesforce
output: SalesforceArticle
output: Article
input: SalesforceMetadata
version: 1.0.0
auto_start: false
sync_type: incremental
endpoint: GET /salesforce/articles
tickets:
runs: every day
description: |
Fetches a list of tickets from salesforce
output: SalesforceTicket
output: Ticket
sync_type: incremental
version: 1.0.0
endpoint: GET /salesforce/tickets
models:
SalesforceAccount:
Account:
id: string
name: string
website: string
description: string
no_employees: number
website: string | null
description: string | null
no_employees: number | null
last_modified_date: string
SalesforceContact:
Contact:
id: string
first_name: string
first_name: string | null
last_name: string
email: string
account_id: string
email: string | null
account_id: string | null
last_modified_date: string
SalesforceDeal:
Deal:
id: string
name: string
amount: number
amount: number | null
stage: string
account_id: string
last_modified_date: string
SalesforceArticle:
Article:
id: string
title: string
content: string
last_modified_date: string
SalesforceTicket:
Ticket:
id: string
case_number: string
subject: string | null
account_id: string
account_id: string | null
account_name: string | null
contact_id: string
contact_id: string | null
contact_name: string | null
owner_id: string
owner_name: string | null
priority: string
status: string
description: string | null
type: string
type: string | null
created_date: string
closed_date: string
origin: string
closed_date: string | null
origin: string | null
is_closed: boolean
is_escalated: boolean
conversation:
id: string
body: string
created_date: string
created_by: string
conversation: Conversation[]
last_modified_date: string
Conversation:
id: string
body: string
created_date: string
created_by: string
SalesforceEntity:
name: string
SalesforceFieldSchema:
fields: Field[]
childRelationships: ChildField[]
validationRules: ValidationRule[]
NestedFieldSchema:
fields: Field[]
Field:
Expand All @@ -3887,6 +3896,13 @@ integrations:
method: string
url: string
code: string
SalesforceMetadata:
customFields: string[]
ValidationRule:
id: string
name: string
errorConditionFormula: string
errorMessage: string
sharepoint-online:
actions:
list-sites:
Expand Down
Loading