Skip to main content
Nintex Community Menu Bar

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

  • August 25, 2017
  • 2 replies
  • 35 views

Forum|alt.badge.img+1

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

 

2 replies

Forum|alt.badge.img+13

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


Forum|alt.badge.img+1
  • Author
  • August 30, 2017

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.