• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

PrenticeWorx

Microsoft Dynamics Vendor

  • Home
  • About Us
    • Why PrenticeWorx?
    • Executive Team
    • Customers & Testimonials
    • Technologies
    • Contact Us
  • Solutions
    • Sales
    • Marketing
    • Service
    • Financial Accounting
    • Portals
    • Business Intelligence
    • Integration
    • Custom
  • Industries
  • Resources
    • Downloads
  • Blog
  • Contact Us

November 18, 2016 By Ken Auton

Use queryAll() in SalesForce Scribe Insight Migration to Access all Task and Event Records

  • All Posts
  • Sales, Service and Marketing
  • Custom Development
  • Tech Tips

What is queryAll()?

In a SalesForce.com to CRM migration you might notice that you are not getting all of your Tasks and Event records, because they are archived. Using queryAll() allows you to access these records. See the following SalesForce.com excerpt (emphasis added):

Usage

Use queryAll to identify the records that have been deleted because of a merge or delete. queryAll has read-only access to the field isDeleted; otherwise it is the same as query().

To find records that have been deleted (in preparation for undeleting them with the undelete() call), specify isDeleted = true in the query string, and for merged records, request the masterRecord.

You can use queryAll() to query on all Task and Event records, archived or not. You can also filter on the isArchived field to find only the archived objects. You cannot use query() as it automatically filters out all records where isArchived is set to true. You can update or delete archived records, though you cannot update the isArchived field. If you use the API to insert activities that meet the criteria listed below, the activities will be archived during the next run of the archival background process.

How to Set queryAll() in Scribe Insight

To set queryAll() in Scribe Insight use the following SQL on the SCRIBEINTERNAL database, KSYNC table (Scribe Forum Referece):

If exists (Select Top 1 * From [SCRIBEINTERNAL].[SCRIBE].[KSYNC] Where Section = 'ADAPTERS' And KeyName = 'SFDCADAPTER.UseQueryAll')
Update [SCRIBEINTERNAL].[SCRIBE].[KSYNC] Set KeyValue = 'True' Where Section = 'ADAPTERS' And KeyName = 'SFDCADAPTER.UseQueryAll'
Else
Insert Into [SCRIBEINTERNAL].[SCRIBE].[KSYNC] Values('ADAPTERS','SFDCADAPTER.UseQueryAll', 'True');

Be aware that now you have access to the isDeleted and isArchived attribute that you can use to filter your source queries.

Filed Under: All Posts, Tech Tips

Ken Auton

Primary Sidebar

Topics

Sales, Service & Marketing
Custom Development
Tech Tips

Latest Articles

  • Landed Cost (Item Charges) in Business Central 
  • Optimizing Your Amazon Sales Strategy: A Guide to Sales Channels and Business Central Integration
  • Build Your Business One Step at a Time With Microsoft Dynamics 365
  • Understanding the “Feedback” feature in Microsoft Dynamics CRM
  • Use queryAll() in SalesForce Scribe Insight Migration to Access all Task and Event Records

Contact Us

Got questions?

We're here to help you get started!

  • This field is for validation purposes and should be left unchanged.

Contact PrenticeWorx: 721 N Main, #265, Layton, UT 84041 | Email: info@prenticeworx.com | Phone: 385-202-4003

Copyright © 2025 PrenticeWorx · All rights reserved.