• Hi Everyone,

    How can I create a distribution list via python?
    I can create conntacts :

    new_item = contacts.create_item()
    show_contacts = [0]
    new_item.mapiobj.SetProps([SPropValue(getattr(MAPI.Util,‘PR_SUBJECT’), ‘Testname’)])
    new_item.mapiobj.SetProps([SPropValue(getattr(MAPI.Util,‘PR_DISPLAY_NAME’), ‘Testname’)])

    # Add needed propteries.
    new_item.mapiobj.SetProps([SPropValue(0x80D81003, show_contacts), SPropValue(0x80D90003, 1),])
    
    new_item.mapiobj.SaveChanges(KEEP_OPEN_READWRITE)
    

    But how can i create a DistList and add users to it…

    Thanks