Announcement

Collapse
No announcement yet.

API and Mail

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • API and Mail

    Hello
    We have created an entity based on "Person".
    The data should be inserted via API.
    What is the name of the e-mail field to be able to describe it with the API?
    emailAddress​ ?
    I can't find an emailAddress field in the entity table.

    Is it possible to write two email addresses in the field via API?
    Is it possible to set the favourite via API?​
    We still have version 7.2.5.
    Best regards
    peter​

  • #2
    Here is the payload data if you want to support multiple email addresses:

    Code:
    {
        "emailAddressData":[
            {
                "emailAddress":"test11@test.com",
                "primary":true,
                "optOut":false,
                "invalid":false,
                "lower":"test11@test.com"
            },
            {
                "emailAddress":"test22@test.com",
                "primary":false,
                "optOut":true,
                "invalid":true,
                "lower":"test22@test.com"
            }
        ]
    }
    Sending only emailAddress will work for quick set of the primary email address
    Last edited by eymen-elkum; 07-06-2024, 04:49 PM. Reason: Fixed key: emailAddressData
    CEO of Eblasoft
    EspoCRM Expert since 2014
    Full Stack Web Developer since 2008
    Creator of Numerous Successful Extensions & Projects​

    Comment


    • peterberlin
      peterberlin commented
      Editing a comment
      Many thanks

    • eymen-elkum
      eymen-elkum commented
      Editing a comment
      Just fixed the payload adding key emailAddressData
Working...
X