新しくセットアップされた CRM 2015 オンプレミス環境があります。また、ソーシャル ケア フレームワークをいじっています。
Web サービス呼び出しを使用して、カスタム アプリケーション内でソーシャル プロファイル レコードのInfluenceScore
パラメーターを更新したかっただけですが、フィールドには影響がないようです。奇妙なことに、例外はスローされず、サービス呼び出しはまったく文句を言いません。フィールドが更新されていないことを除いて、すべてが正常に見えます。
これが私たちのコードの関連ビットです。
// Retrieving the social profile record with all it's 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);
- ソーシャル ケア フレームワークは
InfluenceScore
外部からの更新を許可していますか? - もしそうなら、それを行う適切な方法は何ですか?