freescout-helpdesk / freescout

FreeScout — Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)
https://freescout.net
GNU Affero General Public License v3.0
2.67k stars 458 forks source link

How to add Social Media Links when creating customer through API #3977

Closed kirschkern closed 1 month ago

kirschkern commented 1 month ago

I am using the following JSON to create a new conversation and also create a new customer. This works well except for the social media profile. Instead of beeing saved as "Linkedin", it will be saved as "Others". I've also tried several variations like "linkedin", LinkedIn" etc.

When looking into the database, the social media profile will be saved with type:12, while the type for a linkedin entry is 3. However, when using 3 as type, it is still saved as type:12.

Using the FreeScout template in Zapier, the social media profiles cannot be defined at all.

{
    "type": "email",
    "mailboxId": 4,
    "subject": "Karriere Kick Interessent über LinkedId",
    "customer": {
        "email": "daniel_4@kirschkern.de",
        "firstName": "Daniel",
        "lastName": "Kirsch",
        "company": "Test",
        "jobTitle": "CEO",
        "socialProfiles": [
            {
                "value": "https://www.linkedin.com/in/daniel-kirsch-0a9184138/",
                "type": "linkedin"
            }
        ]
    },
    "threads": [
        {
            "text": "Die Nachricht der Mail, ggf. mit weiteren Daten",
            "type": "customer",
            "customer": {
                "email": "daniel_4@kirschkern.de"
            }
        }
    ]
}

What do I need to set the type to, to save it as a "Linkedin" profile?

freescout-helpdesk commented 1 month ago

Fixed in API & Webhooks Module v1.0.78

kirschkern commented 1 month ago

Fixed in API & Webhooks Module v1.0.78

Great! Fast as always!

May you tell me, what value to add for the "type" property?

freescout-helpdesk commented 1 month ago
"socialProfiles": [
            {
                "value": "https://www.linkedin.com/in/daniel-kirsch-0a9184138/",
                "type": "linkedin"
            }
        ]