Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
IManEmailDuplicateDetectCmd C#
mawny
Hi
Anybody used the ImanExt2.ImanEmailDuplicateDetectCmd with c# .net?
Im trying to use it to check for duplicate emails in a folder before I automate the filing of an email.
This is my code so far modified from some vb code on another thread, but is blowing up when i test for the returned document. I cant find any further documentation on this command.
IManEmailDuplicateDetectCmd dedupCmd = new IManEmailDuplicateDetectCmdClass();
ContextItems contextDup = new ContextItemsClass();
contextDup.Add("IManDestinationObject", destination); //IManDocumentFolder
contextDup.Add("IManExt.Import.MessageID", MessageID);
dedupCmd.Initialize(contextDup);
dedupCmd.Update();
if (dedupCmd.Status == (int)CommandStatus.nrActiveCommand)
{
dedupCmd.Execute();
IManDocument doc = (IManDocument)contextDup.Item("IManExt.DuplicateEmail"); //BLOWS UP HERE
result = (doc != null);
}
Andy
Find more posts tagged with
Comments
There are no comments yet