2 Replies Latest reply on Apr 11, 2014 6:47 AM by 37838

    Create Opportunities

           I'm trying to create opporutnities via the API but running into an issue.  I've tried quite a few variations of the below but always seem to get the same error.  Can anyone see the error in the format that I'm just not seeing?  Thank you for any help!!

                {:success_sync_m_objects=>
                  {:result=>
                    {:m_obj_status_list=>
                      {:m_obj_status=>
                        {:id=>nil,
                         :status=>"FAILED",
                         :error=>"Value for attribute 'Name' is required"}}}}}

           Request:
           <?xml version="1.0" encoding="UTF-8"?>
             <env:Header>
               <ns1:AuthenticationHeader>
                 <mktowsUserId>stuff</mktowsUserId>
                 <requestSignature>more stuff</requestSignature>
                 <requestTimestamp>more stuff</requestTimestamp>
               </ns1:AuthenticationHeader>
             </env:Header>
             <env:Body>
               <ns1:paramsSyncMObjects>
                 <mObjectList>
                   <mObject>
                     <type>Opportunity</type>
                     <Name>TEST_OPP1</Name>
                     <typeAttribList>
                       <typeAttrib>
                         <attrList>
                           <attrib>
                             <Name>Name</Name>
                             <Value>TEST_OPP1</Value>
                           </attrib>
                         </attrList>
                       </typeAttrib>
                     </typeAttribList>
                   </mObject>
                 </mObjectList>
                 <operation>INSERT</operation>
               </ns1:paramsSyncMObjects>
             </env:Body>
           </env:Envelope>