Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Copper Contributor
Posts: 69
Registered: ‎05-07-2012

Re: Merge Accounts with Relations to Custom Entities

[ Edited ]

Sry for that late response, but there where some other higher priority tickets in front of that problem.

 

public static void MergeContactStep_VisitCustomerMembers(IContact contact, Object mergeProvider, ref Boolean result)
		{
			IBusinessRuleHelperService service = new BusinessRuleHelper();
			if(service == null)
			{
				result = false;
				return;
			}
			else
			{
				List<string> properties;
				properties.Add("ContactId");
				
				List<string> updatePropValues;
				updatePropValues.Add(contact.Id.ToString());
				
				List<string> entityIds;
				entityIds.Add(contact.Id.ToString());
				
				result = service.UpdatePropertyForEntity("VisitCustomerMember", "ContactId", properties, updatePropValues, entityIds);
			}
			
		}

 that's what I have now. What do I have to add to "properties", "updateProbValues", and "entityIds"?
VisitCustomerMember only hast the VisitCustomerMemberId, VisitId, ContactId and the default Properties. So in my opinion I only have to update the contactId with the new one.