From d31803eab3aa34b8693d3583ded1ae8c4fdf6a62 Mon Sep 17 00:00:00 2001 From: Eric Zwaal Date: Mon, 7 Sep 2026 16:09:10 +0200 Subject: [PATCH 1/3] SubjectConnector - 404 beschreven en naam bijlage kan dubbel voorkomen --- markdownpages/endpoint/en/subjectconnector-get.md | 9 +++++++++ markdownpages/endpoint/nl/subjectconnector-get.md | 11 ++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/markdownpages/endpoint/en/subjectconnector-get.md b/markdownpages/endpoint/en/subjectconnector-get.md index 95ddf91..228e6d1 100644 --- a/markdownpages/endpoint/en/subjectconnector-get.md +++ b/markdownpages/endpoint/en/subjectconnector-get.md @@ -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. diff --git a/markdownpages/endpoint/nl/subjectconnector-get.md b/markdownpages/endpoint/nl/subjectconnector-get.md index c0e79fc..1baaaed 100644 --- a/markdownpages/endpoint/nl/subjectconnector-get.md +++ b/markdownpages/endpoint/nl/subjectconnector-get.md @@ -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. \ No newline at end of file +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 dat, 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. From 06e3d233497353deefa2976d1c3eb92fad277067 Mon Sep 17 00:00:00 2001 From: Eric Zwaal <113451662+ezw2000@users.noreply.github.com> Date: Mon, 7 Sep 2026 16:14:56 +0200 Subject: [PATCH 2/3] Revise best practices for handling attachments Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- markdownpages/endpoint/nl/subjectconnector-get.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/markdownpages/endpoint/nl/subjectconnector-get.md b/markdownpages/endpoint/nl/subjectconnector-get.md index 1baaaed..f0fbcaa 100644 --- a/markdownpages/endpoint/nl/subjectconnector-get.md +++ b/markdownpages/endpoint/nl/subjectconnector-get.md @@ -7,6 +7,6 @@ Om de SubjectConnector aan te roepen heb je een `SubjectId` en `FileId` nodig. D 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 dat, 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. +> 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. From 24e38cf7c0cf4ad0eaddb072128ba96359e2565b Mon Sep 17 00:00:00 2001 From: Eric Zwaal <113451662+ezw2000@users.noreply.github.com> Date: Mon, 7 Sep 2026 16:15:16 +0200 Subject: [PATCH 3/3] Revise notes on attachments and 404 error handling Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- markdownpages/endpoint/en/subjectconnector-get.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/markdownpages/endpoint/en/subjectconnector-get.md b/markdownpages/endpoint/en/subjectconnector-get.md index 228e6d1..7c5c051 100644 --- a/markdownpages/endpoint/en/subjectconnector-get.md +++ b/markdownpages/endpoint/en/subjectconnector-get.md @@ -7,6 +7,6 @@ To call the SubjectConnector, you need a `SubjectId` and `FileId`. You can requ 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. +> 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.