Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Python Distribution list

    Scripting
    1
    1
    320
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • michaelhaider
      michaelhaider last edited by

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post