Hoping for a bit of help here.
I need to create some customer accounts via the API.
The customer organization will ALREADY exist at the point I am adding the account.
So, I use Hz_Cust_Account_V2pub.create_cust_account to create the account for the organization, I pass the party number of the previously create organization into create_cust_account, and the account is successfully created - however a new, duplicate, organization is created by create_cust_account, so I end up with TWO of the same organization in hz_parties, each with a different party_id.
How can I create just the account and not a duplicate organization, given that the organization already exists.
Hope someone can help
Instead of passing Party number , Pass Party_id of the party for which you want to create an Account.
p_organization_rec.party_rec.party_id := &party_id;
Tried that, but it didn't work ... once you pass the Org Name, it creates an with NEW party id. We are passing below to hz_cust_account_v2pub.create_cust_account API:
l_cust_account_rec.created_by_module := 'TCA_V2_API';