Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Regarding the SAMP usage/SAMP 2016 usage datasource - Where is the data coming from as there is no Field Mapping in the SAMP usage import Transform - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Regarding the SAMP usage/SAMP 2016 usage datasource - Where is the data coming from as there is no Field Mapping in the SAMP usage import Transform
KB0830198

Regarding the SAMP usage/SAMP 2016 usage datasource - Where is the data coming from as there is no Field Mapping in the SAMP usage import Transform


868 Views Last updated : Jan 3, 2025 public Copy Permalink
KB Summary by Now Assist

Summary

The SAMP Usage job is designed much differently than a standard import, the test load from the Data Source record would not produce the same results.

The integration will not change the state or list a target record when viewed from the Import Set.

Additionally, each time it runs, the sql_statement in the Data Source record will be reset to the below query:
SELECT 1 from v_MonthlyUsageSummary where 1=0

This is only a placeholder however. The actual query used against the SCCM servers and the incorporation of usage data is actioned through the SAMPUsageUtil Script Include, but only when executed by the system scheduler.
The actual query that would be used is as below:
SELECT TimeKey, TSUsageCount, UsageCount, UsageTime, LastUsage, ResourceID, MU.FullName as UserName, PFI.FileName FROM v_MonthlyUsageSummary MUS LEFT JOIN v_ProductFileInfo PFI on MUS.FileID = PFI.FileID LEFT JOIN v_MeteredUser MU on MUS.MeteredUserID = MU.MeteredUserID WHERE FileName IN (...


Related Links

The query is constructed through the below Script Include:
SAMPUsageUtil
https://<instance-name>.service-now.com/sys_script_include.do?sys_id=7ab34982cb632200f2de77a4634c9c2a

The SAMPUsageUtil is triggered by a pre-script included within SAMP Usage Import scheduled data import:
https://<instance-name>.service-now.com/sys_transform_map.do?sys_id=621535c7cb122200f2de77a4634c9cba


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.