Coder Social home page Coder Social logo

crm-mobilesdk-library-for-android's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crm-mobilesdk-library-for-android's Issues

retrive appointment

when retrive appointment its starttime attribute give "Jan" month for all why?

not able to compile android microsoft CRM SDK

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

screen shot 2016-08-21 at 6 23 39 pm

Problem connect to CRM

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:

  • OrganizationServiceProxy(URI, SessionToken)
  • OrganizationServiceProxy(URI, RequestInterceptor)

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

how to create Appoinment from Mobile??

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"

Issue with create request

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.

Non IFD On premise Installation

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

how to create Appoinment from Mobile??

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.