Use SOQL over AltSync for the FieldFX Mobile App
FieldFX offers two ways on how Salesforce records get synced to mobile devices.
AltSync | Salesforce Object Query Language (SOQL) |
---|---|
This way uses a special checkbox added to key FieldFX objects. If the checkbox is checked (manually or automatically from triggers or nightly processes), a record is marked to sync to mobile. The main purpose is to limit the number of records sent to only those that were set to active or used recently. This method works on a record-by-record basis relating to activity. Inactive records are automatically dropped from the mobile sync. |
This way doesn’t rely on a per-record flag. With SOQL, you can write a query to pull exactly the records you need based on your defined conditions. You can selectively retrieve only the relevant fields and records, filtering and sorting data in one step. |
SOQL filters are preferred over AltSync filters because of:
-
Selective Retrieval: A query you write only returns the records (and even just the fields) you need. Mobile devices aren’t overloaded with unnecessary data.
-
Efficiency: SOQL is designed to work within Salesforce’s limits (often called governing limits) and allow you to filter records in bulk rather than single one-by-one processing (as in using the AltSync flag).
-
Flexibility: You can adjust the query criteria with your changing business needs. Otherwise, with AltSync, you depend on a fixed sync flag which might not cover every scenario.
Verify which Transactional Objects are Syncing
|
|
|
|
|
|
Continue with Transition from AltSync to SOQL.
Transition from AltSync to SOQL
Depending on your business processes and the setup of your FieldFX org, these steps may be more complicated or simpler than described. When using the FieldFX Mobile App, use SOQL instead of AltSync |
To transition to SOQL and not rely on AltSync, follow these basic processes so SOQL dynamically fetches the precise data for mobile sync:
-
Review Current AltSync Setup
-
Identify the objects and records currently using the AltSync field and related automations (such as triggers and nightly processes) to determine if they should sync
-
Note the existing criteria in use that you use to determine if a record is marked to sync
-
-
Define Data Criteria for Syncing
-
Analyze how you are using AltSync
-
Translate that logic into SOQL filter criteria so these queries return exactly the needed records
-
-
Disable AltSync Automation
-
When you are ready to convert, disable or remove the AltSync triggers or the scheduled processes which set the AltSync flag
-
If the AltSync field is no longer needed, plan to remove it only after ensuring no business process still relies on it.
-
-
Develop and Test SOQL Queries
-
Build the SOQL queries to mimic the AltSync logic you used.
-
Use can use Salesforce tools (like the Developer console or Query Editor) or FieldFX’s Sync Profile Wizard Admin Tool to create and test your queries. The admin tool has a built-in validation of SOQL syntax. Testing enables you to confirm if they are returning the correct records while still following best practices.
-
-
Update Integration or Mobile Sync Logic
-
Replace code or processes checking the AltSync field with your SOQL queries.
-
Ensure any mobile or integration components pull records directly via SOQL rather than reading the AltSync flag.
-
-
Perform Complete Testing and Validation
-
Validate your new SOQL-based queries return the correct dataset in both sandbox and test environments.
-
Monitor the performance and governor limit usage to ensure the efficiency of the queries
-