web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

File Import

(0) ShareShare
ReportReport
Posted on by 2
Hello, I am working on an integration between Laserfiche Cloud and Microsoft Sharepoint. Laserfiche offers an API with endpoints that work with their repository. A specific one that is giving me trouble on Power Automate (works successfully on Postman), is the import endpoint. It expects a multipart form body. The parts would be, according to the Laserfiche API documentation, are "file", and "request". I am trying to use the Get File Content action in Power Automate to fulfill my file part, but it is coming in as raw data (illegible characters), and will exceed the line limit. What are my options now? I have attached my multipart request body in case it looks wrongly setup? I did try this both with and without the base64 encoding.
Categories:
multipart request...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    I cannot answer anything regarding the Laserfiche API, as I don't even know what it is. However, you would not use the get file content action to get the file content from the API. That is unless there is a specific Laserfiche action in Power Automate for this. Otherwise, the existing get file content actions would be specific to M365 (get file content from OneDrive, SharePoint or an Outlook attachment). You would make an HTTP request to the Laserfiche API to get the file content. 
     
    For example, I have a solution that uses the FedEx API to generate a shipping label. Once the request comes back, it provides me the URL where the file can be retrieved from. I then make another call to the FedEx API to get the file. This is the call to get the file, which you will need to adjust for the file type you expect to be returned (below is for pdf):
     
    The Label URL value is passed from my first call to request the labels. I then use the body of the above call to set a variable for creating the file:
     
    You may want to check the Laserfiche documentation to see how they return the file. You could look at a run of your flow to see what is returned. If I look at the first call I make to FedEx, I can see the URL to download the label:
  • LG-24031958-0 Profile Picture
    2 on at
    Hi David, so what I'm trying to achieve is similar although not the same. My process is retrieving a file from my sharepoint library and trying to "POST" / import it into a Laserfiche Repository. To achieve this, I am using the "Get File Content" action built into Power Automate to get the file content. It works, but its retrieves it as Raw Data, which I'm sure is normal behavior and it looks like various line of illegible characters. Since I am using the "File Content" of the "Get File Content" action in the request body, the Laserfiche POST request quickly reaches a line limit of 100 characters, due to the raw data. I tried the Base64 encoding functions but I still get a huge string of now legible characters. Any way to condense the file content?  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard