Sharepoint Document Upload and trigger an event

We are using CRM Online and SharePoint Online (o365). I have integrated CRM and SharePoint. The need is to upload a predefined excel template with filled data to SharePoint.
As soon as file is uploaded, we need to trigger a custom workflow at SharePoint side which will read and parse through the uploaded excel and store yield data in an On-Premise Database. 
Here is what I have thought about the approach:
Write a Web API which will receive request for storing data in on Premise database with input parameter as the object which needs to be pushed. This request will come from workflow triggered at SharePoint. I am not sure if this is workable and if We
have something like thing feasible in SharePoint o365.
Also, please suggest if the approach can be taken differently altogether and simplify things for yield upload.

Hi,
Based on your description, your approach can be workable.
You could read data of excel file by the “call http web service” action in the workflow to call excel web service in SharePoint, then write the web API as you said to store data in an On-Premise Database, and then call the web API in the workflow by the
“call http web service” action.
The article below is about Overview of Excel Services in SharePoint Server 2013.
https://technet.microsoft.com/en-us/library/ee424405.aspx
The article below is about Working with Web Services in SharePoint 2013 Workflows using SharePoint Designer 2013.
https://msdn.microsoft.com/en-us/library/office/dn567558.aspx
Best regards,
Sara Fan
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • SharePoint Document Upload Control and Office 2013

    Couple of users are using SharePoint 2010 site on Windows 7 via internet explorer 9. They are seeing a red X in the upload control. I checked and they are not using 64-bit edition of Internet Explorer.
    Tehy recently got upgraded to Office 2013. Has it got anything to do with it?
    Any pointers why they are seeing red X?

    Hi,
    Do you mean that the red X appears on the icon of the “Upload Document” button in the ribbon?
    To narrow down the issue, would you mind providing more details about this issue:
    1. Is the “Upload Document” the only one button in the ribbon show the red X?
    2. Did the red X appear before they upgraded to Office 2013?
    3. What if they change the Browser Mode to “IE8”, will this issue still exists?
    Feel free to reply with the test result.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they
    help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]
    Patrick Liang
    TechNet Community Support

  • How to get the count of items(folders or documents) in a SharePoint document library and for a folder in any SharePoint document library?

    I need to get a count of documents and folders in a selected document library(the item for EventRecievers for event deleting) and the count of documents in a selected folder(the item for EventRecievers for event deleting) to determine whether the item(document
    library or folder) is empty or not, as I need to use this condition for one of my custom EventReceivers.
    Can you please suggest me the code to do the same?

    Hi.
    Try this:
    class Program
    static void Main(string[] args)
    using (SPSite site = new SPSite("http://z2012net"))
    using (SPWeb web = site.OpenWeb())
    SPList l = web.Lists["List001"];
    List<FolderInfo> res = new List<FolderInfo>();
    getListCount(l.RootFolder, ref res);
    private static void getListCount(SPFolder sPFolder, ref List<FolderInfo> res)
    SPQuery query = new SPQuery();
    query.Folder = sPFolder;
    res.Add(new FolderInfo() { ItemCount = sPFolder.ItemCount, Name = sPFolder.Name, Url = sPFolder.Url });
    SPListItemCollection items = sPFolder.ParentWeb.Lists[sPFolder.ParentListId].GetItems(query);
    foreach (SPListItem item in items)
    if (item.FileSystemObjectType == SPFileSystemObjectType.Folder)
    SPFolder f = sPFolder.ParentWeb.GetFolder(item.UniqueId);
    getListCount(f, ref res);
    class FolderInfo
    public string Url { get; set; }
    public string Name { get; set; }
    public int ItemCount { get; set; }
    Regards,
    Bubu
    http://zsvipullo.blogspot.it
    Please mark my answer if it helped you, I would greatly appreciate it.

  • Document upload and view problem in easy dms

    Dear Friend
    When i upload or view documnet in easy dms it is show ftp erro and when right click on document only one time open this document thru sap and all opration is done from easy dms please guide us where is proble
    Nainesh

    Dear Nainesh,
    as far as I know you raised also an OSS message on this question and I provided you the following reply based on your attachments:
    based on your latest screenshot I think that the information at
    http://wiki.sdn.sap.com/wiki/display/PLM/I001Win32error2+
    could help to get this issue solved.
    Best regards,
    Christoph

  • Document Upload and Text Search

    Hi, anybody knows what are the options that I have to build a program (Java or PLSQL) for uploading files on the DB9i Standard Edition? Is there any program out-of-the-box?
    Then I will try to use the Oracle Text features, is there any suggested language for developing a web page for searching using the Oracle Text power?
    Thanks a lot in advance!

    I am looking for some examples on this too. It must have been done many times before!
    Basically I will require a Web PL/SQL coded front end to build the HTML.
    I need a browser open file dialog to allow me to select a file and then a button that will then process the form and upload the binary document file to the table. This is preferably with MIME Type etc. encoded or stored along side in a separate column.
    I will then need a reverse mechanism to allow me to open the document via a hyperlink on the browser screen.

  • Export Datatable to Excel 2010 format and Save in SharePoint Document library ,and whn opening file getting error "WorkBook may be in unsupported file format "

    im converting stringwriter objec to Memory stream and saving this as .xlsx uploading file in library ,but when i try to open the file im getting error as below
    WorkBook may be in unsupported file format
    and when trying to open in excel getting message as
    Excel cannot open file  because file extention or file format is not valid .verify thet the file has not been corrupted and file extensions match file format

    May be you can use this approach:
    http://www.c-sharpcorner.com/UploadFile/pandeypradip/export-data-into-excel-in-a-pre-defined-template-using-strea/

  • Attaching Attributes to Image For Loading to SharePoint Document Library

    We currently have a need to create a searchable document library which will consist solely of images. The standard metadata for a file/image won't suffice in this case. We have some custom attributes that will need to be searchable.
    Essentially, we will have a library of receipt images for expense reporting purposes. We get these images from a third party who handles all of our expense reporting. There are two large zipped files we receive: one file contains all the actual expense report
    "data" that was processed that day(amount, date, client, job, etc.) and the second file contains all the receipt images for those expense report items. Each data file contains data for individual expense reports, and each expense report is assigned
    a unique ID. Each line item in an expense report is also assigned a unique ID. Lastly, each receipt image for a line item of a specific expense report is also assigned a unique ID.
    The zipped image file only contains images. There is a main image file - this contains several smaller zipped files. Each of the smaller zipped files contains all receipt images for a specific expense report. Each image file name is comprosed of three parts:
    The expense report identifier, the unique image identifier, and the expense report line item identifier.
    So, to put this all into perspective:
    On Thursday, we received an image file named extract_images_p006320452r3_20140904171423
    This file contained images for the following unique expense reports:
    The compressed file 95FB8C488519427793FC contains the following receipt images:
    The "data" file - as mentioned before - contains the actual info about the expense and image. These include: date of transaction, date approved, vendor, amount. GL code, type, function, client, project, billable or not, and several other attributes.
    All of this information - including the location of the images - is stored in a SQL Server database and then placed in an SSAS cube.
    The images are related back to the underlying data via the expense report id, and line item id.
    What I need to be able to do is to somehow "tag" these images with all their underlying attributes, load then into a SharePoint document library, and make them searchable.
    I have already figured out that I would need to create several SharePoint lists based on the available values in my OLAP cube (essentially a dataset each for clients, vendors, etc.). The part I have no idea how to accomplish is how to tag each image with
    its respective information.
    All the pertinent info is stored in the database tables, just don't know how to attach it to each image.
    Hopefully, this made some kind of sense. If anyone has any idea on how to even remotely accomplish such a thing, your input would be greatly appreciated!
    Thanks in advance!
    A. M. Robinson

    You will have to develop a custom solution to do this. I am assuming you have taken the first steps to define separate document libraries for the expense reports and images along with site columns and contenttypes. You would define the site columns based
    on the data you want to search on and assign these to corresponding contenttypes. So basically a contenttype for expense reports and receipts possibly. You would link the two contenttypes using the expense report id.
    Your custom solution would have to break apart the zip files and upload and index (set site column data) for each file. Then the user could search on the expense report id and get all the files associated with the expense report.
    An alternative could be to use one document library and have all the files uploaded into their own document set (folder).
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • How to connect SharePoint Document Library with Local file system?

    Hi
    I have a SharePoint Document library and in my local system i have 3TB files. It is very difficult to upload 3TB files in SharePoint.
    I want a file details in SharePoint Document Library but physical file would be in local.
    While click the file in Document library. The document should open from local.
    Anyone help me on it.
    Thanks & Regards
    Poomani Sankaran

    Hi,
    your requirement doesn't work out-of-the-box as all data uploaded to SharePoint needs to be stored in SQL database. Thus in your case 3 TB of fileshare would need to move to SQL.
    In case you don't want to go this way, there are 3rd party vendors who offer Software like AvePoint Connector. Products like these use SQL RBS (Storage Externalization API) so that files remain in your file system but metadata is kept in SharePoint. If you
    need more information on that, please let me know.
    Regards,
    Dennis

  • How to find list or folder name from SharePoint document URL

    I'm implementing the SharePoint client object model in my VSTO application in .NET framework 4.0(C#).
    Actually we open MS Word files from SharePoint site, we need to create a folder inside the opened documents list/folder and after it we want to upload/add some files to that created folder.
    My problem is that how to get list name/title and folder name of opened document by using the documents URL or Is there an another option to find the list or folder name of opened document.
    Any help will be appreciable.

    In document Library you can get the name of document library directly in URL. for folder name you can try below:
    using System;
    using Microsoft.SharePoint;
    namespace Test
    class ConsoleApp
    static void Main(string[] args)
    using (SPSite site = new SPSite("http://localhost"))
    using (SPWeb web = site.OpenWeb())
    if (web.DoesUserHavePermissions(SPBasePermissions.BrowseDirectories))
    // Get a folder by server-relative URL.
    string url = web.ServerRelativeUrl + "/shared documents/test folder";
    SPFolder folder = web.GetFolder(url);
    try
    // Get the folder's Guid.
    Guid id = folder.UniqueId;
    Console.WriteLine(id);
    // Get a folder by Guid.
    folder = web.GetFolder(id);
    url = folder.ServerRelativeUrl;
    Console.WriteLine(url);
    catch (System.IO.FileNotFoundException ex)
    Console.WriteLine(ex.Message);
    Console.ReadLine();
    http://msdn.microsoft.com/en-us/library/office/ms461676(v=office.15).aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/801d1a06-0c9b-429b-a848-dd6e24de8bb9/sharepoint-webservice-to-get-the-guid-of-the-folder?forum=sharepointdevelopmentlegacy
    You can also try below:
    http://blogs.msdn.com/b/crm/archive/2008/03/28/contextual-sharepoint-document-libraries-and-folders-with-microsoft-dynamics-crm.aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d2d5d7cf-9bbd-4e0f-a772-ecdce4e6149f/how-to-fetch-document-guid-from-sharepoint-document-library-using-sharepoint-web-service?forum=sharepointdevelopmentlegacy
    http://stackoverflow.com/questions/2107716/how-to-get-guid-of-a-subfolder-in-a-document-library-programmatically

  • SharePoint 2013 document library, permissions to upload and view shared document only

    SharePoint 2013 document library I want to give access to client where they can upload and view their uploaded document and can see all documents shared with them.
    I have managed to show all document shared with them only by deactivating a feature but now they can't upload any document, If I create a permission set to allow them to upload documents, they will see all other documents as well which are not shared with them.
    Any suggestions?

    Hi Sharaqat, the best way to handle your situation is to have a separate library or site for the client. You could use item level permissions per Thilosh, but fine-grained permissions become a major headache. You could also use web parts and audience
    targeting, but that's not truly secure.
    cameron rautmann
    I am thinking to have a separate document library for client, where they can upload/view/edit etc, we will upload documents in a "secure" library with a column saying this is a private document or public document, if we mark a document public,
    a workflow will move that document to the client's document library. I don't think there would be a problem to move a document from 1 library to another in a workflow.
    That's the easiest solution I have found so far.

  • Is it possible to trigger FIPP event (and how?) when parking an FI document

    Hello
    I wander is it possible to trigger FIPP event (and how?) when parking an FI document with transaction fbv1(and not fv60)
    Thx in advance

    Hi,
    In Financial Accounting --> Accounts Receivable and Accounts payable >  Business Transaction> Incoming Invoices/Credit Memos  --> Make and check settings for Document Parking -->  Create Workflow Variant for Parking Documents (Click  this)
    There you have to assign your workflow.
    Regards,
    Surjith

  • Upload Multiple documents in SharePoint document Library not working

    Hi All,
            I have folder on my desktop which consists of nested folders and files(Total 11 files) .And when I select "Upload multiple files" option to upload documents and drag the folder from the desktop in pop-up window .
             The sharepoint document library uploads only 1 file among all the nested folders from 11 files.Can any one help me how can I solve this
    Thanks, Quality Communication Provides Quality Work. http://siddiq-sharepoint2010.blogspot.in/ Siddiqali Mohammad .

    Hi,
    I understand you encountered the issue when use "Upload Multiple Documents" to Drag Files and Folders to upload window.
    When you say "The sharepoint document library uploads only 1 file among all the nested folders from 11 files", do you mean you have drag all files and folders to the window, while only 1 file is uploaded sucessfully? Or you cannot find all expected
    folders and files?
    Please manually open "Windows Explorer" to locate files and drag files from "Windows Explorer", instead of using the "Open window"
    opened by "Browse for files instead" as below:
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Some chinese character file name not uploading in SharePoint Document Library?

    Hi
    Some Chinese character pdf file name not uploading in SharePoint Document Library. I am getting following error.
    1. File not found error if i would upload using file browse option in Doc Lib.
    2. Can't read from the source file or disk. if i would tried to copy and paste using "Open with explorer" options.
    File name is "LA(未签署).pdf"
    Note: This file has been converted from "TIFF" to "PDF".
    Thanks & Regards
    Poomani Sankaran

    Hi Poomani,
    For troubleshooting your issue, please let's verify the followings:
    Whether other pdf file which are not converted from "TIFF" and contain Chinese char could be uploaded into the SharePoint Document library.
    Whether other pdf file which are converted from "TIFF" and don't contain Chinese char could be uploaded into the SharePoint Document library.
    Please upload these pdf files into other libraries, compare the result.
    Please check the log file to find more information about this issue. The path of the log file is:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Document files and JPG files larger on sharepoint than they ought to be

    Documents that I've uploaded to sharepoint (documents meaning anything that is file.doc / file.docx) seem to be nearly twice as large as they should be in most cases. I'm pretty sure that uploading the document to sharepoint mysteriously adds something along
    the lines of 10-15KB on top of what is already there (For smaller, one page documents).
    The same problem occurs to a lesser extent with jpg/jpeg files, where the image is marginally larger than it would be on a local hard drive. A 5kb image, for example, might be more like 5.3kb on sharepoint. Normally I would expect some form of compression
    to occur, and I would expect to see the filesize shrink a bit. I can't imaging what is causing the filesize to go up this way.
    I'm assuming there is some kind of strange versioning or underlying data being added behind the scenes, but I was curious as to why the file sizes are much larger on sharepoint than on a local hard drive.
    For reference, I am simply uploading the file programatically by sending the byte array to the file itself. I'm not doing anything complicated, really. Nothing I would expect to cause the file to be larger, at least.
    It may also be worth mentioning that I re-downloaded the file and compared it with the original, and other than the random size difference, they are 100% identical.

    Zachary,
    SharePoint 2013 now leverage SqlServer Shredded Storage technology. As you guess it right, going forward SharePoint will shred its content in multiple pieces to only add delta for next version. Great feature for saving storage.
    Lets assume a file is 5 MB. In previous SharePoint (SP) version, all subsequent version of that file will be saved differently. If first version add one extra MB to that file, Then total storage would have been as (5MB + 6MB) in SP 2010, but in SP 2013,
    the moment we upload / checkout a file, SP will automatically Shred that 5MB file in 10 Shred(Hypothetically 500KB each). I am certain that while Shredding, it has some basic Shred block size (which can be configured) which multiply by number of shred. And
    that might be the reason file size is increase.
    When we migrate or upload programmatically, Shred logic dont apply, but the moment you check out - SP will Shred it(As per my knowledge). Please test it.
    A good resource : The Truth Behind Shredded Storage By: Jeremy T.
    SharePoint 2013 shredded storage with traditional and RBS storage
    Good to have some insider validation on this topic!
    please 'Propose as answer' if it help you, also vote this as helpful if you like this reply.

  • Upload and download the file same name but different extension from the document library.

    HI,
         I am using the Client Object Model (Copy. Asmx ) To upload and download the file from the document library.
    I am having the mandatory File ID for the each Document.
    I tried to upload the the document (KIF53.txt) with File ID (KIF53) uploaded successfully.
    Again I tried to Upload the document(KIF53.docx) With File ID(KIF53) its uploaded the file but it not upload the File ID in the Column
    Please find the below screen shoot for the reference.

    thanks ashish
    tried 
    My requirement is to create the  folder and sub folder in SharePoint document library. If already exist leave it or create the new folder and the subfolder in the Document library using client side object model
    I able to check for the parent folder.
    But cant able to check the subfolder in the document library.
    How to check for  the sub folder in the document library?
    Here is the code for the folder IsFolder alredy Exist.
    private string IsFolderExist(string InputFolderName)
            string retStatus
    = false.ToString();
            try
                ClientContext context
    = newClientContext(Convert.ToString(ConfigurationManager.AppSettings["DocumentLibraryLink"]));
    context.Credentials = CredentialCache.DefaultCredentials;
                List list
    = context.Web.Lists.GetByTitle(Convert.ToString(ConfigurationManager.AppSettings["DocumentLibraryName"]));
                FieldCollection fields
    = list.Fields;
                CamlQuery camlQueryForItem
    = new CamlQuery();
    camlQueryForItem.ViewXml = string.Format(@"<View 
    Scope='RecursiveAll'>
    <Query>
                          <Where>
    <Eq>
    <FieldRef Name='FileDirRef'/>
    <Value Type='Text'>{0}</Value>
                            </Eq>
    </Where>
    </Query>
    </View>", @"/sites/test/hcl/"
    + InputFolderName);
    Microsoft.SharePoint.Client.ListItemCollection listItems
    = list.GetItems(camlQueryForItem);
    context.Load(listItems);
    context.ExecuteQuery();
                if (listItems.Count
    > 0)
    retStatus = true.ToString();
                else
    retStatus = false.ToString();
            catch (Exception ex)
    retStatus = "X02";
            return retStatus;
    thanks
    Sundhar 

Maybe you are looking for

  • How to change the default login user id for firefox home?

    I need to enter a login id to open a firefox page. Unfortunately, I made an error on the login id. How to change this default login ID to open a Firefox home page?

  • Warning Msg: Character Mode report is being opened as a Bit-mapped report

    Hi All, I am opening a Oracle Standard Report in Oracle Apps "INVISMMX", while opening it shows the below warning message: "Character Mode report is being opened as a Bit-mapped report" What is the reason for this? How can I open this report in ASCII

  • Only G/L accounts can be entered on the fast entry screen

    We are currently upgrading our SAP environment from version 4.70 to ECC 6.0.  Our users are testing their Parked Document fast entry screen entries created through F-65 and when they attempt to "view" their entry on the Fast Entry screen, after enter

  • Is it possible to permanently disable HDMI output from Logic?

    Every time my monitors wake from sleep, Logic asks if I want to switch my audio output to HDMI... pretty irritating as I have agressive energy saving settings, which I'd like to keep, as I try to keep my studio as energy efficient as possible, and 2

  • Failover in 10g Standard Edition tips

    Hi guys, We have an Oracle 10.2.0.5 Standard Edition Database in a Windows Server 2008 x64, and we were looking for a Failover solution. The idea is when the primary server could have a problem, automatically open in read/write mode the standby DB, a