cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PratInd
Regular Visitor

BadRequest - Move File

I am working on building an automated approval flow in sharepoint. Part of that flow is that once a document has been approved, it should move to a different sharepoint folder. 

But the move part of the process is not working and giving a BadRequest error. It doesn't have any more details about the cause of the issue. 

Need assistance!!

 

PratInd_0-1664193336179.png

 

 

Actual Flow:

PratInd_0-1664197394170.pngPratInd_1-1664197432698.png

 

PratInd_0-1664197200523.png

 

 

5 REPLIES 5
vayinapurapu1
Resolver II
Resolver II

is the folder is in same library? or in different library?

Cheers,

Vinay. 

v-chengfen-msft
Microsoft
Microsoft

Hi @PratInd 

Could you tell me:
1. What is action[Set content approvel status]?
2. Are the data structures of the two documents exactly the same?


Could you show more details about your flow or folder details?
(Pay attention to protecting personal privacy)

 

 

Here is a test of moving files for your reference:

In order to avoid the problem of file being locked, I added a delay in flow

Here is a link for your reference:

https://www.tachytelic.net/2020/11/power-automate-locked-document/

 

Documents:

vchengfenmsft_0-1664259294116.png

 

vchengfenmsft_1-1664259294120.png

 

 

 

 

vchengfenmsft_2-1664259294127.png

 

 

Best Regards

Cheng Feng

 

 

in the same library

 

PratInd
Regular Visitor

Hello @v-chengfen-msft ,

1. So set approval status blade moves the document from Pending to Approved status

2. data structures of the two documents are exactly the same

3. i am attaching the entire flow down here


a. 

PratInd_0-1664274798457.png

 

b. 

PratInd_2-1664274974734.png

PratInd_3-1664275012775.png

PratInd_4-1664275052648.png

 

Hi @PratInd 

I guess that [Set content approval status] changes the data type of the two folders.

Maybe you can try:

Add the status column to both lists, and then after the audit passes, you can change the file status to Approve.

 

Best Regards

Cheng Feng

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,225)