Skip to content

Employment Contract Document Flow

Overview

In order to generate an Employment Contract document, the system requires data from two main sources:

  1. Contact Person (Contact, it's candidate in this case) - containing personal information
  2. Employment Contract Object (msf__Employment_Contract__c) - containing contract-specific details

Required Fields

Contact Person Fields (Contact SF object)

  • firstname - First name of the contact
  • lastname - Last name of the contact
  • birthdate - Date of birth
  • msf__place_of_birth__c - Place of birth

Current Home Address (msf__Person_Address__c SF object)

  • msf__street__c - Street address
  • msf__postal_code__c - Postal code
  • msf__city__c - City
  • msf__country__c - Country

Employment Contract Object Fields (msf__Employment_Contract__c SF object)

  • msf__start_date__c - Contract start date

XML Structure

The complete XML structure for the Employment Contract document generation:

<root>
    <msf__Employment_Contract__c>
        <ContactPerson>
            <firstname/>
            <lastname/>
            <Current_Home_Address>
                <msf__street__c/>
                <msf__postal_code__c/>
                <msf__city__c/>
                <msf__country__c/>
            </Current_Home_Address>
            <birthdate/>
            <msf__place_of_birth__c/>
        </ContactPerson>
        <msf__start_date__c/>
    </msf__Employment_Contract__c>
</root>