
Please give me solution
Hi @ashuraut-12 ,
As per my understanding I have created a flow.Please find the solution.
Note: Its Just a sample flow you need make necessary changes.
Code:
Folder.GetFiles Folder: $'''C:\\Users\\OneDrive\\Desktop\\Power Automate Desktop\\Practice\\PDF\\Input''' FileFilter: $'''*''' IncludeSubfolders: False FailOnAccessDenied: True SortBy1: Folder.SortBy.NoSort SortDescending1: False SortBy2: Folder.SortBy.NoSort SortDescending2: False SortBy3: Folder.SortBy.NoSort SortDescending3: False Files=> PDF
File.ConvertToBase64 File: PDF[0].FullName Base64Text=> pdfContentBase64
Web.InvokeWebService.InvokeWebService Url: $'''https://drive.google.com/drive/home''' Method: Web.Method.Post Accept: $'''application/pdf''' ContentType: $'''application/pdf''' RequestBody: pdfContentBase64 ConnectionTimeout: 30 FollowRedirection: True ClearCookies: False FailOnErrorStatus: False EncodeRequestBody: True UserAgent: $'''Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20100312 Firefox/3.6''' Encoding: Web.Encoding.AutoDetect AcceptUntrustedCertificates: False ResponseHeaders=> WebServiceResponseHeaders Response=> WebServiceResponse StatusCode=> StatusCode
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy