mickeyd3 Absent Member.
Absent Member.
1585 views

Workfolder.Name not returning in correct language

Hi,

Just wondering if there was a way to return the name/path of the Work in Progress folder in the user's current language. I have an applet that validates (among other things) all message recipients before sending, so I need to save the message as a draft first in order to access the Message and Recipients objects.

To do this, I need to send the name and path of the Work-in-Progress (WIP) folder to the ItemSaveMessageDraft function:
folderPath = Groupwise.Account.Owner.DisplayName & " - Home\" & Groupwise.Account.WorkFolder.Name;
Groupwise.ItemSaveMessageDraft(folderPath)

This works just fine in English, but after much trial and error, I found that in French, the string "Home" needs to say "Accueil" and the Work Folder name needs to say "Travail en cours". But the Groupwise Workfolder.Name function only returns the English value, never French. So I'm basically stuck hard-coding these strings into my applet, and also means this will not work for anyone who may have renamed their Drafts folder to anything else.

Is there a way to get the localized value of the Workfolder name? We have Groupwise 7.
Labels (1)
0 Likes
4 Replies
ukdtom Absent Member.
Absent Member.

Re: Workfolder.Name not returning in correct language

Name of HomeFolder:

GW 8.0.1 build 87946 or higher

Token API:

Added a new token EnvHomeFolderName that take not parameters and
returns the name of the home folder.


For the "Work in Progress" folder, I'm clueless, but will dig into it
😉

--
Tommy Mikkelsen
IT Quality A/S, Denmark
Novell Support Forums SYSOP / NKP

Sorry, but no support through email
Please join http://www.open-horizons.net


mickeyd3 wrote:

>
> Hi,
>
> Just wondering if there was a way to return the name/path of the Work
> in Progress folder in the user's current language. I have an applet
> that validates (among other things) all message recipients before
> sending, so I need to save the message as a draft first in order to
> access the Message and Recipients objects.
>
> To do this, I need to send the name and path of the Work-in-Progress
> (WIP) folder to the ItemSaveMessageDraft function:
> folderPath = Groupwise.Account.Owner.DisplayName & " - Home\" &
> Groupwise.Account.WorkFolder.Name;
> Groupwise.ItemSaveMessageDraft(folderPath)
>
> This works just fine in English, but after much trial and error, I
> found that in French, the string "Home" needs to say "Accueil" and the
> Work Folder name needs to say "Travail en cours". But the Groupwise
> Workfolder.Name function only returns the English value, never
> French. So I'm basically stuck hard-coding these strings into my
> applet, and also means this will not work for anyone who may have
> renamed their Drafts folder to anything else.
>
> Is there a way to get the localized value of the Workfolder name? We
> have Groupwise 7.


Best Regards Tommy Mikkelsen Denmark Please Report back any success or failure, That way we all learn Sorry, but no support through email "I hate bugs".......Tommy Lee Jones, MIB
0 Likes
ukdtom Absent Member.
Absent Member.

Re: Workfolder.Name not returning in correct language

Regarding the WIP folder....sorry, but just got tracked away for the
next couple of weeks due to a project, but one small Q though......

Why does it have to be the WIP folder ?

You could use the home folder, the inbox or siml.

Tommy Mikkelsen
IT Quality A/S, Denmark
Novell Support Forums SYSOP / NKP

Sorry, but no support through email
Please join http://www.open-horizons.net


mickeyd3 wrote:

> ItemSaveMessageDraft


Best Regards Tommy Mikkelsen Denmark Please Report back any success or failure, That way we all learn Sorry, but no support through email "I hate bugs".......Tommy Lee Jones, MIB
0 Likes
comless_scott Frequent Contributor.
Frequent Contributor.

Re: Workfolder.Name not returning in correct language

Hello mickeyd3,

did you ever find a way to get the localized version of the WIP folder name?

Regards,
Scott
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Workfolder.Name not returning in correct language

On 10/9/2013 3:46 PM, comless scott wrote:
>
> Hello mickeyd3,
>
> did you ever find a way to get the localized version of the WIP folder
> name?
>
> Regards,
> Scott
>
>

You can do it with SOAP. Not sure if you can with objectAPI
0 Likes
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.