An e-mail template per kind of document and language: subject, text, cc and attachments.

Label in Fledge: Mailconfigurator

URLhttps://odata-api.fledge.nl/v2-8/EmailTemplates
Keyadministration_idconfig_typeemail_template_idlanguage_code_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISBASISAPP
Write licensesBEHEER
ScopesFLEDGE_PORTAL

Example requests

A page of rows, with only the fields you need. See Authentication for the token.

curl -G "https://odata-api.fledge.nl/v2-8/EmailTemplates" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=config_type,email_template_id,language_code_id,attachments,filename,bcc' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/EmailTemplates');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'config_type,email_template_id,language_code_id,attachments,filename,bcc');
url.searchParams.set('$top', '50');

const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();
var url = "https://odata-api.fledge.nl/v2-8/EmailTemplates" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("config_type,email_template_id,language_code_id,attachments,filename,bcc"),
    "$top=" + Uri.EscapeDataString("50"));

http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);

One row by its key:

GET https://odata-api.fledge.nl/v2-8/EmailTemplates(administration_id=1,config_type='{config_type}',email_template_id={email_template_id},language_code_id={language_code_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
config_typekeyStringGerelateerde tabel

The kind of document, as a table code: vofh quotation, vboh order confirmation, vplh picklist, vpbh delivery note, vfch sales invoice, aanm payment reminder, iofh purchase quotation, iboh purchase order, pknp a blank e-mail.

email_template_idkeyInt32Volgnummer
language_code_idkeyInt32Taalkode

The language; 0 is the template for any language.

attachmentsStringAttachments

Full paths of files sent with every e-mail of this template, separated by |. Documents linked to the template in DocumentLinks (linked_table mcfg) are sent too.

bccStringBcc
ccStringCc
document_category_idStringDocumentcategorie code
filenameStringBestandsnaam
memoStringStandaardtekst
reply_toStringReply to
subjectStringOnderwerp

Relations

Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.

NavigationEntity set
AdministrationAdministrationsone
DocumentCategoryDocumentCategoriesone
LanguageCodeLanguageCodesone
Wingman