"Lead capture" feature is very useful, and I think it can be extended even further, to allow the creation of custom forms that can be filled out by anonymous users, for any entity, without lead conversion.
Create other entities than Lead using "Lead capture"
Collapse
X
-
This is a workaround (Advanced Pack extension required):
- For each separate entity (custom or system) create a separate Lead Capture. In screenshot 1, pay attention to the ID of the created Lead Capture. You need to copy it for the next step.
- Create a Workflow with Trigger type Signal (screenshot 2). Where in the Signal field specify @leadCapture.681db9c1b42d938aa, where instead of "681db9c1b42d938aa" there will be your copied ID from the previous step.
- Action 1 creates a record in the entity you need and copies the required fields from the Lead created using Lead Capture.
- Action 2 deletes the Lead created using Lead Capture:
HTML Code:$id = workflow\targetEntity\attribute('id'); record\delete('Lead', $id);
👍 1 -
This is a workaround (Advanced Pack extension required):
- For each separate entity (custom or system) create a separate Lead Capture. In screenshot 1, pay attention to the ID of the created Lead Capture. You need to copy it for the next step.
- Create a Workflow with Trigger type Signal (screenshot 2). Where in the Signal field specify @leadCapture.681db9c1b42d938aa, where instead of "681db9c1b42d938aa" there will be your copied ID from the previous step.
- Action 1 creates a record in the entity you need and copies the required fields from the Lead created using Lead Capture.
- Action 2 deletes the Lead created using Lead Capture:
HTML Code:$id = workflow\targetEntity\attribute('id'); record\delete('Lead', $id);
I tried and the lead was created in "Lead" and does not show up in the custom entity. Is there anything else that I should pay attention to please?Comment
-
Yes, I created a custom entity with Person type. How to link the "name" field to the full view like in the Leads entity please? In the Leads entity, the Name field is linkable to the full view of the record. In my custom entity, the name field is not linkable. How can I make the field linkable to full view please?Comment
-
-
Thanks Victor, I am using the Lead Capture to capture field data to Custom entity, not to Leads. But when I create the Lead Capture form, I can only use the fields that I created in Leads, not the fields in the Custom entity. Therefore, I will also need to create the same fields in the Custom entity to map the data from fields in Lead Capture form to fields in Custom entity while actually they are the same fields/data. So is there anyway to clone the fields in the Leads and put them in the Custom entity OR is there anyway to use the Custom Fields in the Lead Capture form instead of using the fields of Leads? I hope you understand what I mean pleaseComment
-
If you have coding skills, you can copy the required fields from "fields" instance_name/application/Espo/Modules/Crm/Resources/metadata/entityDefs/Lead.json and from instance_name//custom/Espo/Custom/Resources/metadata/entityDefs/Lead.json in instance_name//custom/Espo/Custom/Resources/metadata/entityDefs/Your_entity_name.json. then make Rebuild (preferably via CLI). Before doing this, it is advisable to make a backup.
You can also simply open two browser windows in the GUI of your instance and create similar fields.
Is there also option to send the Lead Capture Form to emails please?
Last edited by victor; Today, 10:31 AM.Comment
Comment