Linking Custom Document Properties to SharePoint

We currently have a Microsoft Office Add-in that, among other things, reads and writes Custom Document Properties. Our add-in includes a user-dialogue through which these values are captured and subsequently displayed within the document.
We now have a requirement to integrate this functionality with SharePoint 2010. In particular, we want our Office custom document properties to be co-ordinated with equivalent SharePoint server properties (i.e. site columns in Document Libraries) so that,
when a given SharePoint property value is changed the equivalent custom document property is also changed.
Users must be able to set the properties in either SharePoint or in an Office App (Word for example) and the changes be reflected in both places.
Our solution must work with the desktop versions of Office 2010/13 and the non-Office365 versions of SharePoint 2010/13.
During our initial prototyping we have looked at a number of possible approaches (including Document Property Promotion and Demotion) but are still not sure which appropriate to use.
With regard to Document Property Promotion and Demotion for example, we found that, if we create a document outside SharePoint, then invoke our add-in to set document properties, then upload the document to SharePoint; the SharePoint properties and the
Office Custom Document Properties are initially in step, any subsequent changes cause problems.
If we now change the SharePoint properties by editing them in SharePoint and then open the document in Word, the Custom Document Properties are unchanged. Similarly, any change we make in Word is not reflected in the
SharePoint properties when the document is saved back to the SharePoint library.
Our properties are all of type string in Word and type Choice in SharePoint.
For various reasons, our solution must not depend in any way on Office templates.
We would like to know what would be the recommended approach to implementing this functionality.
Below provides a basic diagram of our requirement:

Hi,
According to your description, you might want to sync the custom document properties between document and SharePoint Library.
A solution can be like this: We can add an Event Receiver to this library, it will be triggered when there is a file is checked in or the item of list is updated, then we can
read/write the specific document properties and sync between document and SharePoint Library.
The whole scenario would be like this: When a document is uploaded and checked in, the method put in the Event Receiver will be triggered and update the related columns of library.
When we updated these columns in library, we can capture the ItemUpdated event and update the corresponding properties of this document.
Here is a step by step sample on creating a simple Item added event receiver:
http://msdn.microsoft.com/en-us/library/ff398052.aspx
More information on Event Receiver for your reference:
http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx
http://msdn.microsoft.com/en-us/library/ff408183(v=office.14).aspx
For about how to update the custom properties of an Office Document, it is recommended you post another question to the Microsoft Office for Developers forum, you will get more
help and confirmed answers from there.
http://social.msdn.microsoft.com/Forums/office/en-US/home?category=officedev
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

Similar Messages

  • Custom Document Properties Don't Transer to Document Information

    I've got an MS Word 2003 document that I've added a number of custom document properties to. I converted the document to PDF using Acrobat Pro 8.1.2. The standard properties that were included in the Word file were transferred to the PDF file but none of the custom properties were transferred. I used the Standard conversion setting and the "Convert Document Information" checkbox was checked. Am I doing something wrong or does Acrobat only transfer the standard properties by design?
    Thanks
    Greg

    Thanks for the response. The properties I'm referring to in the Word file are those found under File > Properties. The dialog box that opens has a "Summary" tab that includes a set of standard properties (e.g. Author, Title, etc.). The dialog box also has a "Custom" tab where you can add custom properties in the form of name/value pairs. So if I want to add a custom property I enter the property name (i.e. "File Number") and the value (i.e. "VTD0123456789"). I am using PDF Maker and not printing to the Adobe PDF printer (although I tried that too this morning and the properties still didn't transfer).

  • How Do I Display Custom Document Properties On the Info - Properties Page

    Hi,
    I want to create a template using Microsoft Word 2010 that has fields similar to the Standard Document Property "Title" that can be used as a fillable form that repeats data throughout the document.  I need a custom document property field
    that you can fill out on the title page and will simultaneously change the same field that is in the header, footer, and file -> info -> properties page. 
    For example, I want to create a document property field called "Product ID #" that shows the title of the property on the file -> info -> properties page as "Product ID #" and the content to show up as the information
    a user entered into the field on the first page.
    Right now I have a standard document property that I am using as a field on the front page for the Title which has user defined content on the front page.  This field has default content I set up to be "Product Specification Template". 
    I inserted this field by using quick parts.  I want to be able to create a field that behaves like this called "Product ID #".  I understand you can create custom form fields that repeat using legacy fields, but I need a way for them
    to show changes instantly after you click away from the field, without having to "update field" where necessary.
    Anyone have any idea how to create custom document properties like this? Or even how to rename standard properties such as "Status" or "Subject"?
    Thanks

    What you're asking can't all be done without a macro. You can easily enough get body content to show in the header & footer via the judicious use of Styles and STYLEREF fields (and the changes are dynamic), but getting that info into the custom
    document property would require a macro. To that end, you might use a content control with a unique Style applied to it for the data input and a ContentControlOnExit macro to update the custom document property.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • How to manage custom document properties (e.g., company name, project name)

    Hi,
    How to manage custom document properties (e.g., company name, project name, event date...) in Apple iWork Pages like it is possible in Microsoft Office Word ?
    The idea is to simplify the management of multiple instances of same piece of information in a document by writing them once as a "properties" of the document that can be referencing in different places of the document. Changing the property value, will automatically change all its instances.
    Thanks in advance for your help

    Thanks for your help Peter.
    Search-Replace and Auto-Substitution are not requivalent for me since I'm looking for something more complex.
    Suppose you have a document about an Event which occur on a specific date (e.g., 11-09-2003).
    In your document, you may be interested in...
    - sometimes display the date as '11-09-2003',
    - sometimes display the date as 'Novembre, 2003',
    - sometimes display the date as 'Sunday, November 9, 2003'.
    With a document property, you would be able to define the EventDate as 11-09-2003, and then define different specific format (e.g., 'mm-dd-yyyy', 'mmmm, yyyy'...) for each reference to the EventDate document property.
    Using Search-Replace of Auto-Substitution, it will be painful since you will have to define as one token per format of a document property (e.g., EventDateAsMMDDYYY, EventDateAsMMMMYYYY...).
    More than that, suppose you have a Numbers table inserted in your Pages document.
    You may be interested in using some document properties in formulas.
    This can't be solved using Search-Replace.
    But its ok, I will wait until this feature will be supported in Pages.

  • Win Server 2008 R2 - FSRM is not able to view Office Word 2010 custom document properties

    Hi, 
    how to view custom document properties for office 2010 files on Win Server 2008 R2 - FSRM.
    Word 2003 custom document properties are reportable and also visible after: Right click on file/Properties/Custom
    Word 2010 there is no Custom menu after: Right click on file/Properties/Custom
    Any suggestion ?
    TH

    Hi Tomas,
    To view custom properties in Office 2010:
    1. Click the File tab.
    2. Click Info.
    3. Click Properties, and then select Advanced Properties
    4. Click the Custom tab
    Regarding this point, the following article can be referred to for more information.
    View or change the properties for an Office file
    http://office.microsoft.com/en-in/word-help/view-or-change-the-properties-for-an-office-file-HA010354245.aspx
    In addition, for this is more related to Office, in order to get better, we can also ask for suggestions in the following forum.
    Office Forum
    http://social.technet.microsoft.com/Forums/office/en-US/home
    Best regards,
    Frank Shen

  • Custom document properties accessible via Javascript?

    I don't see any method in the Document Javascript object model to read custom properties that have been added to a document.
    Is this not accessible to Javascript? I will resort to using a field in the document to store information about the file that I'd like to access if not, but I would prefer to put this info (which will not change, btw) into the custom properties if possible.

    Under 'Document Properties' (where you can enter an Author, Subject, Keywords, etc.) there is an additional tab which allows you to define custom properties. What I want to do is store info (stuff like version, a document ID#, etc) in a common place that can be accessed by my script.
    Edit - in Acrobat 7 the menu is 'Document Properties', in Acrobat 8, the menu is 'Properties'.

  • Using REST API to promote Document Properties into SharePoint document library

    Hi,
    Is it possible to extract Document properties of a file and update library column using REST API?
    Thanks,
    techie

    Hi,
    We can use the following REST endpoint to get document property:
    http://site/_api/web/getfilebyserverrelativeurl('/Shared Documents/filename.docx')/<property name>
    https://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx#bk_File
    If you want to update document library column, the following blog for your reference:
    Updating SharePoint List items with SharePoint’s REST API in JavaScript
    http://community.rightpoint.com/blogs/viewpoint/archive/2014/10/23/updating-sharepoint-list-items-with-sharepoint-s-rest-api-in-javascript.aspx
    Thanks,
    Dennis Guo
    TechNet Community 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]
    Dennis Guo
    TechNet Community Support

  • Is it possible to give link of document library in sharepoint list in 2010

    Hi All,
    Using share point list data we have shown in reports. For this we create 1 view and shown as reports. we have 1 document library with title field, same field is in list also.when we click on link on list - it redirects to library folder.
    Is their anyway to do that where as list is custom list.
    Any help is appreciated..!

    Hi Bangara,
    According to your description, my understanding is that you want to create a link in your list, then this link is linked to a library folder. Is it right?
    You can create a Hyperlink field in your list as opening your list->clicking on ‘Create Column’ under List ribbon, then type a name for the column, select the type of the column is Hyperlink or Picture, and Format URL is :Hyperlink.
    After that, when you create a new item or edit an item in the list, you can type the URL of the related library folder in this link field.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How can i add custom document properties in Content Services?

    Hello guys.
    I have question. I need to add custom attributes of document uploaded in CS.
    I know about categories, and it will help me.
    But i need it on the properties page? in main tab, where docname, creationdate, etc. appears. Is it possible?
    Ideally it should appears in main window of CS, without any additional clicks.
    Is there any way organize it without development new Web Services?
    Thank you.

    One possible way of doing this would be to use the $A mapping in the send_access mapping table. see http://docs.iplanet.com/docs/manuals/messaging/ims52/ag/filter.htm#15965
    This will depend on what value you wish to use in the header and when and where during the message routing you want to add the header.
    You can use channel level filters on the send_access or orig_send_access mapping table to control at which point the header is added but without knowing more about what you wish to do and which conditions you wish to use to add the header it is difficult to say more. It is possible to use a "customer supplied routine (in the form of a shared object call) from the mapping process, but during the mapping process the only information available to the routine is the sender and recipient info so that probably isnt suitable for your purposes.
    Another method of header manipulation in IMS is channel header option files but these should be used with caution and will only operate on "known" headers and as a result are probably not of too much use to you either.
    The conversion channel does have access to the original message headers http://docs.iplanet.com/docs/manuals/messaging/ims52/rm/mta_conf.htm#1044412
    but Im afraid I cant point you at an example of where it has been used like this - perhaps someone else can.
    WRT moving the message to the top of the message list - I presume this is from the clients perspective - How did you accomplish this in NMS as message views and sorting are almost exclusively a client responsibility ?
    Also have you looked at the ENS service available with IMS?
    Sorry I cant offer anything more than that but without knowing what functions your previous SMTP plugin performed its a bit difficult.
    Ciaran

  • Not moving the .pdf files from Drop Off Library to my custom document library in sharepoint 2013

    Hi Team,
    I am trying to move the .pdf files from drop-off library to custom library.
    For the above requirement i am writing content organizer rule condition like (On Group: Document content types & Type: Document)
    Property: Name
    Operator: Ends with
    value: .pdf
    and Setting value in target location like
    /sites/MS/ProductGuides
    How to solve the issue
    If help appriciated
    Regards,
    Dhaya

    Hi Dhaya,
    I created a Content Organizer rule like this:
    When uploading a .pdf file to the Drop Off library, it is moved to the destination library immediately:
    I suggest you create a similar rule as above for another test to see if the issue still persists.
    Thanks 
    Patrick Liang
    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]

  • Document properties form SharePoint to Word

    I opened word document in MS Word and I want to insert value from my Sharepoint column "aaa" in that document.
    When I try to do it from GUI, it works:
    "Insert" tab --> "Quick Parts" --> "Document Property" --> "aaa"
    and the value is inserted in word document.
    but when it try to it directly like this, it doesn't work:
    Ctrl + F9 --> { DOCPROPERTY aaa }
    or
    Ctrl + F9 --> { DOCPROPERTY "aaa" }
    And I need this. What am I doing wrong??

    Hi,
    As I discussed with my colleague on Office application, the Document property we can access from File tab is different from the DOCPROPERTY we can locate in Fields.
    If you would like to add the "aaa" to document, we could add it manually.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Document properties aren't syncing up with SharePoint in Record Center Libraries

    In a record center's document/record library, I'm not able to link word document properties with sharepoint item attributes using "Quick Parts" as I can with Document Libraries.
    Could this be because of a separate issue with how the Record Center handles properties?

    Hi Dnerd,
    We have found this issue. We can reproduced this issue as the followings:
    Create a Team site, create a document library
    In the library, create a column called Test1, then upload a document to the library
    Open the document with office app. In the Quick Parts->Document property, we can find the name of the custom column Test1
    Create a Record Center, create a custom column Test2 in Record library, then upload a document to the library
    Open the document with office app. In the Quick Parts->Document property, we can not find the name of the custom column Test2
    Then create a new library in the Record Center, and create a column for the library. Do a same test, the result is same with the result in Record library.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Replace document properties using powershell

    Hello ,
    I have document library. It has one column of categories. There are multiple categories tagged for many document .I want to replace some old categories with new one using powershell.
    In other words, first i need to check if that item column has that property if yes replace it with new property. 
    I dont want to change properties manually as this need checking out document. 
    Please guide. powershell script will be helpful for me.

    http://blogs.msdn.com/b/paulking/archive/2011/10/04/using-powershell-scripts-to-modify-document-properties-in-sharepoint-2010.aspx
    # Load SharePoint library
    [system.reflection.assembly]::LoadWithPartialName("Microsoft.Sharepoint")
    # Connect to the site collection http://SP2010 and store the object in the $site variable
    $site = New-Object Microsoft.SharePoint.SPSite("http://SP2010")
    # Connect to the root site in the site collection and store the object in $root
    $root = $site.rootweb
    # Store the Shared Documents document library in a variable $Docs
    $docs = $root.lists["Shared Documents"]
    # Display all the documents, their titles, names and IDs
    $docs.items | format-table -property title,name,id
    # Updates the title for each item in the list with Name
    $docs.items | ForEach { $_["Title"] = $_["Name"]; $_.Update() }
    # Display all the documents, their titles, names and IDs
    $docs.items | format-table -property title,name,idOr try http://sharepoint.stackexchange.com/questions/78084/how-to-update-document-meta-data-using-powershell$listItem = $web.GetListItem($file.ServerRelativeUrl);
    $listItem.File.Checkout();
    $listItem.Properties['My Cust Prop 1'] = 30
    $listItem.Properties['My Cust Prop 2'] = '2012-10-25T00:00:00Z'
    $listItem.Update();
    $listItem.File.Checkin('Updated')http://sharepoint.stackexchange.com/questions/61159/get-document-properties-keys-valuehttp://social.technet.microsoft.com/Forums/ro-RO/db9191e4-c1b6-4d4b-aa58-a352da1839fc/powershell-script-to-create-document-libraries-with-specific-properties?forum=sharepointadminprevious
    If this helped you resolve your issue, please mark it Answered

  • Creating Dropdown as custom webpart properties

    Hi,
    I have currently created a custom string (textbox) webpart property.
    I would like to add another webpart property which is of dropdown model (enum). However, I am not able to create and associate a default value.
    I want to create a enum as below:
    public enum _ddlPager { 10, 20, 50,100 }
    And also set the default value as 10.
    I have already checked:
    http://www.ashokraja.me/articles/How-to-create-a-custom-property-and-set-a-default-value-in-a-SharePoint-2013-Visual-WebPart
    http://www.learningsharepoint.com/2013/08/22/create-custom-webpart-properties-for-sharepoint-2013-visual-webpart/
    But I was not able to add the numbers.
    How to create a dropdown for custom webpart property?
    Thanks

    Hi,
    Thanks for the reply.
    I have tried like this, but the code has errors:
    #region Custom web part property
    private propertyPager _ddlpropertyPager ;
    public enum propertyPager
    _1a = 10,
    _2a = 20,
    _3a = 50,
    _4a = 100
    [WebBrowsable(true), Personalizable(PersonalizationScope.Shared)]
    public propertyPager propertyPageNumbers
    get { return _ddlpropertyPager; }
    set { _ddlpropertyPager = value; }
    public override EditorPartCollection CreateEditorParts()
    ArrayList editorArray = new ArrayList();
    CustomProperty edPart = new CustomProperty();
    edPart.ID = this.ID + "_editorPart1";
    editorArray.Add(edPart);
    EditorPartCollection editorParts = new EditorPartCollection(editorArray);
    return editorParts;
    public void SaveChanges()
    this.SetPersonalizationDirty();
    //Create a custom EditorPart to edit the WebPart control.
    private class CustomProperty : EditorPart
    DropDownList _ddlPager;
    public CustomProperty()
    Title = "Custom Properties";
    public override bool ApplyChanges()
    SummaryWP part = this.WebPartToEdit as SummaryWP;
    part.propertyPageNumbers = ddlPage.SelectedValue.ToString();
    part.SaveChanges();
    return true;
    public override void SyncChanges()
    EnsureChildControls();
    SummaryWP part = (SummaryWP)WebPartToEdit;
    _ddlPager.SelectedValue = part.propertyPageNumbers;
    protected override void CreateChildControls()
    Controls.Clear();
    _ddlPager = new DropDownList();
    Controls.Add(_ddlPager);
    protected override void RenderContents(HtmlTextWriter writer)
    writer.Write("Items Per Page :");
    writer.WriteBreak();
    _ddlPager.RenderControl(writer);
    writer.Write("");
    writer.WriteBreak();
    writer.Write("--------------------------");
    private DropDownList ddlPage
    get
    EnsureChildControls();
    return _ddlPager;
    #endregion }}
    Getting error in function "Apply Changes" and "Sync Changes"
    How to fix this?
    Thanks

  • How to Implement custom share functionality in SharePoint 2013 document Lib programmatically?

    Hi,
    I have created custom action for Share functionality in document library.
    On Share action i'm showing Model pop up with Share form with addition functionality.
    I am developing custom share functionality because there is some addition functionality related to this.
    How to Implement custom share functionality in SharePoint 2013  document Lib pro-grammatically?
    Regards,
    - Siddhehswar

    Hi Siddhehswar:
    I would suggest that you use the
    Ribbon. Because this is a flexible way for SharePoint. In my project experience, I always suggest my customers to use it. In the feature, if my customers have customization about permission then i can accomplish this as soon
    as possible. Simple put, I utilize this perfect mechanism to resolve our complex project requirement. Maybe we customize Upload/ Edit/ Modify/ Barcode/ Send mail etc... For example:
    We customize <Edit> Ribbon. As shown below.
    When user click <Edit Item>, the system will
    render customized pop up window.
    Will

Maybe you are looking for

  • Dvi to video, no display under bootcamp

    Hello there, and here is my situation: i have a macbook pro running bootcamp, windows xp and an ati x1600. i recently purchased apples dvi to video adapter for the dvi port on my macbook pro but it will not send a signal (or at least a correct signal

  • Short dump in report generation for bex query

    Hi, I have e newly installed SAP NetWeaver 7.3 and I'm not able to run BEx-Queries. When I start transaction RSRT and try to generate the report for the selected bex query, I get the following short dump: Category               ABAP Programming Error

  • I share an itunes account with me mum is there any way to split my phone off while not deleteing my mums stuff as well

    i share an itunes account with me mum is there any way to split my phone off while not deleteing my mums stuff as well?

  • Tty display problems with nvidia and uvesafb

    I'm trying to get my console to display correctly at 1080p; trying to do so through GRUB was always an absolute nightmare. The console displays fine with nouveau, but nouveau causes the infamous pink line bug, which is simply too irritating to ignore

  • Viewing Stylesheet in Design view

    HI, Two of us are working on the same website, sharing the same files.  In our site set up we both are using the same shared drive with the files. When I view a page in design view it looks fine.  When the other person views the page in design view i