Increment attachment names/making attachments unique

Discussions related to SoftPro Select user interface development.

Moderator: Phil Barton

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

Increment attachment names/making attachments unique

Post by chris.brady » Wed Nov 29, 2017 10:33 am

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?

Posts: 1009
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC

Re: Increment attachment names/making attachments unique

Post by BobRichards » Wed Nov 29, 2017 12:46 pm

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, Software Developer, SoftPro

Post Reply