Unable to update InfluenceScore for social profiles.

We have the newly created CRM 2015 On-Premise; and we are doing something like a social security framework .

We just wanted to update the InfluenceScore social profile record setting in our custom application by calling a web service, but it does not seem to affect this field. Oddly enough, he does not throw any exceptions, and the service call does not complain at all. Everything seems normal, except that the field is not updated.

Below are the relevant bits of our code:

 // Retrieving the social profile record with all it columns Entity socialProfile = GetSocialProfileByName(socialProfileName); double score = 0; string scoreField = "influencescore"; // If socialProfile contains our attribute, set it appropriately, otherwise add the attribute if(socialProfile.Contains(scoreField)) { score = socialProfile.GetAttributeValue<float?>(scoreField).GetValueOrDefault(0) + 10; // Add 10 to the existing score. socialProfile[scoreField] = score; } else { socialProfile.Attributes.Add(scoreField, 10); } // Update the record. service.Update(socialProfile); 
  • Does Social Care Framework provide an opportunity to update InfluenceScore from the outside?
  • If so, what is the correct way to do this?
+8
c # dynamics-crm dynamics-crm-2015
source share
1 answer

I looked at the metprata of the socialprofile object and found that the attribute affects affects IsValidForUpdate set to False. It can be set to create (i.e.IsValidForCreate - True).

+2
source share

All Articles