Posts

Showing posts with the label app for outlook

DYNAMICS 365 HOW TO SET DATE FIELD IN APP FOR OUTLOOK

PROBLEM You might have faced the following script error when setting a Date field in CRM App for Outlook in JavaScript using the method formContext.getAttribute("<fieldName>").setValue(Date.now()); Error: Value should be of type: DateTime at h (https://<crmurl>/uclient/scripts/app.js?v=1.3.163-201103-224104:12:164) at b (https://<crmurl>/uclient/scripts/app.js?v=1.3.163-201103-224104:12:327) at t.prototype.setValue (https://<crmurl>/uclient/scripts/0.js?v =1.3.163-201103-224104:209:21956) at setDateReceptionField (Unknown script code:561:13) at e.prototype.executeFunction (https://<crmurl>/uclient/scripts/app.js?v=1.3.163-201103-224104:1659:50881) at e.prototype.execute (https://<crmurl>/uclient/scripts/app.js?v =1.3.163-201103-224104:1659:50686) at e.prototype._executeIndividualEvent (https://...