You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Need a help in create method

Received Response
8
Views
3
Comments
edited Jan 16, 2018 11:05AM in UI Extensibility 3 comments

Content

hi , 

am new to service cloud need help in below code bock  getting error while creating a contact using addin Create method ,please help me to resolve the issue .

Error:Error CS0029 Cannot implicitly convert type 'ConsoleApp1.ServiceCloudReference.APIAccessResponseHeaderType' to 'ConsoleApp1.ServiceCloudReference.RNObject[]' ConsoleApp1

Version

aug 2017

Code Snippet

              try
            {
                RNObject[] outresults;
                APIAccessRequestHeader header = new APIAccessRequestHeader();
               
                RNObject[] createResults = _service.Create(clientInfoHeader, header , new RNObject[] {newContact } , createProcessingOptions,out outresults);
            }
            catch(Exception e)
            {
                Console.WriteLine("{0} Exception caught.", e);

            } 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!