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
28
Views
3
Comments
edited Jun 13, 2022 4:09AM in General Technical Discussions 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!