When the call task executes, it automatically opens the dialer pad screen of the device with the given number. While configuring this task, the vDesigner application provides you the two following options to display the phone number:
- Enter the static number that you want to display on the dialer pad screen
- You can fetch the phone number from the data store
Steps to Configure
- On the Event Configuration page, find the Task panel.
- In the Task panel, search and find the Call task.
- Drag the Call task from the Task panel to the Execution panel.
- Under Call, configure different properties as follows:
|Reference Name||The reference name specifies the name of the task. In the Reference Name box, enter the task’s name.||Yes|
|Enter Mobile Number||This property allows you to define the phone number that the dialer pad screen displays in the following ways:|
–> Static – you can simply write static(‘phone number‘). Here, the user can write any number of his/ her own choice.
For example:-static(‘9876XXXX10‘), static(‘+91 9876XXXX10‘)
–> Dynamic – you can fetch the phone number from the source database (entity store, element store, work variable store, and temp store, and then display it on the dialer pad screen.
To fetch the phone number:
1. In the Enter Mobile Number box, click the application tree icon (), and the right pane displays the Select Data area.
2. Click the Source list, and then select the data source from where the phone number is fetched.
3. After you select the source, the tree of JSON-based stores appears.
4. Select the store, and then click Select, and the Enter Mobile Number box displays the selected data store.
If you fetch the phone number dynamically, the Enter Mobile Number box displays the configured source location in the following formats:
The source location can be configured from the list of elements, and attributes (Entity store, Work Variable Store, Temp Store).
You can also change the data type of the value (mobile phone number) that is obtained from the path by simply entering the data type (For example:- string) in the above syntaxes.
For example – this.elementObj(‘name’, dataType)
|Business Rule||This property allows you to link a business rule to the task’s execution. If the user’s action satisfies the condition in the business rule, the Call task is executed.|
To configure the business rule:
–> In the Business Rule box, click the application tree icon (), and the Business Rule panel opens.
–> In the Business Rule panel, click CreateNew to configure the new business rule.
- After you configure the related properties, click Save to configure the Call task.
Was this article helpful?