How to automatically add workstation entry in Workstation_Fields table?

How to automatically add workstation entry in Workstation_Fields table?

So when a new workstation is added to SDP it is given a unique WORKSTATIONID and entry in the SystemInfo table but it does not create an entry in the Workstation_Fields table until you edit the asset in the GUI and make a change/addition to a custom field. This is causing a problem with automation we wrote that updates UDF_CHAR columns in Workstation_Fields if it doesn't exist.  Our automation updates Workstation_Fields based on an SQL update statement that joins SystemInfo to Workstation_Fields so we know we are working with the right asset.

So my question is, how can we automate the create of a row in Workstation_Fields when the WorkstationID is present in SystemInfo?

                  New to ADSelfService Plus?