@fehbqhbi1 

but core_company_id extends from core_company then why not make your variable refer to this new table?

what's your actual business requirement here?

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader