SharePoint Document Library "Group By" Infopath Forms w/ Corresponding Word Documents - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

SharePoint Document Library "Group By" Infopath Forms w/ Corresponding Word Documents

Last post 09-20-2019 08:47 AM by jvazquez. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-18-2019 05:45 AM

    • jvazquez
    • Not Ranked
      Female
    • Joined on 05-07-2019
    • Massachusetts
    • Posts 14

    SharePoint Document Library "Group By" Infopath Forms w/ Corresponding Word Documents

     Hi,

     I have a InfoPath form published to a SharePoint Library.  In this library, Word documents are also uploaded.  I am trying to modify the view of the library to group the InfoPath forms with their corresponding Word Documents.  Both document types contain a "Policy Number" and "Policy Name" and I hoped to group the documents using either of these fields.  Is there a way to set this information from within the documents so they automatically group when the saved to the library?  Here is what I have tried so far:

    -Set the SharePoint Title column from within the Word document properties prior to uploading to SharePoint.  This worked for the word document however I cannot figure out a way to set the title column field from InfoPath. 

    -Create a column in SharePoint for Policy Number.  Add it as a quick part to the Word document after its been uploaded to the library.  Then add the policy number to the quick part and then save it back to the library.  This worked for word however again, I cannot figure out a way to set this field using InfoPath.

     I guess as a last resort, I can make it entirely manual by making the new column required and adding the policy number or name after the documents have been saved to the library so that they group properly.

     Do any of my infopathdev friends on here have any recommendations on a better approach? 

    Edit to add that after further review, Policy Number will not work as some of these policies are new and have yet to been assigned a policy number so I guess its best to use a Policy Name. 

  • 09-19-2019 12:59 PM In reply to

    Re: SharePoint Document Library "Group By" Infopath Forms w/ Corresponding Word Documents

    I wonder about using a calculated value? i.e., if the file type is XML, use the field from the form, or if it is not, use the "Title" or other column from the Word doc?
    Hilary Stoupa

  • 09-20-2019 05:04 AM In reply to

    • jvazquez
    • Not Ranked
      Female
    • Joined on 05-07-2019
    • Massachusetts
    • Posts 14

    Re: SharePoint Document Library "Group By" Infopath Forms w/ Corresponding Word Documents

     Hi Hilary, Thank you for your response.  Do you mean setting a calculated value in the Group By section of modifying a view in sharepoint?  I currently do not see that as an option. 

  • 09-20-2019 08:23 AM In reply to

    Re: SharePoint Document Library "Group By" Infopath Forms w/ Corresponding Word Documents

    No - I was thinking maybe create a calculated column in your library and then group by that? I'm not 100% on whether we can group by a calculated column in a SharePoint view, but it seems worth a try....
    Hilary Stoupa

  • 09-20-2019 08:47 AM In reply to

    • jvazquez
    • Not Ranked
      Female
    • Joined on 05-07-2019
    • Massachusetts
    • Posts 14

    Re: SharePoint Document Library "Group By" Infopath Forms w/ Corresponding Word Documents

     Thanks Hilary, I will give this a try

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.