AnsweredAssumed Answered

how to resolve Forbidden-"Access Denied" error when copy document to subsite library

Question asked by nehachauhan on Aug 25, 2017
Latest reply on Aug 30, 2017 by nehachauhan

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..