Skip to main content
Nintex Community Menu Bar
Answer

Attempted to perform an unauthorized operation in custom Javascript

  • August 24, 2021
  • 1 reply
  • 537 views

Forum|alt.badge.img+6

On a list form (classic designer on O365), I have a Button of type JavaScript and a function name on Client Click property.

The JavaScript is added as a file reference (SiteAssets) and gets called if I click the Button.

Inside this function I make an ajax call to retrieve list items from the same list.

I get "Attempted to perform an unauthorized operation" when calling the REST-Api of SharePoint-Online by ajax.

I am accessing the Form with a high privileged user.

So I assume that this has to do with API permissions for SharePoint Online in Azure AD regarding Nintex Forms for Office 365?

 

 

Best answer by Levy

Found the answer myself. I totally missed that I am in an Add-In and did not used the RequestExecutor.

Credits to . He helped with the following post: Solved: REST access denied from nintex forms office 365 - Nintex Community

1 reply

Forum|alt.badge.img+6
  • Author
  • Answer
  • August 26, 2021

Found the answer myself. I totally missed that I am in an Add-In and did not used the RequestExecutor.

Credits to . He helped with the following post: Solved: REST access denied from nintex forms office 365 - Nintex Community