This Cornerstone Appointment Scheduler snippet shows how to schedule from an invoice.