Increment attachment names/making attachments unique

Discussions related to SoftPro Select user interface development.

Moderator: Phil Barton

Post Reply
chris.brady
Posts: 105
Joined: Wed Oct 17, 2012 4:20 pm

Increment attachment names/making attachments unique

Post by chris.brady »

I'm curious why this isn't standard functionality through the API. If I attach a file called XYZ.pdf through the UI, if a file already exists by that name, the UI increments it to XYZ (1).pdf.

Why doesn't this behavior carry over when using the API with IAttachmentFolder.NewFile? While I understand creating a routine to do the same thing isn't hard, why rely on customers to do it when it should be easy to implement yourselves?

Or does this functionality exist, and I've totally missed it?
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Increment attachment names/making attachments unique

Post by BobRichards »

External API programmers use the same interface that both the client and server applications have. While adding convenience functionality would *probably* be done if the API was difficult to use, we have to draw a line in the sand regarding this type of feature creep. Remember that it would require at least twice the testing effort to cover the additional code paths.
Bob Richards, Senior Software Developer, SoftPro
Post Reply