dynamics crm - how to create Appoinment from Android MS CRM SDK? -


i creating appointment using below code give "500 internal server error"

i added fields check it

appointment objappointment = appointment.build()             .setsubject("android sub")             .setdescription("dis device")            .setregardingobjectid(new entityreference("account", uuid.fromstring("0717b8e2-d00a-e611-8115-c4346bdd11d1")))             .setownerid(new entityreference("systemuser", uuid.fromstring("3edb272d-2da7-4c89-9350-2f4bd4e1762b")))             .setstatecode(new optionsetvalue(0))             .setnew_latitude(23.7845)             .setnew_longitude(73.6574)              .setnew_city("surat")             .setactualstart(mdate.gettime())             .setactualend(mdate1.gettime())            .setnew_zippostalcode("380060")             .setnew_street1("street1")             .setnew_street2("street3")             .setnew_street3("street3")             .setnew_stateprovince("gujarayt")             .setnew_countryregion("india")             .setnew_latitude(23.7845)             .setnew_longitude(73.6574)             .setstatuscode(new optionsetvalue(0))             .setprioritycode(new optionsetvalue(2));   try {             restorganizationserviceproxy restservice = new restorganizationserviceproxy(morgservice);             restservice.create(objappointment,new callback<uuid>() {                 @override                 public void success(uuid uuid, response response) {                     log("sucess", uuid.tostring());                            }                  @override                 public void failure(retrofiterror error) {                     displayerror(error.tostring());                     log("error", error.tostring());                 }             });         }         catch(exception ex) {             displayerror(ex.getmessage());             log("msg",ex.tostring());         } 

another entity create using above code got error in "appoinment"

could more details of exception? 500 exception. @ least know request hit server , it's failing on crm server side. maybe plugin or similar raising exception.

i think have pass objectid whom annotation linked (account, contact, or whatever...)

is on-premise or online crm? if onpremise enable includeexceptiondetailinfaults property in web.config @ least more details of exception....


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -