Discussions
Create User issues - Email required
over 1 year ago by Nicholas Khirfan
Trying to create a user based off a party I have created via the party api endpoint, following the process:
https://{{URL}}/api/Party POST -> grab the partyId then call to -> https://{{URL}}/api/PartySummary/:PartyId GET for the PartySummaryData I then send off to -> https://{{URL}}/api/User POST to create my user, only to be told "An email is required to add a user for ID 602709."
{
"$type": "Asi.Soa.Membership.DataContracts.ComboPartyData, Asi.Contracts",
"BirthDate": "1952-05-19T00:00:00",
"OrganizationName": "Prodigy Makers International",
"PersonName": {
"$type": "Asi.Soa.Membership.DataContracts.PersonNameData, Asi.Contracts",
"FirstName": "Douglas",
"InformalName": "Doug",
"LastName": "Hunt",
"MiddleName": "A.",
"NamePrefix": "Mr.",
"NameSuffix": "Jr.",
"FullName": "Mr. Douglas A. Hunt, Jr."
},
"PrimaryOrganization": {
"$type": "Asi.Soa.Membership.DataContracts.PrimaryOrganizationInformationData, Asi.Contracts",
"Name": "Prodigy Makers International",
"Title": "President"
},
"AdditionalAttributes": {
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyDataCollection, Asi.Contracts",
"$values": [
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "CustomerTypeDescription",
"Value": "Company Member"
},
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "IsMemberRecord",
"Value": {
"$type": "System.Boolean",
"$value": true
}
},
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "CustomerTypeCode",
"Value": "IM"
},
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "IsMember",
"Value": {
"$type": "System.Boolean",
"$value": true
}
},
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "IsInactiveMember",
"Value": {
"$type": "System.Boolean",
"$value": false
}
},
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "AllowAdvanceRenewal",
"Value": {
"$type": "System.Boolean",
"$value": false
}
},
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "JoinDate",
"Value": "1967-05-28T00:00:00"
}
]
},
"AlternateIds": {
"$type": "Asi.Soa.Core.DataContracts.AlternateIdDataCollection, Asi.Contracts",
"$values": [
{
"$type": "Asi.Soa.Core.DataContracts.AlternateIdData, Asi.Contracts",
"Id": "101",
"IdType": "Id"
}
]
},
"Emails": {
"$type": "Asi.Soa.Membership.DataContracts.EmailDataCollection, Asi.Contracts",
"$values": [
{
"$type": "Asi.Soa.Membership.DataContracts.EmailData, Asi.Contracts",
"Address": "[email protected]",
"EmailType": "Address"
}
]
},
"FinancialInformation": {
"$type": "Asi.Soa.Membership.DataContracts.FinancialInformationData, Asi.Contracts"
},
"Phones": {
"$type": "Asi.Soa.Membership.DataContracts.PhoneDataCollection, Asi.Contracts",
"$values": [
{
"$type": "Asi.Soa.Membership.DataContracts.PhoneData, Asi.Contracts",
"Number": "(201) 346-9989",
"PhoneType": "_Home Phone"
},
{
"$type": "Asi.Soa.Membership.DataContracts.PhoneData, Asi.Contracts",
"Number": "(201) 898-9000",
"PhoneType": "_Work Phone"
},
{
"$type": "Asi.Soa.Membership.DataContracts.PhoneData, Asi.Contracts",
"Number": "(201) 898-4255",
"PhoneType": "_Fax"
},
{
"$type": "Asi.Soa.Membership.DataContracts.PhoneData, Asi.Contracts",
"Number": "(411)643-5821",
"PhoneType": "Mobile"
},
{
"$type": "Asi.Soa.Membership.DataContracts.PhoneData, Asi.Contracts",
"Number": "(201) 898-9000",
"PhoneType": "Address"
},
{
"$type": "Asi.Soa.Membership.DataContracts.PhoneData, Asi.Contracts",
"Number": "(201) 898-4255",
"PhoneType": "Address Fax"
}
]
},
"Salutations": {
"$type": "Asi.Soa.Membership.DataContracts.PartySalutationDataCollection, Asi.Contracts",
"$values": [
{
"$type": "Asi.Soa.Membership.DataContracts.PartySalutationData, Asi.Contracts",
"SalutationId": "101",
"SalutationMethod": {
"$type": "Asi.Soa.Membership.DataContracts.PartySalutationMethodSummaryData, Asi.Contracts",
"PartySalutationMethodId": "INFORMAL"
},
"Text": "Doug"
},
{
"$type": "Asi.Soa.Membership.DataContracts.PartySalutationData, Asi.Contracts",
"SalutationId": "101",
"SalutationMethod": {
"$type": "Asi.Soa.Membership.DataContracts.PartySalutationMethodSummaryData, Asi.Contracts",
"PartySalutationMethodId": "FORMAL"
},
"Text": "Mr. Douglas A. Hunt"
},
{
"$type": "Asi.Soa.Membership.DataContracts.PartySalutationData, Asi.Contracts",
"SalutationId": "101",
"SalutationMethod": {
"$type": "Asi.Soa.Membership.DataContracts.PartySalutationMethodSummaryData, Asi.Contracts",
"PartySalutationMethodId": "HUSBAND_WIFE"
},
"Text": "Mr. and Mrs. Douglas A. Hunt, Jr."
},
{
"$type": "Asi.Soa.Membership.DataContracts.PartySalutationData, Asi.Contracts",
"SalutationId": "101",
"SalutationMethod": {
"$type": "Asi.Soa.Membership.DataContracts.PartySalutationMethodSummaryData, Asi.Contracts",
"PartySalutationMethodId": "LIST_AS"
},
"Text": "Mr. Douglas A. Hunt, Jr."
}
]
},
"SocialNetworks": {
"$type": "Asi.Soa.Membership.DataContracts.PartySocialNetworkDataCollection, Asi.Contracts",
"$values": []
},
"CommunicationTypePreferences": {
"$type": "Asi.Soa.Membership.DataContracts.PartyCommunicationTypePreferenceDataCollection, Asi.Contracts",
"$values": []
},
"SortIsOverridden": false,
"UpdateInformation": {
"$type": "Asi.Soa.Core.DataContracts.EntityUpdateInformationData, Asi.Contracts",
"CreatedBy": "ADMINISTRATOR",
"CreatedOn": "2012-11-13T12:52:41.95",
"UpdatedBy": "ADMINISTRATOR",
"UpdatedOn": "2012-11-13T12:52:41.95"
},
"UniformId": "5a8151eb-a601-4230-84d1-fa95f63af7c8",
"Status": {
"$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts",
"PartyStatusId": "A",
"Name": "Active",
"Description": "Active"
},
"Name": "Prodigy Makers International",
"Sort": "Prodigy Makers International"
}
{
"$type": "Asi.Soa.Membership.DataContracts.UserData, Asi.Contracts",
"IsAnonymous": false,
"IsDisable": false,
"Party": {
"$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
"CityName": "",
"CountryName": "",
"CountrySubEntityName": "",
"Email": "[email protected]",
"Phone": "(201) 898-9000",
"PartyId": "602709",
"Id": "602709",
"UniformId": "999c24bd-cb34-4f2b-9428-387ab1e26b31",
"Status": {
"$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts",
"PartyStatusId": "A",
"Name": "Active",
"Description": "Active"
},
"Name": "Douglas A. Hunt, Jr.",
"Sort": "HUNT, DOUGLAS",
"IsMarkedForDelete": false
},
"UserId": "602709",
"UserName": "[email protected]"
}
{
"$type": "Asi.Soa.Core.DataContracts.ValidationResultsData, Asi.Contracts",
"Errors": {
"$type": "Asi.Soa.Core.DataContracts.ValidationResultDataCollection, Asi.Contracts",
"$values": [
{
"$type": "Asi.Soa.Core.DataContracts.ValidationResultData, Asi.Contracts",
"Message": "An email is required to add a user for ID 602709."
}
]
},
"Warnings": {
"$type": "Asi.Soa.Core.DataContracts.ValidationResultDataCollection, Asi.Contracts",
"$values": []
}
}
So if the data above is taken into consideration and an email in fact is being sent, what then is the underlying issue?
I have verified with other API methods that the party is created successfully, just am unable to create a user for the new contact.