0
0 Comments

Hello, I am running into an issue and I am not sure how to tackle it.

I want the files to go into a folder structure like: Business Central/Sandbox_Attachments/Customers/[Customer name] (Customer No)/2025

I have the vendor and customer folders static with Business Central/Sandbox_Attachments/Customers as the folder, and the name and no. as the next part of the path and that works fine.

The next part for the document types, we do not need it separated by the type and instead want it seperated by the year which I have added a field Posting_Year that acts correctly in the file path.

This is the folder mapping that shows as the path in BC when I click the folder path button in the factbox:

This is the correct path I want the file to have. However when I drag a file into the sharepoint factbox I get this error:

Where its putting an extra “/” between the customer and the year.

The weird thing is its only some vendors and customers, ones that I tested with before getting the path correct and if I use other customers/vendors it goes through fine.. I had deleted the folders in sharepoint so that I didnt have a mess of things. I thought that might have been the cause so I took one of the working customers and deleted the folder, refreshed BC screen and uploaded just fine and created the folder again. I went back to the problem customer and it still throws the error.

hougaard Answered question 6 days ago