cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Manage Account WS

Former Member
0 Kudos

Hi all,

I want to use the Manage Account WS in order to integrate data from external ERP system.

I created a new extension field "ERP ID" under account, and want to use it in order to identify the relevent account when the ERP system invoke the WS.

However, as far as I can tell, Manage Account WS allows only Internal ID or UUID as identifiers.

Is there any way to change this and allow identification by ERP ID?

Thanks,

Dror.

Accepted Solutions (1)

Accepted Solutions (1)

shagok
Advisor
Advisor
0 Kudos

Hi Dror,

You can use the Manage Account Web Service to create/update the Account in C4C.

This web services is synchronous WS and will return the internal ID/UUID of the Account created/updated in the response.

Optional: There is a tag <ObjectNodeSenderTechnicalID> in the message that is returned in the response. You can pass the ERP-id here so you can tie up the ERP-id and C4C-id in the response.

<Contact actionCode="04">

   <ObjectNodeSenderTechnicalID>ERP-id</ObjectNodeSenderTechnicalID>


You can then use your ERP-id and the C4C-id (from the Manage Account response or a separate Query Account service) to call the Manage Object Identifier Mapping service to update the external id in C4C.

<ObjectIdentifierMapping actionCode="04">
  <ObjectNodeSenderTechnicalID>01</ObjectNodeSenderTechnicalID>
  <RemoteIdentifierType>888</RemoteIdentifierType>
  <LocalIdentifierType>888</LocalIdentifierType>
  <RemoteObjectID>ERP-id</RemoteObjectID>
  <LocalObjectID>C4C-id</LocalObjectID>
  <OriginTypeCode>5</OriginTypeCode>
  <RemoteBusinessSystem>
    <BusinessSystemID>TSTCLNT005</BusinessSystemID>
  </RemoteBusinessSystem>
</ObjectIdentifierMapping>

Hope this help.

Regards,

Shashank Gokhale

shagok
Advisor
Advisor
0 Kudos

Also external id is part of the Account Search string.

Contacts is also similar to Accounts.

Former Member
0 Kudos

Hi Shashank,

Thank you for your answer.

I have a follow-up question:

The scriptlet for the WS request is at the BeforeSave event, how can I catch the resposne from the ERP system and pass it to the C4C appropriate field?


Thanks,

Dror

Answers (2)

Answers (2)

0 Kudos

Former Member - do you have anything to add?

Former Member
0 Kudos

Hi Dror,

Please check this post and follow the steps:

User Query Account and read C4C Internal ID and then update Account.

Regards,

Mithun