Hi guys!
I have built a SharePoint on-premise which has 1 main site with 3 public libraries and then subsites where every area will work their files privately (1 library per subsite) . In the main site, there is a list which will contain all the files uploaded in every subsite library.
The thing is, I have problem attaching the content of the subsites library files into the item in the Master list. When I am trying to add the attachment I get an error when finding the file.
I have different flows:
1. One flow for each subsite library that when it creates or modify a files, it creates or updates an item in the Master list. If it exists it updates the item and if not it creates it with all the metadata from the subsite library columns.
2. Trigger condition flow that when one column of the files is modified from "No" to "Yes", it runs the flow and it publishes from the private subsite library to the public one.
So in both flows I have the same problem with the getting the attachment of the file in the subsite.
I am not getting it and can't understand what I am doing wrong
The error I get when putting body/ID is that it gets the /Ciutadania (that is the subsite of the SP on-premise) so it doesn't get the ID value (in this example 479), it gets the part of the site adress (/Ciutadania) + the body/ID (479) so it doesn't exist.
Is there a way to get the ID file identifier?
The next question is: with the flow I am showing, will the private library files update when the version in the public library will upgrade from 1.0 to 2.0?
Like, will it changed to the approved one or should I add something more?
I can't try it because I can't make the flow run.
I would appreciate some help with this issue :)
Thanks!!