c# - Cannot update InfluenceScore on Social Profiles programmatically -


we have newly set-up crm 2015 on-premise environment; , we're doing fiddling the social care framework.

we wanted update social profile record's influencescore parameter within our custom application using web service call, appears have no effect on field. oddly enough, does not throw exceptions, , service call does not complain @ all. seems normal, except the field not being updated.

here regarding bits of our code;

// retrieving social profile record it's columns entity socialprofile = getsocialprofilebyname(socialprofilename);  double score = 0; string scorefield = "influencescore";  // if socialprofile contains our attribute, set appropriately, otherwise add attribute if(socialprofile.contains(scorefield))  {     score = socialprofile.getattributevalue<float?>(scorefield).getvalueordefault(0) + 10; // add 10 existing score.     socialprofile[scorefield] = score; } else  {     socialprofile.attributes.add(scorefield, 10); }  // update record. service.update(socialprofile); 
  • does social care framework allow influencescore updated externally?
  • if so, what's proper way it?

i looked @ metadata of socialprofile entity , found out influencescore attribute has isvalidforupdate property set false. can set on create though (i.e. isvalidforcreate true).


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -