Hey @afsaneh_keivani
Where are you writing this code ?
Thanks
#nK
in assign activity
i tested it In Assign activity as well as get email activity
I did and still same error.
Have you done this before?
the assembely code :Microsoft.Office.Interop.Outlook is already there in xaml file and still not working.
Thanks
Hey @afsaneh_keivani
Could you please paste the code piece here only for that interop move you are doing ?
Thanks
#nK
Assign oFolders = oapp.Session.DefaultStore.GetRootFolder().Folders
Invoke code: ofolders(“Inbox”).Folders.Add(“afs”,Type.Missing)
Hey @afsaneh_keivani
Kindly try the below,
Microsoft.Interop.Outlook.Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox).Folders.Add("AFS", Type.Missing)
Thanks
#nK
There is compile error with code:
Interop is not member of Microsoft.
Thanks
Hey @afsaneh_keivani
Sorry for the syntax error,
Microsoft.Office.Interop.Outlook.Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox).Folders.Add("AFS", Type.Missing)
Missed office, please try now the updated as above
Thanks
#nK
Outlook.OlDefaultFolders.olFolderInbox is not exist
any advise how can i dd it to my project?
thanks
Will share a sample demo !
@afsaneh_keivani Try the below workflow
Outlook.zip (2.7 KB)
Also, I am tried to create a test folder inside inbox. You can change the folder names code within in the assign activity of Add Folder sequence
oFolders("Inbox").Folders.Add("test",Type.Missing)
Also, try adding below assembly to your xaml
i did a minor change Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox and it worked
Thank you very much @Nithinkrishna