IntegrationHub usage transactions count

sieusaopolo15
Tera Guru

Hi,

In my instance I just found out there is something called IntegrationHub usage and there is a field called "Use count". I want to how this "Use count" field counts in IntegrationHub usage. Is there any code or script include related or the system counts by itself ?

sieusaopolo15_0-1695535725566.png

 

 

6 REPLIES 6

Danish Bhairag2
Tera Sage
Tera Sage

Hi @sieusaopolo15 ,

 

the "Use Count" field in the Integration Hub Usage [sys_hub_usage] table is automatically updated to track the number of times a specific Integration Hub spoke or action has been executed. This field helps you monitor the usage of your integrations. Here's how it works:

 

1. **Automated Tracking:** The "Use Count" field is updated automatically by the Integration Hub framework each time a spoke or action is invoked or used as part of an integration flow.

 

2. **Incremental Increase:** Each time the spoke or action is used, the "Use Count" is incremented by one.

 

Below articles provide some insight on Integration hub usage count.

https://www.servicenow.com/community/developer-blog/integrationhub-usage-also-counts-integrations-tr....

 

Please mark my answer helpful & accepted if it addresses your question.

 

Thanks,

Danish

 

Hi @Danish Bhairag2 , thanks for the information you gave me it is what I need to understand how the field works but after testing and observe I came to conclusion that the field is not immediately updated by system when I executed some Flow Action or Flow in Flow Designers. It would take some times for the field to be updated. May I ask is there any scheduled job which will update this field in the instance ?

Riya Verma
Kilo Sage
Kilo Sage

Hi @sieusaopolo15 ,

 

Hope you are doing great.

 

To view the "Use count" field:

  1. Navigate to IntegrationHub Usage:

    • Go to your ServiceNow instance.
    • In the application navigator, type "IntegrationHub Usage" and select it from the list.
  2. Once you're in the IntegrationHub Usage module, you should be able to see a list of integration actions along with their respective "Use count" values.

  3. The "Use count" field represents how many times each integration action has been executed. This is automatically incremented by the system every time the action is triggered.

  4. You do not need to write any code or script to track the "Use count". The system handles this automatically.

 
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma

Hi @Riya Verma , thanks for the information it very helpful. But there is one more thing I'm very curious about which is the update time of this field. When I execute an action it doesn't increase immediately, but after a time it automatically update the field's value. Is there any scheduled job executes for this or it's just simply the system needs more time to calculate the number of action executions I've just made ?