I've been trying to execute a piece of code to filter the Lookup on the Business Process Flow and I'm trying to access the field but the Xrm.Page.getControl("header_process_new_referenceid")
is returning null all the times, even though i'm on the correct stage when the form is loaded.
Also looked at this previous post but with no actual answer- Cannot access header or business process flow controls on a CRM form