Phone Book API Missing email address

VitalPBX Community Support General Discussion Phone Book API Missing email address

  • Post
    PitzKey
    Participant
    US
    Up
    0
    Down
    When querying for contacts from a phonebook, it returns the email field as ‘null’
    0
Viewing 5 replies - 1 through 5 (of 5 total)
  • Replies
    Up
    0
    Down
    Currently, I have just tested the API and in effect, the email is not shown, we will speak with the development team to add this field in future implementations
    0
    PitzKey
    Participant
    US
    Up
    0
    Down
    Hi Diego

    Sorry for not clarifying. This issue is only with internal phonebooks:

    /api/v2/phonebooks/2
    {
        "status": "success",
        "message": null,
        "data": {
            "id": 2,
            "description": "Test Intrernal",
            "source_type": "internal",
            "prefix": null,
            "tenant_id": 1
        }
    }
    /api/v2/phonebooks/2/contacts
    {
        "status": "success",
        "message": null,
        "data": [
            {
                "name": "Test 1",
                "telephone": "6701",
                "mobile_number": "8458881111",
                "home_number": "8459991123",
                "email": null,
                "organization": "ABC 123",
                "job_title": "Job 1",
                "category": "Extensions"
            },
    Now with external:
    /api/v2/phonebooks/3
    {
        "status": "success",
        "message": null,
        "data": {
            "id": 3,
            "description": "Test External",
            "source_type": "external",
            "prefix": null,
            "tenant_id": 1
        }
    }
    /api/v2/phonebooks/3/contacts
    {
        "status": "success",
        "message": null,
        "data": [
            {
                "name": "A Z",
                "telephone": "8451112222",
                "mobile_number": "8452221111",
                "home_number": "8456665555",
                "email": "A.Z@gmail.com",
                "organization": "ABC 987",
                "job_title": "IT GUY",
                "category": "General"
            },
    As you can see, the field is there on both, but with internal phonebooks it shows null.
    Let me know if you need any further info
    Thanks
    0
    Up
    0
    Down
    At the moment only the email of the internal phone books is shown, this issue will be reported with the development team.
    0
    PitzKey
    Participant
    US
    Up
    0
    Down
    Diego,

    Please see my comment above that contains the API output. The INTERNAL one is NOT working, the EXTERNAL one DOES work.

    Additionally, as far as I am aware, this was working in a previous version.

    Thanks

    0
    PitzKey
    Participant
    US
    Up
    0
    Down
    Bump? Any ETA when this will be available?
    0
Viewing 5 replies - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.