Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..
517 views

Specify filename when downloading from the ServiceAPI

Jump to solution

Hi,

Does anyone know if you can specify the filename when downloading from the ServiceAPI? Looks like it defaults to the Title of the record and extension - which is a pretty reasonable default - but I need to include the record number in the title to help ease the transition from a legacy solution.

https://webserver/HPRMServiceAPI/record/4231/file/document

Is there a parameter I can pass to this URL? Or a config setting? Nothing jumped out at me in the doco.

We're on 8.3.

Thanks,

David

0 Likes
1 Solution

Accepted Solutions
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Specify filename when downloading from the ServiceAPI

Jump to solution

No, you get what you get!  Though if you're using the ServiceAPI you could just write your own plugin.  It would be fairly easy to do.

---------
Erik

View solution in original post

0 Likes
3 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Specify filename when downloading from the ServiceAPI

Jump to solution

No, you get what you get!  Though if you're using the ServiceAPI you could just write your own plugin.  It would be fairly easy to do.

---------
Erik

View solution in original post

0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: Specify filename when downloading from the ServiceAPI

Jump to solution

Dang. Thanks, Erik. 

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Specify filename when downloading from the ServiceAPI

Jump to solution

The ServiceAPI actually uses Record.SuggestedFileName from the .Net SDK, which in turn gives you the Title.Extension.  Given the bazzilion options in TRIM I am a little surprised that there is not an option to use the record number, but there isn't


Blog | Samples | CM SDK Docs
**Any opinions expressed in this forum are my own personal opinion and should not be interpreted as an official statement on behalf of MicroFocus**
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.