Odoo lead creation issue

:bullseye: What is your goal?

TO ensure facebook leads ads are mapped successfully into odoo

:thinking: What is the problem & what have you tried?

yes, the problem is that i get this error when trying to create leads in odoo, what i noticed is that it will continue to output an error saying, ‘Validation failed for one parameter: "name’. whereas there is no field like ‘name’ in my odoo leadmodule. i only have contact name where i mapped the fullname from facebook leads add and also the email and phone field, i don’t understand what it now mean by name.

:clipboard: Error messages or input/output bundles

BundleValidationError
Validation failed for 1 parameter.
Missing value of required parameter ‘name’.

Origin
Make

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

1 Like

Hi @Naomi_martins,

Can you show us what you have mapped in this module?

Cheers,
Henk

1 Like

Hello,

If you are using the native Make.com module Create a Lead, this is the first field called Opportunity.

Fields with red * are mandatory, so if you are mapping values here, be sure to use a field that always contains a value or use the ifempty() function.

If you are using custom API call using jsonrpc thats basic body:

"create",
        [
          {
            "name": "Website inquiry",
            "contact_name": "John Doe",
            "email_from": "john.doe@example.com",
            "phone": "+1 555 123 456",
            "company_name": "ACME Inc.",
            "description": "Customer is asking for an automation offer",
            "type": "lead"
          }
        ]

Hope that solves your issue!

2 Likes