1.In any GlideRecord query retrieve query using getEncodedQuery() 2.Apply this encoded query to create/update records (you can apply this query to other tables if query is appropriate). Before Running the script : After Running the script: