Link to home
Create AccountLog in
Avatar of Gerardk
Gerardk

asked on

MSCRM 4.0

     

Hello,

I try to create a Incident bij a soap call.

                  '<entity xsi:type="Incident">'.
                        '<customerid>{DDA3A1EB-F9FD-DF11-BC98-005056867B66}</customerid>'.
                        '<description>TEST</description>'.
                        '</entity>'

 But still get this error

0x80040203
 Object Type was not provided on attribute: customerid



Greating Gerard

'<entity xsi:type="Incident">'.
				'<customerid>{DDA3A1EB-F9FD-DF11-BC98-005056867B66}</customerid>'.
				'<description>TEST</description>'.
				'</entity>'

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Gerardk
Gerardk

ASKER

Hi,

Thanks for reponse.

It must be from te Accounts.

Have you some example maby ?

Thanks again!

Greatings Gerard
Hi,

Can you provide your Soap script. I can correct-it?

Thanks.
Hi,

I'm struggling to find the correct syntax for the customer id when creating a sales order, code snippet below:

               var xml = "<?xml version='1.0' encoding='utf-8'?>" +
              "<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'"+
              " xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'"+
              " xmlns:xsd='http://www.w3.org/2001/XMLSchema'>"+ authenticationHeader+
              "<soap:Body>"+
              "<Create xmlns='http://schemas.microsoft.com/crm/2007/WebServices'>"+
              "<entity xsi:type='salesorder'>"+
              "<customerid type = 'account' >"+accountid+"</customerid>"+
             "<name>"+tradingname+"</name>"+
             "<billto_telephone>"+telephone1+"</billto_telephone>"+

Many thanks

Jaccib