Oaths, affidavits and depositions, in any cause, matter or proceeding in any court of record, may also be taken before any person appointed by the court for that purpose or before any person upon whom the parties agree by stipulation in writing or on the record.
MCL 600.1442