Create an auth link for an Ascora job
Create Auth Link makes one link for one Ascora job. You choose the form and service, find the job by its number, say whether the customer adds a visit or moves one, and set when the link stops working. The page is reached from Create Auth Link on the Auth Links list.
Before you start
- The Geosearch plan. Without it the page shows "Geosearch subscription required."
- An Ascora credential chosen for bookings. Without one the page says "Choose which Ascora credential bookings use before making an auth link." with a Choose credential button.
- A form with Allow bookings to existing jobs on in its properties, and a service or a default calendar. Without one the page says "An auth link books on one of your forms. The form needs Allow bookings to existing jobs turned on in its properties, and a service or a default calendar." with a link to Forms. A form with no service of its own books on its default calendar, set on Service Calendars.
- The job has to be open in Ascora. Ascora does not book or move visits on a job that is Completed, Ready To Invoice, Closed or Cancelled, and the page says so when you find one.
Step by step
- Under Form and service, choose the Booking form, then the Service. The service sets the staff, calendar and length of the visit, and the customer only picks a time. A form with no services of its own has no service to choose, and uses its default calendar.
- Under Ascora job, type the job's number in Job number as Ascora shows it, such as
J1234, and click Find job. A Section or Stage has its own number, such asJ1234.01. Enter finds the job too. The page shows the job's number and name, the customer, the site address and the job's status. Choose another job starts again. - Under What the customer does, choose Add a new visit or Move an existing visit (see below).
- Under Link settings, set Expires after and One-time link.
- Optionally check the Contact.
- Click Create Auth Link. The page opens the new link.
If Ascora has no such job the page says "Ascora has no job J1234." If Ascora does not answer it says so, and if no credential is chosen it says "Choose an Ascora credential under Settings first."
Add a new visit or move one
Add a new visit: the customer picks a time and a visit is added to the job, for the staff the service offers at that time.
Move an existing visit: the customer picks a new time for one of the job's visits. Choose the visit under Visit to move. The list shows only visits still to come, by the company's clock, and shows the date, time, person and any note. A job with sections or stages also lists their visits, marked with their own number. Move an existing visit is greyed out when the job has no upcoming visits, and the page says "This job has no upcoming visits to move, so only a new visit can be added."
Only visits booked against a job can be moved. A booking Ascora holds for a quote, or an Activity such as Lunch, is not listed.
Moving changes the visit in Ascora in place. It does not make a second visit and archive the first. The other bookings on the same job at the same time move with it, so a team that was booked together stays together. When the customer's new time suits a different person, the visit goes to that person. Anyone the form puts on the visit who has no booking on the job at the new time is booked. If the form has Refuse a booking that clashes in Ascora on (see Calendar Options) and someone booked has something else on the Scheduler then, Ascora refuses the move and the visit stays where it was.
Link settings
Expires after offers 24 hours, 3 days, 7 days, 14 days and 30 days, and starts at 7 days. After that the link opens nothing.
One-time link stops the link working after its first booking. A link that is not one time can be used again until it expires.
Contact
Contact (optional) has Name, Email and Phone. They are kept with the link for your own reference, and the email is where Messages sends the link. They fill in from the job's site contact in Ascora when it has one, with the mobile number before the phone number, until you type your own. An email that is not a valid address stops Create Auth Link with "The contact email is not a valid address."
Make several links from a spreadsheet
Import on the Auth Links list takes an Excel or CSV file, up to 200 rows at a time, in three steps: Upload, Map Fields and Preview. Download example template gives a file to start from.
- Upload the file.
- Under Map Fields, choose the Form to create links for and its Service, then say which column is which. Only Job Number has to be mapped. The other columns are Booking ID, Contact Name, Contact Email, Contact Phone, Expiry (days) and One time. Default expiry and One time use link apply to rows that do not map their own.
- The page looks each job up in Ascora, then Preview shows each row as ready or with why it was not made.
Each row names a job by its number, and the customer, site and contact are read from the job. A row adds a new visit, or moves a visit when it has a Booking ID that is one of the job's upcoming visits. A row with no contact takes the job's site contact. One time takes yes, y, true or 1.
A row is turned away with one of these:
- "No job number"
- "Job J1234 was not found in Ascora"
- Job J1234 is Completed, Ready To Invoice, Closed or Cancelled
- "This job has no customer in Ascora"
- "Booking ... is not an upcoming visit on this job"
- "This job already has an open link"
- "This job is repeated in the file"
- "The contact email is not valid"
- "The expiry is not a number of days"
Rows that were not made are kept with their reasons so you can fix them in the sheet and import again. Each row costs Ascora a few reads, and Ascora counts them against the whole company's allowance of 2,000 reads a minute, which is why a big sheet is done in parts.
How it maps to Ascora
Making a link writes nothing to Ascora. It saves the link in Formpiece with the job's id and number, the customer and site customer ids, the site contact, the booking to move, and the job's name, customer and site address as they were when you made it.
| What happens | Ascora call |
|---|---|
| Finding the job | GET /Jobs/Job/{number} |
| Listing the visits to move | GET /Bookings/Bookings for the job |
| Reading the site contact | GET /Customers/Contact/{id} |
| When the customer books: adding a visit | POST /Bookings/Booking on the job |
| When the customer books: moving a visit | POST /Bookings/Booking with the visit's bookingId and adjustRelatedBookings |
The booking also adds the customer's notes and any custom fields to the job the same way an ordinary booking does, and takes the visit's Geosearch drives off the Scheduler when it moves a visit (see Geosearch on a form). The Ascora key needs the jobs, customers and schedule scopes that bookings already use.
When it goes wrong
"Ascora has no job J1234."
Check the number as Ascora shows it. A Section or Stage needs its own number.
Move an existing visit is greyed out
The job has no visit still to come, or Ascora could not list them. The page shows "The job's visits could not be loaded." in that case.
The customer opens the link and sees "This booking link can no longer be changed online."
The visit the link names has been archived or taken off the job since the link was made. Make a new link.
The booking was refused with "BOOKING-CONFLICT"
Someone booked has something else on the Scheduler at the new time. The visit is still at its old time. Clear the clash in Ascora, then send the booking again from its page, or arrange another time with the customer.