Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
SaveEmailCmd
Jan999
Hi,
I'm using the IMANEXTLib.SaveEmailCmd to profile an email that I have dragged and dropped from Outlook onto a Windows Form.
See code snippet below:-
context = new ContextItems();
context.Add("ParentWindow", Process.GetCurrentProcess().MainWindowHandle);
context.Add("IManExt.SaveEmailCmd.BrowseLocation", true);
context.Add("NRTDMS", dms);
context.Add("IManExt.SaveEmailCmd.EmailMsgFile", filename);
context.Add("IManExt.SaveEmailCmd.ImportFolders",folder);
cmd = new IMANEXTLib.SaveEmailCmd();
cmd.Initialize(context);
cmd.Update();
if (cmd.Status == (int)IMANEXTLib.CommandStatus.nrActiveCommand)
{
cmd.Execute();
}
This code works fine but the Author profile field is not being pre-populated, I've tried logging in using both trusted login and explicitly to no avail.
In addition I do not want the dialog to display, I just want to profile the email without the user having to click the 'Save' button.
Can anyone offer any sugestions for these problems?
Thanks
Jan
Find more posts tagged with
Comments
Jan999
I've worked it out now. Thanks anyway.
Goce
Can someone post some code showing how to automatically save/import the email without displaying the dialog for the user having to click the 'Save' button.
I am using the same code as above but have the same problem with the dialog showing.
Thanks
jny
The SDK currently does not support this; there isn't a contextitem for
communicating to the source code to suppress the attachment dialog.
I think you're referring to the drag-n-drop import with autoprofiling enabled. If so, in that case, our source code knows that it's a
drag-n-drop action, reads the autoprofiling option -- all of which are
hardcoded and does not get the information from contextitems -- then imports it with the attachments using the importcmd in silent mode. It does not make use of the saveemailcmd.
Please submit this as an enhancement request so that R&D and the
management team can evaluate the feasibility of extending the capability of suppressing the dialog through contextitems or even a registry key.
Please submit your enhancement request at
http://worksitesupport.interwoven.com/
, and click on New Feature Request link.
Jan999
I ended up doing this using the ImportCmd. You can fill in the necessary context items and prevent the dialog displaying.