Assign profile to portal user
Note:
- This task is applicable only to Zoho Creator.
Overview
This deluge task assigns a specified profile to specified customer portal user.
Return
This task returns a MAP value in the format {"profileName":"<specified_profile>","screenName":"<specified_email>"}
Syntax
<variable> = thisapp.portal.assignUserInProfile(<email_ID>, <profile_name>);
Param | Explanation |
---|---|
<variable> (optional) | Variable which will hold the returned value. |
<email_ID> | Email id of the customer portal user to whom the profile must be assigned. Points to note for this parameter:
Applicable data types are List and String. |
<profile_name> | Name of the profile which needs to be assigned to the specified customer portal user. Points to note for this parameter:
Data type is String. |
This task can be used in the following events
When a record is Created | ||
On Load | Yes | |
On Validate | Yes | |
On Success | Yes | |
On User input | Yes | |
Subform on add row | Yes | |
Subform on delete row | Yes | |
When a record is Created or Edited | ||
On Load | Yes | |
On Validate | Yes | |
On Success | Yes | |
On User input | Yes | |
Subform on add row | Yes | |
Subform on delete row | Yes | |
When a record is Edited | ||
On Load | Yes | |
On Validate | Yes | |
On Success | Yes | |
On User input | Yes | |
Subform on add row | Yes | |
Subform on delete row | Yes | |
When a record is Deleted | ||
On Validate | Yes | |
On Success | Yes | |
Other workflow events | ||
On a scheduled date | No | |
During approval process | Yes | |
During payment process | Yes | |
In a Custom Function | Yes | |
In an Action item in report | Yes |
Example
A sample snippet assigning "Customer" profile to a customer portal user.
thisapp.portal.assignUserInProfile("john@zillum.com", "Read");