dynamicscrm / crm-mobilesdk-library-for-android Goto Github PK
View Code? Open in Web Editor NEWMicrosoft Dynamics CRM Mobile SDK library for Android (Java) app development.
License: Other
Microsoft Dynamics CRM Mobile SDK library for Android (Java) app development.
License: Other
when retrive appointment its starttime attribute give "Jan" month for all why?
@CarlosMendonca @saldana @JimDaly @msftgits @msgits2
by using sdk and fetch query i got 5000 records in one request and it takes too much time for fetch.
please give me suggestion how to get records in page by page using Fetch query and sdk in Android.
not able to compile android Microsoft CRM SDK
hen i compile i am getting following error see attached image
I have set my environment variables as follows
export ANDROID_HOME=/Users/Nihar/Library/Android/sdk export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home export JAVA8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home export JAVA7_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home export PATH=$PATH:$ANDROID_HOME/bin
i got below error when i open app after closed
Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
sdk > OrganizationServiceProxy.java > Line 370
give me web link where i can register my android app and get CLIENT_ID and REDIRECT_URI
Gradle local.properties file us causing an invalid SDK path when building with Gradle... add to .gitignore...
Hello,
I'm starting with Microsoft Dynamics and I'm trying to ingregate a mobile application with Microsoft Dynamics CRM 2015 using the new Microsoft Dynamics CRM Mobile SDK for Android and I have problems making some requests: I can't access to the information of my CRM. I authenticate succesfully by means of SOAP (http://jlattimer.blogspot.com.es/2015/02/soap-only-authentication-using-java.html) instead of OAuth, I also generate CRM classes with the MobileSDKGen tool but I don't know how to make a correct request in order to get the information about my CRM. What data should I send in the message's header?
The class builder of OrganizationServiceProxy allows 2 parameters:
On one hand, using SOAP authentication, the server returns a response message that contains not only one but three session tokens: securityToken0, securityToken1 and keyIdentifier.
On the other hand, I don't understand how to create a RequestInterceptor as I have never used before Retrofit library.
Could anyone help me? How can I make a request to CRM server with Mobile SDK, using SOAP authentication?
Thank you very much
@w9jds @CarlosMendonca @saldana @JimDaly @msftgits
i solve this issue just add below code in Utils.java
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
Instead of
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-DD'T'HH:mm:ss'Z'");
i am creating appointment using below code give "500 Internal Server Error"
Appointment objappointment = Appointment.build()
.setSubject("Android sub")
.setDescription("dis from device");
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 successfully using above code just got error in "Appoinment"
Hi I have been using your library to access and pull data from Microsoft Dynamics successfully, recently I have been trying to create records in the CRM with the library and have been getting an error as a response to the create the error body is
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <s:Fault> <faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:DeserializationFailed</faultcode> <faultstring xml:lang="en-US"> The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://schemas.microsoft.com/xrm/2011/Contracts/Services:entity. The InnerException message was 'Error in line 1 position 882. Expecting state 'Element'.. Encountered 'Text' with name '', namespace ''. '. Please see InnerException for more details. </faultstring> </s:Fault> </s:Body> </s:Envelope>
Here is the code used to generate the error.
orgService = new OrganizationServiceProxy(Constant.ENDPOINT, CRMLogin.getRequestInterceptor());
Entity workOrder = new Entity("x_workorder");
final String activityid = service_appointment.getValue(SAptEntry.ACTIVITY_ID);
Log.d("pushUpdatesToCRM>>>","Creating WorkOrder for Activity: "+activityid);
orgService.Create(workOrder, new Callback<UUID>() {
@Override
public void success(UUID uuid, Response response) {
Log.d("pushUpdateToCRM>>>", "WorkOrder created for Activity:" + activityid);
}
@Override
public void failure(RetrofitError error) {
Log.d("pushUpdateToCRM>>>", "WorkOrder not created for Activity: " + activityid);
Log.d("pushUpdateToCRM>>>", "WorkOrder create error: " + error.getMessage());
Log.d("UGG", error.getBody().toString());
}
});
Do you have any suggestions on how to proceed? Thanks.
Hi
I need to connect the app to a "Non IFD" On-premise installation .
How is it possible?
Any help would be GREATLY appreciated
Best
i have try using below code but got error 500 Internal Server Error
@CarlosMendonca @JimDaly @msftgits @saldana
Entity entity = new Entity();
entity.getAttributes().put("Subject", subject.getText().toString())
try {
RestOrganizationServiceProxy restService = new RestOrganizationServiceProxy(mOrgService);
restService.Create(mContact, entity, "Contact_Appointments", new Callback<UUID>() {
@Override
public void success(UUID uuid, Response response) {
CompleteActivity(uuid);
}
@Override
public void failure(RetrofitError error) {
Log.e("error",error.getMessage());
displayErrorSnackbar("Unable to create new check in");
}
});
}
catch(Exception ex) {
}
if i try to create another entity using same , its create sucessfully
Let me know how to login user get their profile using crmsdk2015?
Where is the .aar file that i will put in my lib folder ??
It says the file is in release section or build folder of sdk. But there is no .aar file in both of the places !
i got below error after 3 to 5 request for mOrgService.RetrieveMultiple(fetchExpression, new Callback()
Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.