Create Visit Request Input

Input representation of the create visit request.
Root XML tag
<CreateVisitInput>
JSON example
{
"visitType": "08qSG00000017VhYAI",
"place": "131SG0000006yazYAA",
"plannedVisitStartTime": "2023-12-28T09:07:21.205-07:00",
"status": "Planned",
"account": "001SG00000Cq7T8YAJ",
"visitor": [
{
"user": "005SG000003Z0p9YAC",
"primary": true
}
],
"productRequired": [
{
"productId": "01tSG000000KOxRYAW",
"quantity": 1
}
]
}
Properties
Name Type Description Required or Optional Available Version
account String ID of the account that is associated with a visit. Required 55.0
actionPlanTemplate Action Plan Template Input Represents the details of an action plan template. Action plan templates define the sets of tasks that your sales reps perform during visits. Optional 55.0
context String Purpose of the visit, such as claim or work type. Optional 55.0
place String Indicates the place that sales representatives visit. Required 55.0
plannedVisitEndTime String Date and time when the visit is expected to end. Optional 55.0
plannedVisitStartTime String Date and time when the visit is expected to start. Required 55.0
productRequired Product Required Attributes Input[] Represents the products required for the visit. Required 55.0
status String Indicates the status of the visit.
Valid values are:
  • Abondoned
  • Completed
  • InProgress
  • Planned
Optional 55.0
statusRemarks String Additional remarks or comments provided by the sales representatives. Optional 55.0
visitPriority String Priority of the visit.
Valid values are:
  • High
  • Low
  • Medium
Optional 55.0
visitType String ID of the visit type. This field is a lookup to the Worktype object. Optional 55.0
visitedParty Visited Party Attributes Input[] Represents the contacts from the customer organization who are being visited. Optional 55.0
visitor Visitor Attributes Input[] Represents the service resources from the organization who are executing the visit. Required 55.0