Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions markdownpages/endpoint/en/subjectconnector-get.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
---
date: 2026-09-07
title: SubjectConnector
---

To call the SubjectConnector, you need a `SubjectId` and `FileId`. You can request these ids using, for example, `ProfitSubjectsAuthorized` and `Profit_Subject_Attachments`.

The best practice here is to loop through the `Profit_Subject_Attachments` based on `ProfitSubjectsAuthorized`, as one dossier item can have multiple attachments. Then, for each row in `Profit_Subject_Attachments`, call the `SubjectConnector` with the received ids.

> Note 1: The name of an attachment can occur multiple times, including within a single dossier item or response. Take this into account when processing attachments.
>
> Note 2: If you receive a 404 (Not Found) error, this means that the file is either not available on disk or that you do not have permission to access it. Always test this in AFAS Profit as a user and, if necessary, adjust the authorization so that the token user has sufficient permissions.
11 changes: 10 additions & 1 deletion markdownpages/endpoint/nl/subjectconnector-get.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
---
date: 2026-09-07
title: SubjectConnector
---

Om de SubjectConnector aan te roepen heb je een `SubjectId` en `FileId` nodig. Deze id's vraag je op via bijvoorbeeld `ProfitSubjectsAuthorized` en `Profit_Subject_Attachments`.

De best practice hier is om op basis van de `ProfitSubjectsAuthorized` door de `Profit_Subject_Attachments` te loopen, want één dossieritem kan meerdere bijlagen bevatten. Daarna roep je per row in `Profit_Subject_Attachments` de `SubjectConnector` aan met de ontvangen id's.
De best practice hier is om op basis van de `ProfitSubjectsAuthorized` door de `Profit_Subject_Attachments` te loopen, want één dossieritem kan meerdere bijlagen bevatten. Daarna roep je per row in `Profit_Subject_Attachments` de `SubjectConnector` aan met de ontvangen id's.

> Let op 1: De naam van een bijlage kan meerdere keren voorkomen, ook binnen één dossieritem of reactie. Houd hier rekening mee bij het verwerken van bijlagen.
>
> Let op 2: Wanneer je foutmelding 404 (Not Found) krijgt, betekent dit dat het bestand niet op schijf beschikbaar is óf dat je hier geen rechten op hebt. Test dit altijd via AFAS Profit als gebruiker en pas eventueel de autorisatie aan zodat de tokengebruiker voldoende rechten heeft.
Loading