locked
CRM contact record passing the values from Custom application RRS feed

  • Question

  • Hi,

    I am passing the values from my custom WPF application to create the contact.

    while passing the first name, last name, addressLine 1  Mobile number it's working fine. while am passing the date of birth it's throughing an error. I am not able to identify the exact issue please giv me the suggestions

    var firstname = txtFirstName.Text;
                var lastname = txtLastName.Text;
                var dataofbirth = this.DatePickerValue;
                var mobilenumber = txtMobileNumber.Text;
                var rfcvalue = txtRFC.Text;
                var addressValue = txtAddress.Text;
                var extraqs = "firstname=" + firstname;
                extraqs += "&lastname=" + lastname;
                extraqs += "&mobilephone=" + mobilenumber;
                extraqs += "&address1_line1=" + addressValue;
                extraqs += "&birthdate=" + dataofbirth;
                   

                //var totalextravalue = "extraqs=firstname%3D" + firstname + "lastname%3D" + lastname + "birthdate%3D" + dataofbirth + "mobilephone%3D" + mobilenumber + "ifp_rfc%3D" + rfcvalue + "address1_line1%3D" + addressValue;
                var contacturl = Constants.Contact.Attributes.URLNew + "etc=2&id=&pagetype=entityrecord&extraqs=" + HttpUtility.UrlEncode(extraqs);

    -Regards


    Rammohan

    Tuesday, April 7, 2015 7:36 AM

All replies