Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void ExecutePreUpdate(LocalPluginContext obj)
- {
- Logger.WriteMessage("Enter ExecutePreUpdate", CrmLogService.MessageLevel.Info, "");
- if ((obj.PluginExecutionContext.InputParameters.Contains("Target")) && (obj.PluginExecutionContext.InputParameters["Target"] is Entity))
- {
- Entity serviceAppontment = (Entity)obj.PluginExecutionContext.InputParameters["Target"];
- if (serviceAppontment.LogicalName != "serviceappointment")
- return;
- Logger.WriteMessage("", CrmLogService.MessageLevel.Info, "");
- DateTime DateTimeNow = DateTime.Now;
- DateTime myDt;
- if ((serviceAppontment.Attributes.Contains("scheduledstart")) && (serviceAppontment.Attributes.))
- {
- try
- {
- //what to do after if goes in
- }
- catch (Exception ex)
- {
- Logger.WriteException(ex);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement