AddLetter (eNadawca)
This function will add new letter
Syntax
AddLetter("Company","Department", "Receiver", "Street", "[House number]" , "[Apartment number]", "City", "Postal code", "Country", "[Phone number]", "[Mobile number]", "[Email]", "Type", "[Category]", "[Format]", "[Gauge]", "[Mass]", "[Confirmation]", "[Description]", "[Label]", "[Office number]", "[Date of posting]", "[Value of letter]", "Field for posting number", "Field for parcel status");
Function arguments
- Company – (String) Name of the company
- Department – (String) Name of the department
- Receiver – (String) Name and Surname of the receiver
- Street – (String) Street name of the recipent
- House number – (String) [Optional] Number of the house
- Apartment number – (String) [Optional] Number of the apartment
- City – (String) Name of the city
- Postal code – (String) Postal code number
- Country – (String) Name of the country
- Phone number – (String) [Optional] Phone number
- Mobile number – (String) [Optional] Mobile phone number
- Email – (String) [Optional] Email address
- Type – (String) [Optional] Type of letter
- Category – (String) Catgory of parcel
- Format – (String) Format of parcel (S, M, L)
- Gauge – (String) Gauge of parcel
- Mass – (Decimal) [Optional] Parcel weight
- Confirmation – (Boolean) [Optional] Sending confirmation
- Description – (String) [Optional] Parcel description
- Label – (Boolean) [Optional] Print label
- PostOffice number – (Decimal) [Optional] Postoffice number
- Date of posting – (DateNoTime) [Optional] Predicted date of posting
- Value of letter – (Decimal) [Optional] value of letter in (grosze)
- Field for posting number – (String) [Optional] Field for posting number
- Field for parcel status – (String) [Optional] Field for parcel status. Returned values: Sended, ReadyToSend
Return value
This function returns String.
Returns empty string if letter has been added
Examples
Example 1:
AddLetter("Company","Department", "Receiver", "Street", "[House number]" , "[Apartment number]", "City", "Postal code", "Country", "[Phone number]", "[Mobile number]", "[Email]", "Type", "[Category]", "[Format]", "[Gauge]", "[Mass]", "[Confirmation]", "[Description]", "[Label]", "[Office number]", "[Date of posting]", "[Value of letter]", "Field for posting number", "Field for parcel status")