The CreatorCon Call for Content is officially open! Get started here.

Can Data Lookup definitions run on load of form?

Pritam_Pawar225
Tera Contributor

as I have created a data lookup definition to populate the field of manager from sys_user table to the variable of catalog item "manager" so it is populating on change of requested for user and not on load means if I impersonate any user which have manager and load the catalog item form it is not populating but if I change it is populating.

please go through the snapshot I have added

4 REPLIES 4

AnubhavRitolia
Mega Sage

Hi @Pritam_Pawar225 

 

Data Lookup Definition work based on the field value and not based on Logged in user

 

So Manager will be populated based on Requested for selected. If you Auto populate 'Requested For' on load, it will work but not with blank value or logged in user value.

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

Requested for is Auto populating  only as I logged in with user who have manager but the manager field is not.

Harish KM
Kilo Patron
Kilo Patron

Hello why dont you use autopopulate feature

HarishKM_0-1691657494367.png

 

Regards
Harish

it is not available at my instance for varable set