Exemple #1
0
        /// Method Name     : GetCustomerDetails
        /// Author          : Ranjana Singh
        /// Creation Date   : 23 Jan 2018
        /// Purpose         : To get Customer Details from CRM.
        /// Revision        :
        /// </summary>
        public ServiceResponse <DTO.Move> GetCustomerDetails(string moveID)
        {
            Dictionary <string, string> customerResponse, moveResponse;

            moveResponse     = objCrmUtilities.ExecuteGetRequest(moveEntityName, "_jkmoving_contactofmoveid_value", "jkmoving_movenumber eq '" + moveID + "'");
            customerResponse = objCrmUtilities.ExecuteGetRequest(contactEntityName, "emailaddress1,telephone1", "contactid eq " + GetSpecificAttributeFromResponse(moveResponse, "_jkmoving_contactofmoveid_value") + "");

            return(objCRMToDTOMapper.MapMoveCustomerResponseToDTO(customerResponse));
        }