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

Plugin error after upgrading to 9.1 version from 8.2

$
0
0

(Please visit the site to view this file)Hi!

Upon putting some trace logs on our post Opportunity update plugin, I've known that the error is on getting the time zone of current logged in user. Please note that this is working on our 8.2 version.

Can anyone share their thoughts what happened on that one? Thanks!

Pasting the code snippet

tracingService.Trace("currentUserSettings start");
var currentUserSettings = service.RetrieveMultiple(
new QueryExpression(UserSettings.EntityLogicalName)
{
ColumnSet = new ColumnSet("localeid", "timezonecode"),
Criteria = new FilterExpression
{
Conditions =
{
new ConditionExpression("systemuserid", ConditionOperator.EqualUserId)
}
}
}).Entities[0].ToEntity<UserSettings>();


tracingService.Trace("currentUserSettings retrieve finish");

");

From the tracing above, "currentUserSettings retrieve finish" wasn't executed. Also pasting the entire error log details.


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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