Benefit Schedule Sessions Preview (POST)

Create a preview of the benefit scheduling session. Users can preview the benefit sessions before they are created.

Resource 

1/connect/program-mgmt/benefit-schedules

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/connect​​/program-mgmt/benefit-schedules

Available Version 

57.0

HTTP Methods 

POST

Request Body for POST 

<PreviewBenefitSessionInputRepresentation>

JSON Example 

1{
2  "benefitScheduleName": "Nov Weekday schedule",
3  "firstSessionStartDate": "2022-11-14T14:30:00.000",
4  "firstSessionEndDate": "2022-11-14T15:00:00.000",
5  "scheduleFrequency": "Weekly",
6  "scheduleDays": 96,
7  "mode": "dryRun",
8  "noOfSessions": 5,
9  "totalRecurrencesCount": 10
10}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
benefitScheduleNameStringThe name of the benefit schedule.Required57.0
firstSessionEndDateStringThe date and time when the first session ends in the benefit schedule.Required57.0
firstSessionStartDateStringThe date and time when the first session starts in the benefit schedule.Required57.0
modeStringThe mode of the benefit schedule. The dryRun mode indicates that no data is created.Optional57.0
noOfSessionsIntegerThe maximum number of participants in a session. Default value is 5.Optional57.0
scheduleDaysIntegerThe number of days in a week when the benefit schedule is executed.Optional57.0
scheduleEndDateStringThe date when the benefit schedule ends.Optional57.0
scheduleFrequencyStringThe frequency at which the benefit schedule is executed.Optional57.0
totalRecurrencesCountIntegerThe number of times the benefit schedule is executed.Optional57.0

Response Body for POST 

Preview Benefit Sessions Output