Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

address field values retained even pass empty value

$
0
0

Hi,

I have created a plugin such that when the address fields in account entity are updated, i have update the corresponding contact addresses also. I registered in Update account in postoperation.

entityContact["address1_city"] = accountEntity.Attributes.Contains("address1_city") ? accountEntity["address1_city"].ToString() : string.Empty;

We can get the fields in the context if only we update them right ? If we are not updating the city field in account entity, then the corresponding city field in contact entity should assign the empty value as per the above code... But, eventhough i haven't updated the fields in account, the existing values are retained in the contact. Can you please explain how it happens ?


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images