Introduction
In this article, we will explore how to query/filter the SharePoint online list from Another SharePoint online subsite using REST API In SharePoint online. There are a lot of ways to query lists from another SharePoint online. This article is solely for the purpose of guiding you on how to solve permission issues when querying list from another SharePoint subsite. We use Nintex Workflow Call HTTP Web Service action to call the REST API to filter the list from another SharePoint subsite.
Permissions
The workflow app needs to be given full control at the site collection. The app permissions for workflow can be configured by following the steps below (refer to https://msdn.microsoft.com/en-us/library/office/jj822159(v=office.15).aspx for more info):
To avoid Unauthorized Issues - you will need to add the app permissions at both the site and sub site levels.
First, you need to enable the "Workflows can use app permissions" feature at the site you are running the HTTP web service call workflow on.
To allow workflow to use app permissions
- Click the Settings icon at the top of the page (Gear cog icon).
- Go to Site Settings.
- Under the Site Actions section, select Manage site features.
- Locate the feature called 'Workflows can use app permissions', as shown in the screenshot below, and then click Activate.
Next, we need to grant full control to the workflow app on the subsite you are running the web service call against.
To grant full control permission to a workflow
- Navigate again to the Site Settings page on the site you are running the workflow from.
- Under the Users and Permissions section, select Site app permissions.
- On this page the app permissions will be displayed for all apps on your site. Copy the client section of the App Identifier for Workflow. This is the identifier between the last "|" and the "@" sign
Note down the workflow app id which is between i:0i.t|ms.sp.ext| and @

- Then navigate to the 'Grant permission to an app' page for the site you are trying to run the web service call against. This must be manually navigated by typing the following URL: http://YourSite/_layouts/15/appinv.aspx
This will take you to a page that looks similar to this:
Follow the numerical point, as shown in the below screenshot.

- Paste the workflow App Id that you copied in step three and click Lookup. This will fill the Title, App Domain, and Redirect URL fields automatically.
- In the Permissions Request field, paste the following XML:
*(note this XML is literal and does not need to be modified in any way)- <AppPermissionRequests>
- <AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl" />
- </AppPermissionRequests>
- Click Create.
- You will then be taken to a page where you are asked to trust the Workflow app. Click Trust It.
Scenario
Sharepoint Online Site_B we add the Employee No then apply query on Sharepoint Online Site_A to get the employee Title based on Employee No using Nintex workflow.
Objective - Implementation of Nintex Workflow
The logic of the Nintex Workflow was built using the following steps and to configure Call HTTP Web Service Action to calling REST API



Amol KhairnarPosted Nov 15, 2019, 11:50 AM
Https://bit.ly/2q6gePp