You can modify an existing user on MessangerPeople in a web form page, for example, at the same time as unsubscribing from platform.
Go to the submit button of your form web page and go to the Button actions section.
Select Sinch Engage: update user action and click on Add action to open the actions option window.
You can leave the channel option blank, if you have only one connected channel, otherwise, you can copy the channel id from Settings
In the mappings textarea you need to add a row for each field you want to update in Sinch Engage.
On each row you need to specify the Sinch Engage field to update (specify the id of the field) and the platform fields separated by ; (semicolon). E.g.:
id;form.values.phone
name;form.values.name
The mapping with field id is mandatory, otherwise no user will be found for update.
As for the platform fields you can use:
- current page fields with prefix form.values., ie. name;form.values.myformfield
- current contact fields with prefix contact.values., ie. id;contact.values.CELL
- fixed values with no prefix, ie. myuserproperty;myfixedstring
By default you will update the user fields and user properties in Sinch Engage, but you can also use some special Control fields to perform specific change of status for the user:
- blocked;1: Block the user
- blocked;0: Unblock the user
- stopped;1: Deactivate the user
- stopped;0: Activate the user
- deleted;1: Delete the user (definitely)
If you specify one of these rows in the mapping textarea, all other mappings (except the mandatory mapping with id field) will be ignored.