Connect an Adaptive Form to Microsoft® SharePoint Document Library
- Applies to:
- Experience Manager as a Cloud Service
- Topics:
- Adaptive Forms
- Core Components
CREATED FOR:
- User
- Developer
To use the Submit to SharePoint Document Library Submit Action in an Adaptive Form:
- Create a SharePoint Document Library Configuration: It connects AEM Forms to your Microsoft® Sharepoint Storage.
- Use the Submit to SharePoint submit action in an Adaptive Form: It connects your Adaptive Form to configured Microsoft® SharePoint.
1. Create a SharePoint Document Library configuration
To connect AEM Forms to your Microsoft® Sharepoint Document Library storage:
-
Go to your AEM Forms Author instance > Tools > Cloud Services > Microsoft® SharePoint.
-
Once you select the Microsoft® SharePoint, you are redirected to SharePoint Browser.
-
Select a Configuration Container. The configuration is stored in the selected Configuration Container.
-
Click Create > SharePoint Document Library from the drop-down list. The SharePoint configuration wizard appears.
-
Specify the Title, Client ID, Client Secret and OAuth URL. For information on how to retrieve Client ID, Client Secret, Tenant ID for OAuth URL, see Microsoft® Documentation.
-
You can retrieve the
Client ID
andClient Secret
of your app from the Microsoft® Azure portal. -
In the Microsoft® Azure portal, add the Redirect URI as
https://[author-instance]/libs/cq/sharepoint/content/configurations/wizard.html
. Replace[author-instance]
with the URL of your Author instance. -
Add the API permissions
offline_access
andSites.Manage.All
to provide read/write permissions.TheSites.Manage.All
is a permission scope in Microsoft’s Graph API that grants an application the ability to manage all aspects of SharePoint Sites such as deleting or modifying Sites.NOTE
You can also configure the SharePoint Sites with limited access by using theSites.Selected
permission scope in Microsoft’s Graph API. TheSites.Selected
is a permission scope in Microsoft’s Graph API that allows more granular and restricted access to SharePoint sites. -
Use OAuth URL:
https://login.microsoftonline.com/tenant-id/oauth2/v2.0/authorize
. Replace<tenant-id>
with thetenant-id
of your app from the Microsoft® Azure portal.NOTE
The client secret field is mandatory or optional depends upon your Azure Active Directory application configuration. If your application is configured to use a client secret, it is mandatory to provide the client secret.
-
-
The
offline_access Sites.Selected
permission scope in Microsoft’s Graph API that allows more granular and restricted access to SharePoint sites. Theoffline_access Sites.Manage.All
permission scope in Microsoft’s Graph API that allows full access to SharePoint sites. -
Click Connect. On a successful connection, the
Connection Successful
message appears. -
Now, select SharePoint Site > Document Library > SharePoint Folder, to save the data.
NOTE
- By default,
forms-ootb-storage-adaptive-forms-submission
is present at selected SharePoint Site. - Create a folder as
forms-ootb-storage-adaptive-forms-submission
, if not already present in theDocuments
library of the selected SharePoint Site by clicking Create Folder.
- By default,
Now, you can use this SharePoint Sites configuration for the submit action in an Adaptive Form.
2. Use SharePoint Document Library Configuration in an Adaptive Form
You can use the created SharePoint Document Library configuration in an Adaptive Form, to save data or generated Document of Record in a SharePoint folder. Perform the following steps to use a SharePoint Document Library storage configuration in an Adaptive Form as:
-
Create an Adaptive Form.
NOTE
- Select the same Configuration Container for an Adaptive Form, where you have created your SharePoint Document Library storage.
- If no Configuration Container is selected, then the global Storage Configuration folders appear in the Submit Action properties window.
-
Select Submit Action as Submit to SharePoint.
-
Select the Storage Configuration, where you want to save your data.
-
Click Save to save the Submit settings.
/folder_name/form_name/year/month/date/submission_id/data
./folder_name/form_name/year/month/date/submission_id/data
directory. However, if you select Save Attachments with Original Name, the attachments are stored in the folder using their original filenames.
Related Articles
- Send email
- Submit to SharePoint Document Library
- Submit to SharePoint List
- Submit using Form Data Model
- Submit to Azure Blob Storage
- Submit to REST endpoint
- Submit to OneDrive
- Invoke an AEM Workflow
- Submit to Power Automate
- Submit to Workfront Fusion
- Connect Adaptive Form to Salesforce application
- Connect an Adaptive Form to Microsoft® Dynamics
- Connect an Adaptive Form to Adobe Marketo Engage
- Create custom submit action