Creating an CRM Item Contact with home phone and mobile in Java?

Comments

1 comment

  • Elian CARSENAT

    [via mhrdev on Github]

    Phone field requires a "type" as well. Try something like this:
    Map<String, String> phoneValue = new HashMap<String, String>();
    phoneValue.put("type", "main"); // 'workfax', 'mobile', 'work', 'private_fax', 'other', 'home', 'main'
    phoneValue.put("value", contact.getPhoneNumber());
    fieldValues.add(getField(fields, "Phone"), phoneValue)

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk