Client state parameter VS Data resources

VaibhavP5059517
Tera Contributor

Difference between client state parameter and data resources in ServiceNow UI Builder

1 ACCEPTED SOLUTION

Tanushree Maiti
Kilo Patron
FeatureClient State ParametersData Resources
Primary PurposeServe as page-level variables to handle local UI state (such as toggles, counters, or form field values).Function as a connector to retrieve, modify, or process data from the ServiceNow backend.
Data SourceStored entirely in the browser memory during the session.Interacts with the server (databases, APIs, or scripts).
Typical Use CaseManaging UI behavior like visibility, holding search inputs, or applying instant changes without reloading.Fetching records, querying specific data (e.g., users), or performing updates on backend records.
Trigger MechanismUpdated through user actions (e.g., button clicks) or client-side scripts.Executes on page load, when input parameters change, or when triggered manually.
LocationRuns on the client sideInvolves server/API communication
PerformanceHighly responsive (no network calls)Relatively slower due to API/network calls

 

 

Refer:

Client state parameters

All About Data Resources in UI Builder

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

View solution in original post

1 REPLY 1

Tanushree Maiti
Kilo Patron
FeatureClient State ParametersData Resources
Primary PurposeServe as page-level variables to handle local UI state (such as toggles, counters, or form field values).Function as a connector to retrieve, modify, or process data from the ServiceNow backend.
Data SourceStored entirely in the browser memory during the session.Interacts with the server (databases, APIs, or scripts).
Typical Use CaseManaging UI behavior like visibility, holding search inputs, or applying instant changes without reloading.Fetching records, querying specific data (e.g., users), or performing updates on backend records.
Trigger MechanismUpdated through user actions (e.g., button clicks) or client-side scripts.Executes on page load, when input parameters change, or when triggered manually.
LocationRuns on the client sideInvolves server/API communication
PerformanceHighly responsive (no network calls)Relatively slower due to API/network calls

 

 

Refer:

Client state parameters

All About Data Resources in UI Builder

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: