on 2021 Apr 01 10:02 PM
Hello. My question is similar to this question, but is none answered. I have many teams and many folders and excel templates. I need a string list of all to handle a testing check list. Doing this manually would take days maybe a week. Is there a way to get a full list of Excel templates by Team (including Company) ---> Folder(s)---> file name?
I look at apis and saw GetFolderListApplies which says it could get file name, but I do not understand how to run this and not showing up when I look at normal VBA api tools like getActiveConnetion.
Here is example of what I have:
This would be great solution (but needed for probably 300 reports)
Request clarification before answering.
Hi Anish,
I suggest getting a list of the files from the back end.
Use transaction SE16 and export UJF_DOC.
Enter the environment name in APPSET, and remove the max number of hits (defaults to 500)
One thing you need to remember with this is to hide the column DOC_CONTENT as this actually contains the file and won't export to Excel.
Just doing this you end up with a list of all files on the server (you could filter the docdesc to a particular path) but I prefer to do the filter in Excel.
If you filter in excel for DocName containing "TEAM FILES" you will get the list of files in the team folders that you wanted.
You will probably have to tidy this up a little, but you should be able to get the list in a couple of minutes....
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Easy! Sample code:
Public Sub Test()
Dim epm As New FPMXLClient.EPMAddInAutomation
Dim fld() As FolderContent
Dim lngTemp As Long
'List for Root Report folder for team Company
fld = epm.GetFolderList("WEBEXCEL", "REPORTLIBRARY", "")
For lngTemp = 0 To UBound(fld)
Debug.Print fld(lngTemp).Name & " " & fld(lngTemp).Type
Next lngTemp
End Sub
Look on Type property - if it's "Folder" then you can look on the content of this folder same way...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.