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

Update composite fields like fullname,address

$
0
0

my requirement is to retrieve views using c# . . i did that succesfully . .but in that sometimes i am getting fields internal name as "fullname" etc. which is composite field . . when i am trying to update the entity by refering these names there it is throwing error . . so how can i know that these fields are composite fields dynamically and while updating, how can i handle them to update entity succesfully.

Below for example i took "fullname":

if (dataRow[i].ToString() == string.Empty)
{
    selectedEntity["fullname"] = null;
}
else
{
    selectedEntity["fullname"] = "ms crm";
    //error
}

//it is not getting updated and throwing error
//"key is not present in dictionary"


for me the most imporatnt task is to know the field which i am trying to update is
composite dynamically
 so that i dont have to handle them by hardcoding.

Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>