Skip to content

Connect Salma to Salesforce

This guide is for the Salesforce admin of the org that will receive Salma submissions. It takes about 30 minutes. You need System Administrator access in Salesforce and an Organisation admin login in the Salma Console.

You will do five things:

  1. Create Salma’s app in your org and copy its consumer key and secret.
  2. Create an integration user and its permission set.
  3. Add the Salma Id field to each object Salma creates records in.
  4. Connect in Salma.
  5. Check the troubleshooting list if anything goes wrong.

Salma installs nothing in your org. The app you create in Part 1 lets Salma sign in as the user who logs in at Part 4, and Salma can then do what that user can do. That is why Part 2 creates a dedicated integration user with only the access Salma needs.

The screenshots were taken in a Salesforce Developer Edition org in November 2026, writing to Contact. Salesforce changes its Setup screens between releases, so your screens may look slightly different.

  • Do this in a sandbox first if you can.
  • Open the Salma Console. Click Integrations in the left menu, then Salesforce. On the General settings tab, click Copy next to “Callback URL for your Salesforce app”. Use that exact value in Part 1.1. It must match character for character. The Console shows this address only until you connect, so copy it now.
  • Decide which objects Salma will write to (for example Contact, Account and a custom Farm Visit object). Parts 2 and 3 need this list.
  • Keep your own Salesforce login for Parts 1 to 3. Whenever you log in as the integration user (Part 2.2 and Part 4), use a private browser window. Logging in as another user in the same browser replaces your own Salesforce login there.

Salesforce calls this an External Client App. It replaces the older Connected App. Since the Spring ’26 release, new orgs cannot create Connected Apps without a request to Salesforce Support, so this guide uses an External Client App. Source: https://help.salesforce.com/s/articleView?id=005228017&language=en_US&type=1

  1. In Setup, type External Client App in Quick Find and open External Client App Manager.

  2. Click New External Client App.

  3. Under Basic Information, fill in:

    Field Value
    External Client App Name Salma
    API Name Salma. Salesforce fills it in from the name.
    Contact Email an address your team reads, for example your Salesforce admin mailbox
    Distribution State Local
    Description Sends Salma form submissions to Salesforce. (optional)

    Basic Information filled in

  4. Open API (Enable OAuth Settings) and tick Enable OAuth. Under App Settings, fill in:

    Setting Value
    Callback URL the callback URL you copied from the Salma Console
    OAuth Scopes move these two to Selected OAuth Scopes: Manage user data via APIs (api) and Perform requests at any time (refresh_token, offline_access)

    Add only these two scopes. Salma does not need full access, web access or any other scope.

    Callback URL and the two selected scopes

  5. Leave every box under Flow Enablement unticked.

  6. Under Security, tick Require secret for Web Server Flow and Require secret for Refresh Token Flow. In new orgs three more boxes are already ticked and greyed out, with “To change this required setting, contact Support”: PKCE, Enable Refresh Token Rotation, and Limit Idle Refresh Token Time-to-Live (TTL) to 30 Days. Leave them ticked. Salma works with all three. Leave the other boxes unticked.

    Security settings

  7. Click Create. The app opens with App Status Enabled.

    The new app

  1. On the app’s page, click the Settings tab.

  2. Open OAuth Settings and click Consumer Key and Secret. It opens in a new tab.

    The Consumer Key and Secret button

  3. Salesforce asks you to verify your identity and emails you a code. Enter it and click Verify.

    Verify Your Identity

  4. The Consumer Details page shows the Consumer Key and the Consumer Secret, each with a Copy button. Keep this tab open for Part 4.

    Consumer Details, values hidden in this picture

Treat the secret like a password. Do not email it or paste it into a ticket. You paste it once into the Salma Console, which stores it encrypted.

Part 2. Create the integration user and its permission set

Section titled “Part 2. Create the integration user and its permission set”

Use a dedicated user for Salma, not a person’s own login. Records Salma creates then show this user as Created By, not a member of staff.

  1. In Setup, Quick Find, open Permission Sets and click New.

  2. Label Salma Integration. Salesforce fills in the API Name Salma_Integration. Leave License as None. Save.

    New permission set

  3. Click System Permissions, then Edit. Tick API Enabled. Do not tick API Only User: connecting in Part 4 is a browser login. Click Save. If Salesforce shows a summary of the permissions that change, check it lists API Enabled, then click Save again.

    API Enabled ticked

  4. Go back to the permission set overview and click Object Settings. For each object Salma writes to, click the object, then Edit, and set:

    Access Value
    Read on
    Create on, for objects where a form step creates records
    Edit on
    Delete off
    View All Records off
    Modify All Records off

    Object permissions for Contact

    On the same page, under Field Permissions, tick Read Access and Edit Access for each field Salma writes or matches on, then Save. The Salma Id field does not exist yet. You give access to it in Part 3.

Do not give View All, Modify All, View All Data or Modify All Data. Salma looks up records only to match Update and Upsert steps, and reads only what this user can see under your sharing rules. If a form step sets a record type, the integration user must be able to use that record type. Salma’s mapping editor tells you if it cannot.

  1. In Setup, Quick Find, open Users and click New User.

  2. Fill in:

    Field Value
    First Name, Last Name Salma, Integration
    Email a mailbox your team reads. Salesforce sends the password link there, and login codes too if your org verifies logins by email.
    Username a unique login name in email form. Salesforce copies the email into this box as you type, so check it before you save.
    Alias, Nickname keep what Salesforce fills in, or type your own
    User License see below
    Profile see below

    New User

  3. Choose the license and profile.

    • If Salma writes only to Account, Contact and custom objects, Salesforce Platform with the Standard Platform User profile works. This guide was tested with it. In the test org this profile could read and create Account and Contact, but had no access to Lead, Opportunity, Case or Campaign.
    • If Salma writes to Leads, Opportunities, Cases or Campaigns, use a license and profile that include those objects, such as the Salesforce license.
    • Do not use the Salesforce Integration license. In the test org its only profiles were “Minimum Access - API Only Integrations” and “Salesforce API Only System Integrations”. An API only user cannot complete the browser login in Part 4.
  4. Leave Generate new password and notify user immediately ticked. Save.

  5. On the user’s page, under Permission Set Assignments, click Edit Assignments. Move Salma Integration to Enabled Permission Sets and Save.

  6. In a private browser window, open the email Salesforce sends to the user and set the password. Depending on your org’s settings, Salesforce may also ask for a security question or a verification code.

Now that the permission set exists, go back to the app.

  1. In External Client App Manager, click Salma. On the Policies tab, click Edit.

  2. Open OAuth Policies. Under Plugin Policies, set Permitted Users to Admin approved users are pre-authorized. Salesforce asks you to confirm. Click OK.

  3. Under App Policies, in Select Permission Sets, move Salma Integration to Selected Permission Sets.

    Salma Integration selected under App Policies

  4. Under App Authorization, leave the Refresh Token Policy as it is: Expire refresh token if not used for specific time, 30 Day(s). Salesforce marks it “Idle Expiration Time Limit Enforced”. Leave IP Relaxation at Enforce IP restrictions.

    Refresh token policy and IP relaxation

  5. Click Save.

With Admin approved users are pre-authorized, users who hold the Salma Integration permission set can use the app without an Allow screen. Source: https://help.salesforce.com/s/articleView?id=xcloud.preauth_user_app_access_through_eca.htm&type=5

If the integration user’s profile has Login IP Ranges, Salesforce can refuse logins that come from outside them, including Salma’s. Use a profile without Login IP Ranges, or ask Salma support for the server address to add.

When Salma creates a record, it writes a unique value into its Salma Id field, except when an Upsert step creates it through one of your own External ID fields (see below). A retry of the same submission then updates that record instead of creating a second one.

Add it to every object where a form step creates records: Create steps, and Upsert steps that can create. An Upsert step that matches on one of your own External ID fields uses that field instead, but when the answer it matches on is blank, Salma falls back to Salma Id. So add Salma Id there too, unless that answer can never be blank. Objects that Salma only updates do not need it. The Salma mapping editor tells you which objects are missing it.

For each of those objects:

  1. In Setup, open Object Manager, choose the object, then Fields & Relationships, then New.

  2. Choose Text. Click Next.

    Data type Text

  3. Fill in the details and tick Unique and External ID. For Unique, either case option is fine.

    Setting Value
    Field Label Salma Id
    Length 255
    Field Name Salma_Id (the API name becomes Salma_Id__c)
    Description Set by Salma. Do not edit. (optional)
    Required not ticked
    Unique ticked
    External ID ticked

    Salma Id field details

  4. Click Next. This step sets field-level security for profiles, and Salesforce ticks Visible for several profiles at the start, as in the picture. The integration user gets access through the permission set in step 6, so untick the profiles unless your own staff need to see the field.

    Field-level security step as Salesforce first shows it

  5. Click Next. Salma does not need the field on any page layout, so you can untick the layouts. Click Save.

    Page layouts step

  6. Give the integration user access to the new field. Open Permission Sets, click Salma Integration, then Object Settings, then the object, then Edit. Under Field Permissions, tick Read Access and Edit Access for Salma Id. Save.

    Salma Id access in the permission set

The API name must be exactly Salma_Id__c, and the field must be Text with length 255, Unique and External ID. Salma checks all of this. In the mapping editor, click Check again after adding the field.

Do not edit Salma Id values by hand. Do not reuse the field for anything else.

Use a private browser window for the Salesforce login in this part.

  1. In the Salma Console, click Integrations in the left menu, then Salesforce. The General settings tab opens.

  2. Under Environment, choose Production or Sandbox. This must match the org where you created the app. A Developer Edition org is Production.

  3. On the Consumer Details tab from Part 1.2, click Copy next to Consumer Key and paste it into “Consumer key” in Salma. Do the same for the Consumer Secret.

    The Connection settings in Salma

  4. Click Connect. Salma saves the details and opens the Salesforce login page.

  5. Log in as the integration user from Part 2. If Salesforce offers a saved username, choose to log in with a different username.

  6. If Salesforce asks for a verification code, enter the code from the integration user’s email. If it asks for a new password, set one.

  7. You return to Salma, which says “Connected to Salesforce.” The page title shows “Sync active”.

  8. Check that Connected user shows Salma Integration. If it shows anyone else, Salma would write records as that person. Click Disconnect Salesforce at the bottom of the page and connect again as the integration user.

    Connected, with Salma Integration as the connected user

Salma checks the org and the user after login. A connection belongs to that one org.

Salma logs in at login.salesforce.com for production and test.salesforce.com for sandboxes. Source: https://help.salesforce.com/s/articleView?id=xcloud.remoteaccess_oauth_endpoints.htm&type=5

Click Reconnect to log in again to the same org, for example when Salma shows Disconnected. If you created a new app in Salesforce, tick “The app was created again in Salesforce” and paste the new consumer key and secret.

Reconnect to Salesforce

Click Disconnect Salesforce at the bottom of the Salesforce page, then Disconnect. Salma stops sending and forgets the login and secret. Mapping rules and the sync history are kept. To stop Salma sending, this is the step to use.

Disconnect Salesforce

A local app is not copied when a sandbox is created or refreshed. Source: https://help.salesforce.com/s/articleView?id=005228017&language=en_US&type=1

A refreshed sandbox is a new org to Salma, and Reconnect only works with the same org. After a sandbox refresh:

  1. In Salma, click Disconnect Salesforce, then Disconnect.
  2. In the sandbox, do Parts 1 to 3 again.
  3. In Salma, connect again with the new consumer key and secret, choosing Sandbox.
  4. Set up the mapping rules again for each form. Salma keeps the mapping rules and sync history of the old sandbox, but they belong to that org and do not carry over to the refreshed one.

Each sandbox and production org needs its own app, its own key and secret, and its own Salma connection.

What you see Possible causes What to do
Salesforce shows error=invalid_client_id and “client identifier invalid” Salesforce does not know the consumer key. The key was copied wrongly, or the app is in a different org Copy the key again from Consumer Details (Part 1.2). In Salma, click Change the app details, paste the key and secret, and click Connect. Check Production or Sandbox.
Salesforce shows an error about the redirect or callback URL The callback URL in the app does not match Salma’s In Salma, click Change the app details. The callback URL shows again. Copy it into the app (Part 1.1, step 4), then paste the key and secret and click Connect.
Salma: “Salesforce access was not approved.” Salesforce sent back an error instead of a login. For example: you logged in as a user without the Salma Integration permission set, or someone clicked Deny Click Connect and log in as the integration user. Check the user holds Salma Integration (Part 2.2) and the app lists it (Part 2.3).
Salma: “Salesforce did not accept the app details.” The consumer secret is wrong, the key and secret are from different apps, or Salma could not reach Salesforce at that moment Try Connect once more. If it repeats, click Change the app details and paste both values again from Consumer Details.
Salma: “The Salesforce login expired or was started in another tab.” The login took more than 10 minutes, two logins were started, or your Salma session changed during the login Stay signed in to Salma as an Organisation admin, click Connect again and finish in the same tab.
Salma: “You logged in to a different kind of org.” Sandbox chosen but you logged in to production, or the other way round Choose the right environment, and log in to the org where you created the app.
Salma: “You logged in to a different Salesforce org from the one this connection uses.” Reconnect was used with another org’s login, or the sandbox was refreshed Log in to the original org. For a refreshed sandbox, follow Sandboxes above.
Salma: “Salma could not confirm the Salesforce user.” Salesforce did not return the user details Try again. If it repeats, check the user is active and its permission set has API Enabled.
What you see Possible causes What to do
Connection shows Disconnected Salesforce refused Salma’s stored login the last time Salma used it. For example: the integration user was deactivated or frozen, the login was not used for 30 days, the app was deleted, or the sandbox was refreshed Fix the cause, then click Reconnect. After a sandbox refresh, follow Sandboxes above.
Sync history shows Paused, API limit Your org reached its daily API limit Nothing to do. Salma resumes on its own when the limit resets. Nothing is lost.
Mapping editor: “Add the Salma Id field to” an object The object has no valid Salma Id field Follow Part 3, then click Check again. The check also reports a field that is not Text, shorter than 255, not Unique, not External ID, or not editable by the integration user.
A field you expect is missing from the mapping editor The integration user cannot see or edit it. Salma also never offers Salma Id itself, or the Latitude and Longitude parts of a location field, as targets Give the permission set Read and Edit access to the field. Salma remembers the Salesforce field list for up to 10 minutes, so wait 10 minutes and reload the mapping page.
Sync history: REQUIRED_FIELD_MISSING A required Salesforce field had no value Map the field, or give it a fixed value in the step, then Resend. Making the form question required helps future submissions only.
Sync history: FIELD_CUSTOM_VALIDATION_EXCEPTION One of your validation rules refused the record Check the rule against the submitted values. Fix the rule or the mapping, then Resend.
Sync history: DUPLICATES_DETECTED A Salesforce duplicate rule blocked the record Change the rule to allow or alert for the integration user, or use an Update or Upsert step that matches the existing record.
Sync history: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST A choice in the form is not an active value of a restricted picklist Add the value to the picklist or change the form choice, then Resend.
Sync history: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY The integration user cannot see a related record (a lookup, owner or record type) Give the permission set access, or check sharing for the related record.
Sync history: INVALID_FIELD A mapped field was deleted or renamed in Salesforce Fix the mapping in Salma, publish it, then Resend.
Sync history: match not found An Update step found no record and is set to fail when none is found Change the match field so it finds the record, or set the step to skip when none is found.
Sync history: more than one match An Update or Upsert step found several records Change the match field so it finds exactly one record.
Sync history: Synced, files pending The records were written but a photo is still uploading Nothing to do. Salma keeps retrying the upload.

Salma shows Salesforce’s error code and the field name, not Salesforce’s full message, because those messages can contain record data. To find the cause, look at the field named in Salma’s error and the validation rules, duplicate rules and automation on that object.