cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger party determination through SDK.

koliosis
Explorer
0 Kudos

So I'm working on a project that will migrate individual customers from a legacy system into C4C on demand. I'm able to run the call to the legacy system to get the individual customer information and create a new individual customer in C4C using that information. However, when the customer is created it populates the account name with what I think is the nodeID: newAccountError.png
I opened an incident with SAP on this and they said "The newly created customer instance is then assigned to the party-instance within the above script "party.PartyName = newCustomer.InternalID;" Please note that you need to trigger the party determination or create account via standard application, or Main activity part of Activity BO needs to be updated." I've looked through the documentation but haven't found anything about any of these approaches.

Here's the section of ABSL code they mention in the incident.

var activitybo = Activity.Retrieve(this.ToRoot.ActivityUUID.content);
	if(activitybo.IsSet() && !newCustomer.InternalID.IsInitial())
	{	
		var parties = activitybo.ActivityParty.Where(n => n.RoleCode == "34");
		var party;
		if (parties.Count() > 0) {
			party = parties.GetFirst();
			party.PartyName = newCustomer.InternalID;
			} else {
			party =  activitybo.ActivityParty.Create();
		        party.PartyName = newCustomer.InternalID;
		        party.RoleCode = "34";
	    }
	}

Thanks in advance for your help.

 

Accepted Solutions (0)

Answers (0)