Attaches a stored document (DocumentRegistrations) to a row: linked_table names the kind of row by its old table code, and the key columns hold that row's key. There is no real link to the row. Expanding DocumentLinks on an entity also returns links of other kinds with the same key: filter on linked_table here instead.
Label in Fledge: Koppelingstabel documenten
| URL | https://odata-api.fledge.nl/v2-8/DocumentLinks |
|---|---|
| Key | administration_idcharacter_id_1character_id_2document_registration_idinteger_id_1integer_id_2integer_id_3linked_table |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISURENPC |
| Write licenses | BASIS |
| Scopes | FLEDGE_PORTALFLEDGE_TERMINAL |
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/DocumentLinks" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=character_id_1,character_id_2,document_registration_id,integer_id_1,integer_id_2,integer_id_3,linked_table,type,date_changed,date_created' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/DocumentLinks');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'character_id_1,character_id_2,document_registration_id,integer_id_1,integer_id_2,integer_id_3,linked_table,type,date_changed,date_created');
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/DocumentLinks" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("character_id_1,character_id_2,document_registration_id,integer_id_1,integer_id_2,integer_id_3,linked_table,type,date_changed,date_created"),
"$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/DocumentLinks(administration_id=1,character_id_1='{character_id_1}',character_id_2='{character_id_2}',document_registration_id={document_registration_id},integer_id_1={integer_id_1},integer_id_2={integer_id_2},integer_id_3={integer_id_3},linked_table='{linked_table}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
document_registration_idkey | Int32 | Nummer |
character_id_1key | String | Character nummer 1 The row's text key, such as the order or article number; depends on linked_table. |
character_id_2key | String | Nummer2: Character nummer 2 A second text key; usually empty. |
linked_tablekey | String | Gerelateerde tabel The kind of row, as a four-letter table code: part article, prel relation, pdeb customer, pcrd supplier, vorh sales order, vobr sales order line, vohs historic sales order, vofh quotation, vofr quotation line, torh production order, tors assembly, torb operation, phhs historic production order, ikwh purchase order, ikwr purchase order line, iohs historic purchase order, iofh purchase quotation, ifch purchase invoice, ifbh invoice booking proposal, popc supplier open item, popd customer open item, mdwa employee, sobj service object, mcfg e-mail template (its standard attachments), clch parts list, tofh quote calculation. |
integer_id_1key | Int32 | Nummer3: Integer nummer 1 The row's number key, such as the line, relation or customer number; depends on linked_table. |
integer_id_2key | Int32 | Nummer4: Integer nummer 2 A second number key; usually 0. |
integer_id_3key | Int32 | Nummer5: Integer nummer 3 A third number key; usually 0. |
changed_by_user_code | String | Gebr.wijzig: Gebruikerscode van gebruiker wijziging |
changed_by_user_id | Int32 | Gebruiker wijziging: Gebruiker laatste wijziging |
created_by_user_code | String | Gebr.aanm.: Gebruikerscode van gebruiker aanmaak |
created_by_user_id | Int32 | Gebruiker aanmaak |
date_changed | Date | Datum wijziging |
date_created | Date | Datum aanmaak |
description_1 | String | Omschrijving 1 |
description_2 | String | Omschrijving 2 |
description_3 | String | Omschrijving 3 |
is_printed_automatically | Boolean | Automatisch printen (j/n) |
memo | String | Memo |
type | Int32 | Type A number whose values aren't documented. |
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 | |
|---|---|---|
DocumentRegistration | DocumentRegistrations | one |