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;
        
        /// 
        public ContactCardWS_Fields Field {
            get {
                return this.fieldField;
            }
            set {
                this.fieldField = value;
            }
        }
        
        /// 
        public string Criteria {
            get {
                return this.criteriaField;
            }
            set {
                this.criteriaField = value;
            }
        }
    }

    public enum ContactCardWS_Fields {
        
        /// 
        No,
        
        /// 
        Name,
        
        /// 
        Type,
        
        /// 
        Company_No,
        
        /// 
        Company_Name,
        
        /// 
        IntegrationCustomerNo,
        
        /// 
        Search_Name,
        
        /// 
        Salesperson_Code,
        
        /// 
        Salutation_Code,
        
        /// 
        Organizational_Level_Code,
        
        /// 
        Last_Date_Modified,
        
        /// 
        Date_of_Last_Interaction,
        
        /// 
        Last_Date_Attempted,
        
        /// 
        Next_Task_Date,
        
        /// 
        Exclude_from_Segment,
        
        /// 
        Privacy_Blocked,
        
        /// 
        Sent_to_CRM,
        
        /// 
        Minor,
        
        /// 
        Parental_Consent_Received,
        
        /// 
        Address,
        
        /// 
        Address_2,
        
        /// 
        Post_Code,
        
        /// 
        City,
        
        /// 
        County,
        
        /// 
        Country_Region_Code,
        
        /// 
        ShowMap,
        
        /// 
        Phone_No,
        
        /// 
        Mobile_Phone_No,
        
        /// 
        E_Mail,
        
        /// 
        Fax_No,
        
        /// 
        Home_Page,
        
        /// 
        Correspondence_Type,
        
        /// 
        Language_Code,
        
        /// 
        Job_Title,
        
        /// 
        Currency_Code,
        
        /// 
        Territory_Code,
        
        /// 
        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