Queues an email that shares an inspection record with users, contacts, ad-hoc addresses or broker distribution lists.
The email is sent shortly after the request returns, so a successful response means the email was queued, not delivered. If the inspection does not exist or has been deleted, nothing is sent and no error is returned. Each recipient receives a separate copy and cannot see the other recipients. The email is sent from the current user's connected mailbox when one is available, and from crmSeries's email service otherwise. When `ViewType` is `BrokerView`, each contact in `DistributionLists` receives a separate Broker Offer email with a link to the broker offer form, and the send is recorded in the broker email history. In crmSeries test environments, emails go only to `@crmseries.com` addresses and the subject is prefixed with the environment name.
/api/v2/inspections/record/send-inspection-emailAuthentication
Choose one supported method for this request.
Request body
The email details: * InspectionId: the assigned inspection to share. * Subject: the email subject. Used when the notification template does not set a subject. * Users, Contacts: IDs of users and contacts to email. * Recipients: additional email addresses. * DistributionLists: broker distribution list IDs. Used when ViewType is BrokerView. * ViewType: the view the link and PDFs are built for, such as PublicView or BrokerView. * AttachPDF: attaches the inspection PDF when true. * AttachedUCReading: the ID of an undercarriage reading to attach as a PDF. Use 0 for none. * Comments: text inserted into the email body.
inspectionIdinteger · int32requiredsubjectstringrequireddistributionListsinteger[]contactsinteger[]usersinteger[]attachedUCReadinginteger · int32includeFluidLifebooleancommentsstringrecipientsstring[]viewTypestringattachPDFbooleanrequired
Responses
The email was queued.
isSuccessmessageerrorsdataRead the result from data. When isSuccess is false, errors lists what went wrong. Handling errors