Is there a way to import Outlook "Public Folders" into Confluence as pages?

Rhyne Armstrong July 26, 2011

We have over 1000 knowledgebase articles in Outlook public folders that I would like to import into Confluence as pages. I can export as CSV, RTF, etc, but can't figure out how to import those files into Confluence more than one at a time.

Thanks!

2 answers

1 accepted

0 votes
Answer accepted
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2011

Confluence Command Line Interface should help :). Use --action addPage. It will not help with the formatting though.

Rhyne Armstrong July 26, 2011

Thanks Bob. I am looking through the information for the Interface and having trouble figuring out how to specify the source directory for the addPage action.

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2011

--file is the parameter you need to specify. You will need to script it to get all files in a directory for instance. Another option is: --action loadFiles which will work over a directory automatically.

Rhyne Armstrong July 26, 2011

I must be doing something wrong. I was able to add the files as attachments using --action loadFiles, but not create pages from them. I will try converting to HTML first as this was with RTF files.

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2011

mime type of text/html or text/plain will get get pages. Extensions like .txt for instance will be added as pages.

Rhyne Armstrong July 26, 2011

It looks like the conversion tool is setting the mime type in a non-standard manner. It can be read by Firefox, but none of the content is added to the pages that are created. Is there an example of this syntax anywhere? I could just have something wrong.

Rhyne Armstrong July 26, 2011

They are all .html I will try converting to .txt to see if it helps.

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2011

What are the extensions on the files? It is likely you need to rename them to txt for instance.

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2011

Create an issue at https://studio.plugins.atlassian.com/browse/CSOAP and attach a couple of example files (RTF and HTML).

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 29, 2011

I thought I posted this comment earlier, but I don't see it now. Please create an issue and attach a couple of examples (HTML and text) and I will have a look. Normally you want text if possible as HTML gets wrapped in a HTML tag so it displays, but not good for edit.

0 votes
Rhyne Armstrong July 27, 2011

The command line is adding the files as <directory name> - <Title>.txt with nothing in the content. I am using:

confluence --space "Knowledgebase" --action loadFiles --file "d:\test"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events