# Immediately refresh user source data in perspective

**URL:** <https://forum.inductiveautomation.com/t/immediately-refresh-user-source-data-in-perspective/81641>\
**Category:** Ignition\
**Tags:** database, ignition81, perspective, scripting\
**Created:** [November 8, 2023, 6:54am UTC](https://forum.inductiveautomation.com/t/immediately-refresh-user-source-data-in-perspective/81641 "2023-11-08T06:54:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priyanka.Khandge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/priyanka.khandge/32/35989_2.png) [@Priyanka.Khandge](https://forum.inductiveautomation.com/u/Priyanka.Khandge)\
**Post date:** [November 8, 2023, 6:54am UTC](https://forum.inductiveautomation.com/t/immediately-refresh-user-source-data-in-perspective/81641/1 "2023-11-08T06:54:23Z")

</div>

Hi Guys,

I have tried to refresh user source data immediately when I insert or update a record using the message handler but it does not work.

In my case get the user details from the gateway user source in the perspective table. user source created using **Database** type. When I insert or update a record, it is first updated in the MSSQL database then the gateway user source.

Here immediately refreshes insert/updated data in the database but immediately not refresh in the gateway.

Any idea how to refresh immediately in the gateway user source?

Thanks,  
Priyanka
