Populating information upon form submission using a web service
Web services can perform many functions, such as sending data to other forms or applications. The following instructions describe how to use a web service to add information to a form automatically after it is submitted.
About this task
Domino Leap can look up user information for you using a web service call. For example, you can
connect a manager with a user submitted form using an intranet directory search.
Note: You can add an activity to any Action in any stage.
Procedure
- Click the Workflow tab.
- Click the Add Activity button in a submit button on the diagram, or select the button and click Add Activity in the side panel.
-
In Activity Settings, select Call a
Service.
For this example, select the directory for your company intranet.
- Click Configure Service.
-
Click the Inputs tab. Map the form
fields to the input parameters of the service.
- Select Current User from the Select source: window.
- Select Search Name from the Select target: window.
- Click the connector icon located between the two windows to link the source and the target.
The connected source and target are displayed in the Assigned Inputs section of the page. -
Click the Outputs tab. Map the outputs
of the service to the Manager role.
- Select Manager Name from the Select source: window.
- In theSelect target: window, choose a form item from the list.
- Click the connector icon located between the two windows to link the source and the target.
After the source and target are linked, they appear in the Assigned Outputs area of the screen. -
Click OK to exit the Call a Service
window.
When the user clicks Submit, Domino Leap calls a service to populate the manager’s name into the selected form item.