An e-mail template per kind of document and language: subject, text, cc and attachments.
Label in Fledge: Mailconfigurator
| URL | https://odata-api.fledge.nl/v2-8/EmailTemplates |
|---|---|
| Key | administration_idconfig_typeemail_template_idlanguage_code_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPP |
| Write licenses | BEHEER |
| Scopes | FLEDGE_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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
config_typekey | String | Gerelateerde 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_idkey | Int32 | Volgnummer |
language_code_idkey | Int32 | Taalkode The language; 0 is the template for any language. |
attachments | String | Attachments 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. |
bcc | String | Bcc |
cc | String | Cc |
document_category_id | String | Documentcategorie code |
filename | String | Bestandsnaam |
memo | String | Standaardtekst |
reply_to | String | Reply to |
subject | String | Onderwerp |
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.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
DocumentCategory | DocumentCategories | one |
LanguageCode | LanguageCodes | one |