Fetch profile name of portal user
Table of Contents
Note: This task is applicable only to Zoho Creator.
Overview
This deluge task fetches the profile name of a specified customer portal user.
Return
This task returns the profile name of a specified customer portal user in TEXT format.
Syntax
<variable> = thisapp.portal.profileForUser( <userDetail> );
Param | Explanation |
---|---|
<variable> (optional) | Variable which will hold the returned value. |
<userDetail> | Email ID or the Username of the customer portal user whose profile name will be returned.
Data type is TEXT. |
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 1: Fetch profile name of a customer portal user
The following snippet to fetch the profile name of a customer portal user.
profName = thisapp.portal.profileForUser("john@zylker.com");
Example 2: Separate customer portal users from a list of email addresses
The following example returns the list of customer portal users among the specified email addresses:
//List of Email IDs to process email_list = {"shawn@zylker.com", "hailee@zylker.com", "harry@zylker.com", "kate@zylker.com"}; //List to store portal users portal_users = List(); // Iterate through the list of email addresses for each email in email_list { //Check if email address is a customer portal user result = thisapp.portal.profileForUser( email ); if(result != "") { portal_users.add(email); } } info portal_users;