Skip to main content

Search

Copy Document Libraries (with contents) from List information to Subsite

Comments

1 comment

  • Matthias_Walter

    Hi Taylor Ram,

    I haven't tried your full scenario, but I would use the "Copy Folder" action twice, which will copy content contained in this folder automatically: https://my.skybow.com/hc/en-us/articles/5769717851036 

    If I'm right, then the Bids and Estimates Documents are sublibraries of the bids list? To get the corresponding folder for each bid in these libraries you could use the following dynamic query function:

    For Bid Documents:
    [[@Web.GetFirstValueForQuery([[@Web.ServerRelativeUrl]]+'/biddocuments', '<Where><Eq><FieldRef Name="ProjectName" LookupId="TRUE" /><Value Type="Lookup">[[ID]]</Value></Eq></Where>', 'FileLeafRef')]]

    For Estimate Documents:
    [[@Web.GetFirstValueForQuery([[@Web.ServerRelativeUrl]]+'/estimatingdocuments1', '<Where><Eq><FieldRef Name="ProjectName" LookupId="TRUE" /><Value Type="Lookup">[[ID]]</Value></Eq></Where>', 'FileLeafRef')]]

    Just change the field "ProjectName" to your lookup name in the document libraries pointing to the bids list.

    Kind regards

    Matthias

    0

Please sign in to leave a comment.