cancel
Showing results for 
Search instead for 
Did you mean: 

SAP C4C Odata for maintaining Account Hierarchy

benjaminbonnet
Discoverer
0 Kudos
627

Hello,

I'm trying to maintain Account hierarchy from an external system to SAP Sales Cloud (C4C) using Odata.
In the APIs it seems that this data is read only (CorporateAccountCollection/ParentAccountID and accounthierarchylist/BusinessPartnerBusinessPartnerCollection/Parent_Account).

What is the recommended way to maintain Account Hierarchy using Odata?

Best regards,

Ben

Accepted Solutions (1)

Accepted Solutions (1)

former_member663515
Discoverer
0 Kudos

Hi Ben,
It's possible to achieve this requirement with PDI.

You need to create a custom field, which will store the "Parent Account ID" and then write a simple script that will convert it to the standard parent account.

Best Regards
Jakub

benjaminbonnet
Discoverer
0 Kudos

Hello Jakub,

Thanks you for your suggestion.
I tried that already but I have not yet found a way to write on account hierarchy.

I tried on Customer/BusinessPartnerHierarchyGroupBusinessPartner and also directly on BO BusinessPartnerHierarchy but whithout success. Both seems to not be Write enabled.
If you have already implemented your suggestion, I would be very interested in the way you handled it.

Best regards,

Ben

former_member663515
Discoverer

Hi,

You can edit the hierarchy (parent account) directly in the Customer BO:

Root/BupaUitransformation/ParentAccount

There is a field called ParentAccountUUID, which is editable. If you update it with the UUID of the parent account, then the hierarchy will be updated too.

Best Regards,

Jakub

benjaminbonnet
Discoverer
0 Kudos

Thanks a lot Jakub, it is working!

Answers (1)

Answers (1)

AlanChen
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ben,

According to the influence portal, sadly, it's not likely to update the account hierarchy via OData API.

You may maintain it manually or via the Data Workbench.

Also, creating a new influence portal would be fine if you strongly want the feature to be introduced.

Best Regards,
Alan