We are in the early process of validating 2023.1 and issue I noticed was that SysCompany.EmailFromAddr is no longer available in Company Maintenance. Did this get moved somewhere?
Mail Setting Maintenance?
I am having the same issue during testing of Kinetic in Custom Code Data Directive In-Transaction BPM
var Company_Row =
(from sc in Db.SysCompany.With(LockHint.NoLock)
where sc.Company == CompanyID
select new { sc.EmailFromAddr, sc.EmailFromLabel }).FirstOrDefault();
generates this
System.Drawing.Bitmap | CS1061 | ‘SysCompany’ does not contain a definition for ‘EmailFromAddr’ and no accessible extension method ‘EmailFromAddr’ accepting a first argument of type ‘SysCompany’ could be found (are you missing a using directive or an assembly reference?) |
---|---|---|
System.Drawing.Bitmap | CS1061 | ‘SysCompany’ does not contain a definition for ‘EmailFromLabel’ and no accessible extension method ‘EmailFromLabel’ accepting a first argument of type ‘SysCompany’ could be found (are you missing a using directive or an assembly reference?) |
I see the solution pointing the Mail Setting Maintenance and have reviewed the settings but I am not sure how I reference this information in this code above?
FYI - I found this code solution on Epiusers and implemented it in E10 and has been working fine.
Thanks for your time!
Try updating your query to this.
Blockquote
var Company_Row =
(from sc in Db.MailSetting.With(LockHint.NoLock)
where sc.Company == CompanyID
select new { sc.EmailFromAddr, sc.EmailFromLabel }).FirstOrDefault();
Thank you SIR!
That did the trick.