Search Results for

    Show / Hide Table of Contents

    Working with changing a contact in Simplic

    In this code sample we will show how to change a contact in Simplic.

    Required Modules

    • Simplic.PlugIn.SAC.Contact
      • Contact
      • ContactManager
    • System
      • Guid

    Samples

    Python

    from Simplic.PlugIn.SAC.Contact import Contact, ContactManager
    from System import Guid
    # Create an instance of ContactManager
    contact_manager = ContactManager()
    # Get/Import a contact with the Guid
    contact = contact_manager.Get(Guid.Parse("a1ba332c-8c8f-4e9f-9f5a-f5642ad6cfe5"))
    # Change p.ex. the first name
    contact.PrimaryPhysicalAddress.FirstName = "Fred"
    # Save the changed contact
    contact_manager.Save(contact)
    

    Expected Output

    No output but a contact has changed.
    
    • Improve this Doc
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx