InCountry logo
mobile-nav
Search
  • Products
    • Products
      • InCountry for Salesforce
      • Data Residency-as-a-Service
      • Alibaba Cloud InCountry Service
      • Compliance and security
    • Gateways
      • Email
      • Payment Vault
      • Web Forms
      • HTML
    • Developers
      • REST API
      • SDK
  • Solutions
    • Automotive
    • Energy
    • Financial services
    • Healthcare
    • Retail
    • Technology
    • Latest success story
      • IBM Consulting
  • Integrations
    • Cegid
    • Intertrust
    • MuleSoft
    • PayPal
    • Salesforce
    • ServiceNow
    • Stripe
    • Veeva Systems
    • Yandex
  • Resources
    • Country compliance
    • Documentation
    • Library
    • Partners
    • Pricing
  • About
    • News and Blog
    • Careers
    • Contact Us
    • FAQ
    • Leadership
  • Login
  • Schedule a Demo

›Administrator's guide

Home
  • InCountry Platform
Portal
  • Getting started
  • Documentation
    • Dashboard
    • Managing environments
    • Managing SDK credentials and services
    • Managing Border configuration
    • Managing payment vaults
    • Managing email gateways
    • Managing resident functions
    • Managing file imports
    • Managing profile and organization
    • Managing users
    • Managing encryption keys
  • Release notes
Border
  • Documentation
  • Release notes
REST API
  • Documentation
  • How to test CRUD requests through REST API
  • Release notes
Resident Functions
  • Documentation
Salesforce
  • About
  • Overview
  • Quick start guide for three-model package
  • Quick start guide for legacy package
  • Administrator's guide
    • Managing the package
    • Managing permissions
    • Managing OAuth2 authentication and authorization
    • Managing certificates
    • Registering CSP Trusted Sites
    • Managing InCountry Endpoints
    • Managing REST endpoints
    • Managing InCountry flags
    • Loading the application
    • Managing data regulation policies
    • Managing protected fields
    • Hashing the UserName field
    • Managing custom objects
    • Replacing standard elements
    • Configuring record search
    • Managing components
    • Setting up Salesforce Experience Cloud
    • Managing resident functions
    • Managing InCountry cache
    • Managing Apex triggers
    • Managing record synchronization
    • Managing web forms
    • Tracking changes to data regulation policies and regulated fields
    • Using Email-to-Case feature
    • Debugging
    • Migrating data from one Salesforce organization to another
  • Developer’s guide
    • Apex SDK
    • JavaScript API
    • Retrieving record statistics
    • Tracking field history
  • User's guide
    • Working with protected fields
    • Sending compliant email messages
    • Importing data into Salesforce
    • Migrating records
    • Managing audit reports
    • Converting leads
    • Managing reports
    • Using formula fields
    • Using frontend validations
    • FAQ
    • Release notes
Payment Vault
  • Documentation
BYOK
  • Documentation
FAQ
  • Get started with the platform
  • Integration options
  • Data regulation models
  • Limits and quotas
  • Video tutorials
Service Status
  • Status

Enabling the debug mode

The InCountry Data Residency for Salesforce package allows you to activate the debug mode when the package works with the replication data regulation model. This mode lets you track the process of saving data records to the InCountry platform and ensure that they first appear on the InCountry platform and only then are replicated to Salesforce.

note

The debug mode is supported in the legacy package only.

Prerequisites

  1. The replication model is enabled for the Salesforce organization.

  2. The Chatter component is enabled at Setup > Chatter > Chatter Settings.

    Chatter settings

  3. The Chatter component is available on Flexipages.

    Chatter component loaded

How to enable the debug mode

  1. From Setup, click Custom Code, then select Custom Metadata Types.

  2. On the list with custom metadata types, locate InCountry Flags and click Manage records for it.

  3. Add a new entry: DEBUG_MODE_ENABLED.

    Debug mode flag

  4. From Setup, click Objects and Fields, then select Object Manager.

  5. On the list with objects, locate the User object and click it to open.

  6. On the navigation sidebar, select Fields & Relationships.

  7. On the list with fields, locate the InCountry Debug Mode (DebugMode__c) field and click it.

  8. Ensure that FLS is configured for your user.

    InCountry debug mode

  9. From Setup, click Objects and Fields, then select Object Manager.

  10. On the list with objects, locate the User object and click it to open.

  11. On the navigation sidebar, select User Page Layouts.

  12. Add the DebugMode__c field to the user page layout.

    User page layouts

  13. In the top right part of the screen, click your user avatar.

  14. Select Settings.

    User profile menu

  15. On the navigation sidebar, select Advanced User Details.

    Advanced User Details

  16. Click Edit.

  17. In the InCountry Debug Mode box, select Replication.

    Additional information block

How to use the debug mode

  1. Select the regulated object and go to the corresponding list view for it.

    Accounts list

  2. Click New and create a new record.

    New test account

  3. Click Save and take a note that regulated data has not been saved to the Salesforce database.

    Account details

  4. Copy the record id from the URL and select the Find in InCountry tab.

  5. Ensure that the record has not been created yet on the InCountry platform.

    Find in InCountry block

  6. Append the _debug snippet to the record id and ensure that the debugged record has been created on the InCountry platform. Such record retains a Salesforce Apex memory stamp. This information will be used during the next steps.

    Found record

  7. Return to the created record, scroll down to the Chatter component and find the following message.

    Chatter - post

  8. The message says that the pre-commit was performed, but the record has not been synchronized yet. Click the link below the message. You will be redirected to the Debug Mode Visualforce page.

    InCountry Debug Mode - Output

  9. On the opened page, you can view the synchronization status. Click Synchronize Record.

    InCountry Debug Mode - Output more

  10. You will see a request to the InCountry platform and a response from it. Now, return to the Find in InCountry tab and ensure that the record has been created.

    Find InCountry - records

  11. Return to the record and ensure that it still remains in the pre-commit state.

    Account details sync status

  12. Check the next Chatter post.

    Chatter post

  13. Navigate to the page again. Click Perform Post-commit. You will see a request to the Salesforce database and a response from it.

    Debug console

  14. Return to the record and ensure that it is in the post-commit state (a regulated/protected value should be in Salesforce).

    Record committed

← Using Email-to-Case featureMigrating data from one Salesforce organization to another →
  • Prerequisites
  • How to enable the debug mode
  • How to use the debug mode
InCountry logo blue
© InCountry 2022.
All rights reserved. InCountry, Inc
  • PRIVACY POLICY
  • TERMS OF SERVICE
  • Social share
    • YouTube logo
    • Facebook logo
    • Twitter logo
    • LinkedIn
  • Column 1
    • Products
      • Products
        • InCountry for Salesforce
        • Data Residency-as-a-Service
        • Alibaba Cloud InCountry Service
        • Compliance and security
      • Gateways
        • Email
        • Payment Vault
        • Web Forms
        • HTML
      • Developers
        • REST API
        • SDK
  • Column 2
    • Solutions
      • Automotive
      • Energy
      • Financial services
      • Healthcare
      • Retail
      • Technology
    • Integrations
      • Cegid
      • Intertrust
      • MuleSoft
      • PayPal
      • Salesforce
      • ServiceNow
      • Stripe
      • Veeva Systems
      • Yandex
  • Column 3
    • Resources
      • Country compliance
      • Documentation
      • Library
      • Partners
      • Pricing
    • About
      • News and Blog
      • Careers
      • Contact Us
      • FAQ
      • Leadership