Skip to main content

I have created Nintex o365 workflow to copy document from parent side to sub site document library using Rest api in "call http web service" action in my workflow. but it gives me error like below:

Forbidden - {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}}

My Rest Api: {Workflow Context:Current site URL}‍/_api/web/getfilebyserverrelativeurl('‍{Variable:DocServerRelUrl}‍')/copyto(strnewurl='/subsite/DocLib/‍{Variable:DocFileName}‍',boverwrite=true)

I have also registered workflow in "appinv.aspx" under sitecollection. Also "Workflows can use app permissions"

feature is activated in my site.

I couldn't find any proper solution for that. Please help me out if anyone knows proper solution for that..

 

Is there a reason you're not using the native Nintex Copy Document action?


because i wanted to copy my document to subsite document library.

But now i am able to do this by using "office 365 upload file" action. 


Reply