cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Manage Accounts Webservice gives error and does not create an Account

vijaybtvbd
Explorer
0 Kudos
812

Hi All,

We utilized a standard webservice "Manage Accounts" to create an account in C4C from external websites.

As part of testing while we run the WSDL from Soap UI we get the following error in C4C Webservice messaging.

"The value ? is not a valid UUID in the format "hhhhhhhh-hhhh-hhhh-hhhh-hhhhhhhhhhhh"."

we tried passing the UUID where ever the UUID is there in WSDL as above format but we still get this error.

Any insights on this please.

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

former_member226
Employee
Employee
0 Kudos

Hi,

Why do you need to pass any UUID for the creation of an account via SOAP service? UUID are technical should be generated by SAP system upon successful processing.

For e.g. if you want to create a new prospect of type person then the following should work:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global" xmlns:glob1="http://sap.com/xi/AP/Globalization">
   <soapenv:Header/>
   <soapenv:Body>
      <glob:CustomerBundleMaintainRequest_sync_V1>
         <Customer actionCode="01">
            <ProspectIndicator>true</ProspectIndicator>
            <CategoryCode>1</CategoryCode>
            <Person>
               <GivenName>SOAP</GivenName>
               <FamilyName>API</FamilyName>
               <BirthDate>2008-10-31</BirthDate>
            </Person>
         </Customer>
      </glob:CustomerBundleMaintainRequest_sync_V1>
   </soapenv:Body>
</soapenv:Envelope>

OR in case of prospect organisation you can simply use following paylaod with minimum fields:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global" xmlns:glob1="http://sap.com/xi/AP/Globalization">
   <soapenv:Header/>
   <soapenv:Body>
      <glob:CustomerBundleMaintainRequest_sync_V1>
         <Customer actionCode="01">
            <ProspectIndicator>true</ProspectIndicator>
            <CategoryCode>2</CategoryCode>
            <Organisation>
               <FirstLineName>SOAP</FirstLineName>
               <SecondLineName>Company</SecondLineName>
            </Organisation>
         </Customer>
      </glob:CustomerBundleMaintainRequest_sync_V1>
   </soapenv:Body>
</soapenv:Envelope>

Please also check https://blogs.sap.com/2016/05/11/getting-started-with-c4c-web-services-2/ where thet explain the action code to be used alongside payload formation for the service.

Answers (4)

Answers (4)

vijaybtvbd
Explorer
0 Kudos

Hi All,

Resolved the issue, Need to pass Rolecode to create the account as Prospect.

Thanks again for the Help.

Best regards

Krishna

vijaybtvbd
Explorer
0 Kudos

Hi Saurabh,

Thanks so much this is really helpful.

We used the sample code and the SOAP output states successful (as below) but in C4C we don't see any Webservice message either success or failure and even account say account (1020100 ) does not exist , Point to note is that connection to C4C does exist to confirm the same when we don't give password it gives error.

So connection perspective seems all good and SOAP Output perspective seems all good and based on below output don't understand why we don't see successful webservice message in C4C and subsequently the account - 1020100 is not available in C4C.

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
   <env:Header/>
   <env:Body>
      <n0:CustomerBundleMaintainConfirmation_sync_V1 xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:LQX:/1SAI/TAE6F3228CC6D723FF1823E:804">
         <Customer>
            <ReferenceObjectNodeSenderTechnicalID></ReferenceObjectNodeSenderTechnicalID>
            <ChangeStateID>20210417143030.5449300</ChangeStateID>
            <InternalID>1020100 </InternalID>
            <UUID>00163ead-c00a-1edb-a7f1-2ebf9a14a791</UUID>
         </Customer>
         <Log/>
      </n0:CustomerBundleMaintainConfirmation_sync_V1>
   </env:Body>
</env:Envelope>

Thanks again for the needful.

Best Regards

Krishna

vijaybtvbd
Explorer
0 Kudos

Hi Saurabh

Good news is that the accounts are getting created as Business partner but NOT as prospect.

I do passed the Prospect Indicator as true,may i know if something is missing please.

Thank you

Krishna

vijaybtvbd
Explorer
0 Kudos

Hi Nikhil,

Thanks so much for your revert.

Actually i am doing a prototype for creation of prospect in C4C and i am really unsure what actioncode needs to be passed also there are multiple action codes available in WSDL.

can you please help what are the parameters that need to be passed for successful prospect creation..

Thanks for the needful.

Krishna

nikhilwalsetwar
Contributor
0 Kudos

Hi Krishna,

What is the action code you're passing? Could you share your sample payload?

Regards,

Nikhil