Activity is not created when form processor is parsed via API
-
Hello,
I tried to create a basic connection with contact form, but this time I wanted to get their connects to activity. At the bottom you jave .json file about automation I wanted to make.
CiviCRM connection is verified with the Contact Form 7 CiviCRM integration. I have tested basic getting email only for newsletter purposes and it works as intended.
When I tested contact from listed bellow it doesn’t parse anything in database.
When I tested via curl or post request, it worked. When tested in form processor for tryout it worked.
When I try to fill out contact form on the website, it is not parsed into the database. Access logs in apache2 indeed have data when I grepped rest.php but there is not activity created in the CiviCRM.Will provide any necessary tests, checks or information.
Contact form 7 bellow:
<label> Name and surname (required) [text * your-name] </label> <label> Your email (required) [email * your-email] </label> [hidden email customemail "[email protected]"] <label> The subject of the message [text your-subject] </label> <label> Your message [textarea your-message] </label> [submit "Submit"]
Configuration file for Form processor:
{ "name": "contact_test_2", "title": "contact_test_2", "is_active": "1", "description": "", "output_handler": "OutputAllActionOutput", "output_handler_configuration": [], "enable_default_data": "0", "default_data_output_configuration": [], "permission": "", "inputs": [ { "title": "customemail", "name": "customemail", "type": "String", "is_required": "0", "default_value": "[email protected]", "configuration": [], "validators": [] }, { "title": "your-email", "name": "your_email", "type": "String", "is_required": "1", "default_value": "", "configuration": [], "validators": [ { "validator": "email", "configuration": [] } ] }, { "title": "your-message", "name": "your_message", "type": "Text", "is_required": "0", "default_value": "", "configuration": [], "validators": [] }, { "title": "your-name", "name": "your_name", "type": "String", "is_required": "1", "default_value": "", "configuration": [], "validators": [] }, { "title": "your-subject", "name": "your_subject", "type": "String", "is_required": "0", "default_value": "Email iz kontakt forme", "configuration": [], "validators": [] } ], "actions": [ { "name": "xcm_contact", "title": "XCM_contact", "type": "XcmGetOrCreate", "configuration": { "contact_type": "Individual", "xcm_profile": "Profile_overide" }, "mapping": { "first_name": "input.your_name", "email": "input.your_email", "last_name": "" }, "condition_configuration": "", "delay_configuration": "" }, { "name": "customemail_xcm", "title": "customemail_xcm", "type": "XcmGetOrCreate", "configuration": { "contact_type": "Individual", "xcm_profile": "Profile_overide" }, "mapping": { "email": "input.customemail" }, "condition_configuration": "", "delay_configuration": "" }, { "name": "kreriraj_aktivnost", "title": "kreriraj aktivnost", "type": "CreateActivity", "configuration": { "priority": "Normal", "activity_type": "Phone Call", "activity_status": "Scheduled" }, "mapping": { "source_contact_id": "action.xcm_contact.contact_id", "target_contact_id": "action.xcm_contact.contact_id", "assignee_contact_id": "action.customemail_xcm.contact_id", "details": "input.your_message", "subject": "input.your_subject", "case_id": "" }, "condition_configuration": "", "delay_configuration": "" }, { "name": "dodaj_u_kontakt_grupu", "title": "dodaj u kontakt grupu", "type": "AddToGroup", "configuration": { "group_id": "62" }, "mapping": { "contact_id": "action.xcm_contact.contact_id" }, "condition_configuration": "", "delay_configuration": "" } ], "default_data_inputs": [], "default_data_actions": [], "uploaded_source_file": "1" }
Thanks in advance,
Nikola
- The topic ‘Activity is not created when form processor is parsed via API’ is closed to new replies.