Table of Contents |
---|
Overview
The frevvo SharePoint Connector and Save to SharePoint document action wizard make it easy to create forms and approval workflows that validate information, route for signatures as required and save the data and documents to a secure SharePoint website. The Connector was designed to integrate with Office 365 SharePoint Online.
Warning |
---|
To use the SharePoint Connector, customers need a valid Office 365 SharePoint account. |
The SharePoint Connector wizard, allows you to Save the form/workflow data and metadata to a SharePoint destination. The destination could be a folder in a document library and/or a list item. With point and click tools, designers can designers can select the SharePoint destination and map form/workflow control values to the SharePoint metadata columns.
The SharePoint frevvo SharePoint wizard guides you through connecting your forms/workflows to SharePoint.
...
- Cloud Customers Connecting to SharePoint Online - This configuration has been certified by frevvo. Follow these steps:
In-house Customers connecting to SharePoint Online - This configuration has been certified by frevvo. Follow these steps:
Info frevvo only supports/certifies the SharePoint Connector running in the Apache Tomcat container.
- Configure frevvo as a SharePoint Add-in
- Download the SharePoint Connector. Rename it to sharepoint.war. Copy it to the <frevvo-home>\tomcat\webapps folder
- Configure SharePoint for your frevvo tenant
- Connect your Forms/Workflows using the SharePoint wizard.
- In-house customers using SharePoint On-premise - this configuration is supported but not certified.
- Customers using SharePoint On-premise also need an Office 365 SharePoint Online account. This is necessary to obtain an authorization token. There is no data transfer from the SharePoint On-premise to SharePoint Online.
- Customers are responsible for configuring the On-premise installation and the integration with SharePoint Online.
- The On-premise version of SharePoint must be version 2013+.
- Refer to this Microsoft website for information about how to use Office 365 to allow to allow frevvo to authenticate.
- frevvo Cloud customers connecting to SharePoint On-premise - This configuration is supported but considered unlikely as it requires your On-premise SharePoint to be exposed to the Cloud.
- Customers are responsible for configuring the On-premise installation and it's its exposure to the Cloud.
- Customers are responsible for configuring the On-premise installation and it's its exposure to the Cloud.
Configuring the SharePoint Connector
...
Info |
---|
We've provided the steps for configuring frevvo as a SharePoint App/Add-in. Keep in mind that the SharePoint UI may change from time to time, and modify as needed for your version. Refer to this Microsoft SharePoint article for more information about adding Apps/Add-ins. |
must frevvo must be added as a SharePoint provider-hosted add-in by your SharePoint Global Administrator in the Sharepoint admin center. The URL will have -admin after the domain name, e.g. https://mycompany-admin.sharepoint.com/.
...
- Navigate to https://<yourSharePointSite>-admin/_layouts/15/appregnew.aspx
Click Generate on Client ID and Client Secret.
Tip Copy the Client Id and client Secret and save them to a text file. You will need to add these values when configuring your tenant for SharePoint.
Enter a Title. The Title can be anything that can differentiate your frevvo SharePoint application from other applications.
- Enter the App Domain. The app domain field should be the server frevvo server domain name plus the SSL frevvo SSL port. It should be the same <server>:<port> as the redirect URL.
- Cloud customers: app.frevvo.com:443
- On Premise customers: <server>:8443 (or your <server>:<port> if not using the default)
Enter the Redirect URI. The Redirect URI for is frevvo is shown below where the <server>:<port> is the same host and port in the URL used to access frevvo.
Code Block title Redirect URI https://<server>:<port>/frevvo/web/sharepoint/token
Cloud customers: app.frevvo.com:443
- On Premise customers: <server>:8443 (or your <server>:<port> if not using the default)
- Remember SharePoint only allows https.
- Click Create. You will see a message such as "The app identifier has been successfuly successfully created." Copy the information on this screen and save it to a text file. You will need these values for the next step.
...
- Navigate to https://<yourSharePointSite>-admin/_layouts/15/appinv.aspx.
- In the App ID field, paste the Client ID you copied earlier. Click Lookup.
- The Title, App Domain, and Redirect URI fields should get filled with the information you entered in the last step.
Enter the Permission Request XML. Copy/paste this xml into the Permission Request XML box.
Code Block <AppPermissionRequests AllowAppOnlyPolicy="true"> <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="Manage" /> </AppPermissionRequests>
- Click Create. If prompted, click Trust It.
If you see an error that you do not have permission to trust this app, please make sure you are logged in as a global admin the Sharepoint admin center. The URL will have -admin after the domain name, e.g. https://mycompany-admin.sharepoint.com/.
Tip |
---|
We recommend that you create a separate user in SharePoint for frevvo forms connection, and use that user while configuring the Save to SharePoint wizard in frevvo forms. This frevvo-specific SharePoint user always remains active and eliminates issues if the designer user configured your forms to submit to SharePoint using their own SharePoint login and then leaves the company. |
Step 2 - Configure the frevvo Tenant for SharePoint
Cloud and On Premise customers must configure their tenant frevvo tenant to connect to SharePoint as a client. frevvo expects that customers will only be integrating with one SharePoint instance for their organization. You will need the SharePoint Client Id and the Client Secret from Step 1.
Follow these steps:
Login to as frevvo as the tenant admin.
Click the Edit Tenant link.
- Expand the SharePoint section.
The Connector URL field can usually be left blank. This field is not necessary if you are using the SharePoint Connector built-in on Cloud on frevvo Cloud or you are an On Premise customer, which are the most common scenarios. This URL is only needed if you are using Cloud using frevvo Cloud but installing the connector locally.
Expand title Click here if you need to configure the Connector URL... Enter the URL where your installation frevvo installation that is configured for SharePoint is located. This URL must use the https protocol. The URL in the Connector URL field will override the connector URL that is specified in the configuration property in the <frevvo-home>\tomcat\conf\frevvo-config.properties file.
Info The default value is shown below:
frevvo.sharepoint.connector.url=http://localhost:8082/sharepointEnter the Client Id and the Client Secret that you saved in Step 1 into the respective fields.
- Enter the SharePoint Domain Name e.g. <Your SharePoint domain name>.sharepoint.com. There is a dot between the SharePoint domain name and sharepoint.com. The SharePoint domain name is what you see in your SharePoint URL, i.e.:
- To determine the realm for your SharePoint site :
Navigate to https://<tenant>.sharepoint.com/_layouts/appprincipals.aspx - change the <tenant> to the name of your SharePoint tenant - e.g. https://frevvo.sharepoint.com/_layouts/appprincipals.aspx
Find your registered application in the list and and look at the App Identifier column. The unique identifier after the @-sign in the App Identifier is the app realm and must be entered in the Realm field.
- Click Submit
- On Premise customers can browse http://<your server:port>/sharepoint/health (replace <your server:port> with your frevvo server:port) to check the status of the connector. If the connector is up and running, you will see { "status" : "UP" }.
- Proceed to Connect Forms/Workflows with the Save to SharePoint wizard Step 3
Step 3 - Connect Forms and Workflows with the SharePoint wizard
...
Excerpt | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Login and Create Form/WorkflowLogin Log in as a designer a frevvo designer user. If you are On Premise connecting Premise frevvoconnecting to Sharepoint in the cloud, use the URL https://<server>:<SSL port>/frevvo/web/login. Example: https://localhost:8443/frevvo/web/login. Port 8443 is the default. Create your form or workflow with controls that capture the data that you want to store in the columns configured in the Lists and Libraries on your SharePoint site. Configure Send to SharePoint Document Action
Set up Route(s)You can set up a single Document Action to write to two places (i.e. SharePoint Library and List). Route 1 will be automatically expanded. Expand Route 2 to add a second destination if desired.
Mapping Multi-Value ControlsYou can map multi-value controls such as controls inside repeats, table columns, and checkboxes to Sharepoint columns. To map to a single value Sharepoint column, you can use any regular separator, such as a comma, in your repeat template syntax. This results in a single, comma-separated string value in the Sharepoint target column. For example, you can map the Items column in a table to a text column named with the syntax {,|Items}. This results in a single value sent to the target Sharepoint column as a comma-separated string, e.g "Widgets, Wingdings, Whatzits". You can also map a repeat control to a multi-value (checkbox) Choice column. In this case, you must use a special syntax to send separate values that populate the Sharepoint checkboxes. For a Sharepoint list, use the repeat separator 'json'. List: {json|Items} For a Sharepoint library, use the repeat separator ';#'. Library: {;#|Items} These separators send the control values in an array, which populates the checkboxes in the target Choice column. Clear RouteIf you configure a second Route, clicking the Clear Route button removes the information for Route 2 only. Save and TestClick thesave and test icon to save the form/workflow and bring up Test mode popup. |
...
Special characters in filenames or folder names will cause the submission to be flagged with an error in the submission frevvo submission table. We recommend POSIX naming standards as there are some special characters that are not supported by the connector.
...
When the form is submitted or the workflow is completed, submission data, metadata, and attachments are uploaded to the specified destination in your SharePoint account. To verify your stored submissions on your SharePoint website:
...
At least one designer user that is going to be connecting forms/workflows to SharePoint with the Save to SharePoint wizardStep3-ConnectFormsandFlowswiththeSharePointwizard must also be a SharePoint user with the correct privileges to provide consent if your tenant is configured with the Azure SAML Security Manager.
...
If the submission doesn't reach your SharePoint website - if does frevvo does not receive a response back from SharePoint with a status code of 200, you can find information about the error from the submission frevvo submission table.
All tenant admin(s) in your tenant or workflow admin(s) configured for specific workflows will receive a Doc Post Failure notification email to alert them that an issue has occurred. The <server-name> will be provided in the email subject. Check for some of these common issues:
...
An error in the logs like "Value does not fall within the expected range." suggests you have not set the Content Type. See Set Up Routes for details.
An HTTP 500 error with the error "The list item was saved, but attachments could not be saved because the attachments feature is currently unavailable for this list" in the SharePoint connector logs indicates you are trying to send attachments to a List that does not have attachments enabled. Please enable attachments on the list.
Max file size
The maximum size for all connectors all frevvo connectors is set to unlimited. Any size file can be uploaded to and frevvo and posted to SharePoint.
Determine the version of the SharePoint Connector you are using:
...
If your users see an error like "org.springframework.security.oauth2.client.resource.UserRedirectRequiredException: A redirect is required to get the users user's approval" when accessing or trying to submit a form, the cause is that your SharePoint Token has expired. The user who owns the SharePoint Account (usually the designer) will need to login log in and provide consent to refresh the token. You can learn more in this Microsoft Documentation. Currently, frevvo does not provide a way to generate a new refresh token automatically. This feature may be added in a future release. However, until then the SharePoint account user will have to provide consent for a fresh token every 6 months.