Discussions

Ask a Question
Back to All

Inserting email to a new record

Hi there,

I am trying to figure out how to insert email into a new record. I have tried the following with no luck:

                "Emails": {
                    "$type": "Asi.Soa.Membership.DataContracts.EmailDataCollection, Asi.Contracts",
                    "$values": [
                        {
                            "$type": "Asi.Soa.Membership.DataContracts.EmailData, Asi.Contracts",
                            "Address": Email
                            "EmailType": "Mailing",
                            "IsPrimary": true

The only success we have had is by inserting the email into the address via "Asi.Soa.Membership.DataContracts.FullAddressDataCollection, Asi.Contracts and using address flow down to populate the email but this is not how we want to continue doing it if possible

Any ideas would be much appreciated!

Cheers
Georgia

Admin

Hi Georgia,

Are you trying to add the email on the Emails collection on PartyData and updating the PartyData via the Party endpoint?

I see how logically that would look like the right place to add an email. But iMIS Enterprise is constrained to legacy data structures which confine parties to having only one primary email address and any additional emails have to be saved on an address, even if the rest of the address is blank. It looks like the only email that will be saved from the Emails collection is the one with the "_Primary" EmailType. Any additional emails need to be saved via and Party.Addressed. And after saved, they will be returned as part of the Party.Emails collection mostly for quicker access.

Let me know if this helps.

Courtney



Contact us
Copyright © Advanced Solutions International, All rights reserved.