Question

Set up a object parameter with enum property for web integration (SOAP)

Hi everyone

how i should add a enum property from my object using the web integration tool?.

Thi is the object (ContactCardWS_Filter) with the enum property (ContactCardWS_Fields)

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3221.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:microsoft-dynamics-schemas/page/contactcardws")]
    public partial class ContactCardWS_Filter {
 
        private ContactCardWS_Fields fieldField;
 
        private string criteriaField;
 
        /// <remarks/>
        public ContactCardWS_Fields Field {
            get {
                return this.fieldField;
            }
            set {
                this.fieldField = value;
            }
        }
 
        /// <remarks/>
        public string Criteria {
            get {
                return this.criteriaField;
            }
            set {
                this.criteriaField = value;
            }
        }
    }
 
    public enum ContactCardWS_Fields {
 
        /// <remarks/>
        No,
 
        /// <remarks/>
        Name,
 
        /// <remarks/>
        Type,
 
        /// <remarks/>
        Company_No,
 
        /// <remarks/>
        Company_Name,
 
        /// <remarks/>
        IntegrationCustomerNo,
 
        /// <remarks/>
        Search_Name,
 
        /// <remarks/>
        Salesperson_Code,
 
        /// <remarks/>
        Salutation_Code,
 
        /// <remarks/>
        Organizational_Level_Code,
 
        /// <remarks/>
        Last_Date_Modified,
 
        /// <remarks/>
        Date_of_Last_Interaction,
 
        /// <remarks/>
        Last_Date_Attempted,
 
        /// <remarks/>
        Next_Task_Date,
 
        /// <remarks/>
        Exclude_from_Segment,
 
        /// <remarks/>
        Privacy_Blocked,
 
        /// <remarks/>
        Sent_to_CRM,
 
        /// <remarks/>
        Minor,
 
        /// <remarks/>
        Parental_Consent_Received,
 
        /// <remarks/>
        Address,
 
        /// <remarks/>
        Address_2,
 
        /// <remarks/>
        Post_Code,
 
        /// <remarks/>
        City,
 
        /// <remarks/>
        County,
 
        /// <remarks/>
        Country_Region_Code,
 
        /// <remarks/>
        ShowMap,
 
        /// <remarks/>
        Phone_No,
 
        /// <remarks/>
        Mobile_Phone_No,
 
        /// <remarks/>
        E_Mail,
 
        /// <remarks/>
        Fax_No,
 
        /// <remarks/>
        Home_Page,
 
        /// <remarks/>
        Correspondence_Type,
 
        /// <remarks/>
        Language_Code,
 
        /// <remarks/>
        Job_Title,
 
        /// <remarks/>
        Currency_Code,
 
        /// <remarks/>
        Territory_Code,
 
        /// <remarks/>
        VAT_Registration_No,
    }

Like 0

Like

1 comments
Best reply

Hi Carlos,

 

The value should be passed as a string so you need to use the string parameter. Also you can run a couple of tests and identify which data type to use in practice.

 

Best regards,

Oscar

Hi Carlos,

 

The value should be passed as a string so you need to use the string parameter. Also you can run a couple of tests and identify which data type to use in practice.

 

Best regards,

Oscar

Show all comments