An affidavit may be read to verify a pleading; to prove the service of a summons, notice, or other process in an action; to obtain a provisional remedy, a stay of proceedings, or a warning order, upon a motion; and in any other case permitted by law.