Create Additional Portal Item
You may wish to create a Workflow Rule or run code in the After section of a Blueprint transition that automatically creates a Client Portal Item (and links it to an existing Client Portal). For example, you can use this when you receive a form response from a client to create additional items based on their response to their form.
The below script will use a ZE Portal built-in function to create an Additional Portal Item Record:
- // CHANGE THE VALUES DENOTED BY ##:
- Portal_Record_ID = ##PORTAL-RECORD-ID##; // Change this to the Portal_Record_ID you want the new Portal Item Record to be added to - This is an integer, so must NOT be surrounded by inverted commas
- Item_Name = "##Item-Name-Here##"; // You can use Merge Tags here, for example ${Contacts.Full_Name} - MUST be surrounded by inverted commas
- Item_Type = "##Item-Type-Here##"; // This can be either "Document", "Question", or "Form" - MUST be surrounded by inverted commas
- Item_Details = "##Item-Question-Guidance-or-URL-Here##"; // You can use Merge Tags here, for example ${Deals.Deal_Name} - Must be surrounded by inverted commas
- //
- Args_Map = map();
- Args_Map.put("Portal_ID", Portal_Record_ID);
- Args_Map.put("Item_Name", Item_Name);
- Args_Map.put("Item_Type", Item_Type);
- Args_Map.put("Item_Details", Item_Details);
- //
- Params_Map = map();
- Params_Map.put("arguments", Args_Map);
- //
- crmAPIRequest = map();
- crmAPIRequest.put("params", Params_Map);
- //
- Response = zep.Create_Portal_Item(crmAPIRequest);
Related Articles
Create Portal Script
You may wish to create a Workflow Rule or run code in the After section of a Blueprint transition that creates a Client Portal Record (with all the Client Portal Items from your chosen Template). The below script will use a ZE Portal built-in ...
Update Blueprint Script
You may wish to create a Workflow Rule that runs when something changes on the Portal Record (for example, when the Portal Record is marked as "Completed") that updates another record's stage. This is simple when the record is not within a blueprint, ...
How to a Create Client Portal Template
How to use Merge Tags
ZE Portal allows you to use Merge Tags in many fields within the Portal, Portal Items, and Portal Templates Just type "#" followed by the a the name of the field, for example "#last" will show you all the merge tags that are available with "last" in ...
How to use Forms in your Client Portals
One of the Portal Item Types is a "Form". This allows you to link the End User to an external Form (such as a Zoho Forms form, a Gravity Forms form, and many other online forms that allow you to set hidden fields that are filled via the URL ...