I need to link to a map on our local drive from Dynamics AX 2012 R3
Could you be a bit more specific, please? I'm not sure at all what you actually need. If you don't give us enough information, you have a great chance not to get any answer.
If you're looking to URL to a file on a disk, use the File URI scheme.
Martin "Goshoom" Dráb | Freelancer | Goshoom.NET Dev Blog
I cannot use the URL because that needs http or ftp.
I need to attach an UNC path, so when a user need to find the relevant drawing relevant for the product, he will be led to the folder to choose the document he needs.
You obviously didn't open the link, because you wouldn't have made such a statement about URL.
UNC paths are strings and can be stored in string fields. If you have a problem with the implementation, please explain it. Maybe you don't know how to lookup the path. Maybe you don't know how to open a folder. Maybe you don't know how to escape paths. Maybe something else.
If you don't explain what you need, you can't expect an answer.
Okay - I know it's a very difficult case. I am working in Dynamics AX 2012 R3.
In 'Administration of Product' I need to attach a path to a Product. Not a document, but a path to the folder.
I have tried to use URL as attachment, but get an error message saying that URL needs fttp:/ or FTP.
The link you gave me was not about Dynamics Ax, as I see it.
If you do not understand my explanation now, then I just want to say thanks for trying.
Create a string field. Than set its value: someTable.SomeField = @"\\someserver\someResource";. Save the record.
Congratulation! You have saved an UNC path to AX database.
The link isn't about Dynamics AX because URI is nothing AX-specific.
I will try that out :-)