Add, change and delete events and sessions (UpdateConnector KnCourseEvent)

UpdateConnector to add, change and delete events and sessions for courses.

UpdateConnector name: KnCourseEvent

Note: 

You can retrieve a list of fields to be supplied for each UpdateConnector and generate an XML example. See the description for AFAS Online or for a local installation.

Contents

Preparation
Description

Actions that can be performed with the connector

INSERT

Add records

Download an XML example file

UPDATE

Change records

Download an XML example file (change event)

Download an XML example file (change session)

DELETE

Delete records

Download an XML example file (delete event)

Download an XML example file (delete session)

These actions apply to both events and sessions.

Not possible with the connector:

  • Add sessions without events.
  • Add events without sessions.

Points of attention:

  • An event must contain at least one session (it can also have multiple sessions).
  • The IDs for the sessions start at 1 FOR EACH EVENT.
  • You can change records based on the 'EvenementID' and/or 'SessieID' fields.
  • To delete an event, you must first delete all corresponding sessions.

Example:

This example is an XML file to which you add an event with two sessions.

<KnCourseEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Element>

<Fields Action="insert">

<ItCd>MSExcel</ItCd>

<AuId>0</AuId>

<CrSn>MicrosoftExcel</CrSn>

<CrDs>Microsoft Excel cursus</CrDs>

<MiPt>4</MiPt>

<MaPt>10</MaPt>

<CrRm>Evenement opmerking</CrRm>

</Fields>

<Objects>

<KnSession>

<Element>

<Fields Action="insert">

<SeDa>YYYY-MM-DD</SeDa>

<SeDs>Sessie 1 opmerking</SeDs>

</Fields>

</Element>

<Element>

<Fields Action="insert">

<SeDa>YYYY-MM-DD</SeDa>

<SeDs>Sessie 2 opmerking</SeDs>

</Fields>

</Element>

</KnSession>

</Objects>

</Element>

</KnCourseEvent>

Directly to

  1. UpdateConnector descriptions