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

URLhttps://odata-api.fledge.nl/v2-8/DocumentLinks
Keyadministration_idcharacter_id_1character_id_2document_registration_idinteger_id_1integer_id_2integer_id_3linked_table
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISURENPC
Write licensesBASIS
ScopesFLEDGE_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

FieldTypeDescription
administration_idkeyInt32Administratienummer
document_registration_idkeyInt32Nummer
character_id_1keyStringCharacter nummer 1

The row's text key, such as the order or article number; depends on linked_table.

character_id_2keyStringNummer2: Character nummer 2

A second text key; usually empty.

linked_tablekeyStringGerelateerde 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_1keyInt32Nummer3: Integer nummer 1

The row's number key, such as the line, relation or customer number; depends on linked_table.

integer_id_2keyInt32Nummer4: Integer nummer 2

A second number key; usually 0.

integer_id_3keyInt32Nummer5: Integer nummer 3

A third number key; usually 0.

changed_by_user_codeStringGebr.wijzig: Gebruikerscode van gebruiker wijziging
changed_by_user_idInt32Gebruiker wijziging: Gebruiker laatste wijziging
created_by_user_codeStringGebr.aanm.: Gebruikerscode van gebruiker aanmaak
created_by_user_idInt32Gebruiker aanmaak
date_changedDateDatum wijziging
date_createdDateDatum aanmaak
description_1StringOmschrijving 1
description_2StringOmschrijving 2
description_3StringOmschrijving 3
is_printed_automaticallyBooleanAutomatisch printen (j/n)
memoStringMemo
typeInt32Type

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.

NavigationEntity set
DocumentRegistrationDocumentRegistrationsone
Wingman