Saving complete Email (Body+Attachments) from Outlook to Sharepoint using Powerautomate - sharepoint

I am trying to save the complete emails (body and attachments) from outlook to sharepoint. My Power Automate flow is below that saves a .msg file but I also tried .eml. I am seeing files being saved to sharepoint but when I open it I see blanks(no body and no attachments). What would I need to change in my flow?

You have to loop the email attachments in order to get them exported as well.
Sudarshan wrote a very nice blog article demonstrating how to do this to OneDrive, but you can easily adapt this for SharePoint. Refer to his article here for step by step instructions.
https://spknowledge.com/2021/03/19/power-automate-export-email-attachments-to-onedrive/

Related

Connecting existing document library to sharepoint site

I was experimenting with MS Flow in Office 365, trying to automatically extract info from excel files. However, it turns out we made some "design error" in our sharepoint structure.
We have multiple central document libraries that are only linked to the Onedrive for Business environment and not connected to a Sharepoint site. (The latter turns out to be necessary for MS flow.) Is it possible to link existing document libraries to a sharepoint site?
EDITS:
Some background: within onedrive for business we have created multiple document libraries. See the screenshot below (blacked out are the ones we created).
Screenshot of Onedrive for Business "Site Contents"
Using MS flow I want to extract info from some of the Excel sheets in those doc libs. However, when using the wizards, I can only access files in document libraries that are created from a Sharepoint site (mine were apparently created directly in the OnedrivefB environment) or the main document library from OnedrivefB (as shown below; when choosing Onedrive, the File wizard only shows the files in the 'Documents' doc lib as also listed in the previous screenshot. Screenshot from Flow wizard
Elsewhere, I was told I should connect the document libraries we created to a Sharepoint site. But this person couldn't tell me how... Other suggestions are of course welcome as well!
Thanks, J
For completeness:
Step 1 in the wizard, showing sharepoint sites and onedrive for business
Step 2 in the wizard, showing options when choosing for OdfB
Step 3 in the wizard, only showing files from the document library called "Documents" in the first screenshot
A screenshot from one such document library with the Excel I am trying to access
Both OneDrive for Business and Sharepoint sites can be connected to MS Flow. If you are looking for the connection with OneDrive for Business, check the below link for triggers and sample templates
https://us.flow.microsoft.com/en-us/connectors/shared_onedriveforbusiness/onedrive-for-business/
Sharepoint -
https://us.flow.microsoft.com/en-us/connectors/shared_sharepointonline/sharepoint/
EDIT:
To access an Excel file in an OneDrivefB folder, browse and select the excel using file option. It will list all the folders in your OneDrive library.
.Second screenshot which you attached is sharepoint assets. they cant be linked to OneDrive. It can only be linked to sharepoint sites

Edit and Send Outlook Form Template From Excel VBA

Currently, I have the Excel VBA code that will construct and send an Outlook email from Excel. However, I need to be able to use this VBA to open an Outlook form template that contains a command button and update the body of the message. I have been searching non-stop and cant find any good resources for accomplishing this, any good pointers, links, or supporting code would be greatly appreciated. Thanks.
You can save the form as a Microsoft Outlook template file (.oft), and then e-mail that file to users. If the form contains code or custom fields, the recipient will not be able to simply open the .oft file and publish it. The recipient will need to save the .oft file to the local drive, run it with the Tools | Forms | Choose Form command, and then publish the form to the Personal Forms Library.
Alternatively, you can use an .fdm file to install a form manually, see OL2000: How to Move a Custom Form to Another Computer.
Read more about Outlook forms in the To distribute Microsoft Outlook forms to other users article.
As a workaround you may consider creating a COM add-in with rich UI options which can be installed on the recipient's side and do whatever you need for users. See Walkthrough: Create your first VSTO Add-in for Outlook for more information.

Embedding an excel document into an application with excel online

I have been experimenting with excel online shared link to be able to embed an excel document to our internal web site. But this method is not viable because we can't actually make a public link because the data is private.
I was wondering if it was possible to embed an excel document any other way. I can add that we need an excel document with an add-in attached to it. I might have done something wrong but in my test, my add-in didn't show up in the embedded version of the document. I also noted that functionality seemed greatly reduced. Even with read-write permissions, I could input some data but couldn't delete anything which wasn't very useful in our case.
Ref:https://support.office.com/en-US/article/Share-it-Embed-an-Excel-workbook-on-your-web-page-or-blog-from-OneDrive-804e1845-5662-487e-9b38-f96307144081
Our goal is to be able to :
embed excel document into an application.
feed external data into the excel document when opened or on user input (done by an add-in)
user interaction (read-write-delete according to defined locks and column visibility)
save the relevant data to storage (done by an add-in)
save the document to OneDrive and/or to a specific location.
I am wondering if there is any solutions (now or in-progress) that would allow us to have most of the functionality of excel online while being managed by an application.
Possible solutions?:
We might have a partial solution where instead of creating a shared link, we could integrate our application to excel instead of doing thing the other way around. But it doesn't solve how to handle Microsoft accounts required to access the documents.
You'd have to do the heavy lifting in JavaScript I'm afraid and add-ins are out of the question. See a very rudimentary example of how to interact with an embedded Excel file here:
http://www.jkp-ads.com/Articles/embeddedexcel00.asp

Generating excel through HTML with the help of agent when MS-Office is not present on server

I have created an agent that generates an Excel document and sends it to specific users through mail. The Excel file generation is done at run time and as such I am not storing the file anywhere. However, the issue is that the agent is supposed to be run on server. The server does not have MS Office installed it. How can this can be done through HTML.
Have a look at POI 4 XPages on OpenNTF that uses the Apache POI project to generate Word and Excel files.
You create a normal HTML page with a <TABLE> containing your record data. Then you need to set the Response contentType to "application/vnd.ms-excel".
The following MS tech note will detail how to write out the HTML.
http://support.microsoft.com/kb/260239
There is also sample XPage code in the XPages Cheatsheet. See the following link.
http://xpagescheatsheet.com
And Lekkim has sample code of setting the contentType in an agent (Java).
http://lekkimworld.com/2006/03/30/show_n_tell_thursday_setting_the_content_type_from_a_java_agent_30_mar_2006.html
If you need to send the Excel file by email then it's best to create a real Excel file with Apache POI.

Can you store emails in Sharepoint Workspace 2010?

I am using SHarepoint Workspace 2010. I was wondering if there was any way to somehow make the workspace (or even the site) work with Outlook and save emails in the document repository?
If you want to drag and drop email into any SharePoint 2010 library, SharePoint 2010 allows this out-of-the-box by selecting "Open with Explorer" from the "Connect & Export" section in the Library Tools ribbon in the applicable library. This will open a browser window, into which you may either drag/drop or copy/paste from your outlook window.
This method is exceptionally helpful when you DON'T want to set up the library to receive email.
For this, you have to integrate your outlook with sharepoint.You need to create a list, which will be seen at your outlook as well. Now when you want to send emails you have to save them in the list as well. So your emails will be saved in the sharepoint list.
There is no way of doing it. If you want to share your e-mail with broader audience you can move it to the Outlook public folder.
You could create a list which accepts emails like a discussion and setup an email address for the list in the settings. Then you can go to your Outlook and set up rules to forward emails to the list which fit a certain criteria.
Also, when viewing a list, you should be able to sync with Outlook (Connect to Outlook button) which would allow you to view it in Outlook.
Try Colligo Contributor Pro. It's an alternative for the old fashioned Sharepoint Workspace. You can do everything you want:
add all kind of files to Sharepoint
sync when you want
add emails to your Sharepoint and open them later with your mail program
add Sharepoint libs to your Outlook and sync them
For drag and drop of emails from Outlook to SharePoint we are using SharePoint Outlook Integration tool. PageLight also offers Save Outlook emails to SharePoint functionality

Resources