Skip to content
Maua.Culturewire

Salesforce

Accounts, contacts, opportunities, cases and SOQL queries

Sales and CRMCatalog2 tools · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • OAuth 2.0

    PKCEYour OAuth app

    Bring your own OAuth app: register one with Salesforce, then create a custom auth config with its client ID and secret and our redirect URI. Setup guide

    Registering the OAuth app

    1. In Salesforce: “Setup” → “External Client App Manager” → “New External Client App” (in older orgs, “App Manager” → “New Connected App”).
    2. Give it a name and a contact email, enable OAuth, set the redirect URI shown below as the “Callback URL” and add the scopes “Manage user data via APIs (api)” and “Perform requests at any time (refresh_token, offline_access)”.
    3. Leave “Require secret for Web Server Flow” and “Require PKCE” selected and save.
    4. Under “Settings” → “OAuth Settings” click “Consumer Key and Secret” and copy both (client ID and secret); the app may take a few minutes to become active. If your organization does not allow signing in through login.salesforce.com, enter your My Domain. The session must last at least 1 hour (Salesforce does not say when the token expires).

    Default scopes

    • api
    • refresh_token

Tools (2)

  • Salesforce API requestSALESFORCE_SEND_REQUEST

    Authenticated call to the Salesforce API ({instance_url}/services/data/v67.0). Any endpoint of the API is allowed. Paths relative to /services/data/v67.0 (other APIs of the instance, such as /services/apexrest/…, with the full URL). Examples: GET /query?q=SELECT Id, Name FROM Account WHERE Name LIKE '%Acme%' LIMIT 20, GET /sobjects/Account/{id}, GET /sobjects/Opportunity/describe, POST /sobjects/Contact {"LastName": "…", "Email": "…", "AccountId": "…"}, PATCH /sobjects/Opportunity/{id} {"StageName": "Closed Won"}, GET /search?q=FIND {Acme} IN ALL FIELDS RETURNING Account(Id, Name), Contact(Id, Name, Email), GET /sobjects (available objects), GET /limits (requires permission to view the setup). Pagination: nextRecordsUrl (with SALESFORCE_RUN_SOQL_QUERY, pass it as “next”).

    Required scopes

    No scopes required

    Input

    Salesforce API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.
  • SOQL querySALESFORCE_RUN_SOQL_QUERY

    Runs a SOQL query and returns the records without metadata, with the total. If there are more (up to 2000 per page), it returns “next” to request the next page.

    Required scopes

    No scopes required

    Input

    SOQL query input
    NameTypeDescription
    querystringe.g. SELECT Id, Name, StageName, Amount, CloseDate FROM Opportunity WHERE IsClosed = false LIMIT 50
    nextstringThe “next” value from the previous call (instead of the query)
    include_deletedbooleanInclude deleted or archived records (queryAll)Default: false