Office 365 Mail message subject

Hi,

we have a process which is developed using C#. Earlier the process was using Exchange mail to retrive the subject, attachment,date etc. Exchange stopped working as Microsoft deprecated the basic authentication. I am trying to update the email part with Office 365 activities. The code has following when exchange was used to retrieve the subject and convert it to lower.


botPricebookMsg.Find(Function(m) m.Subject.ToLower() = “All Zones Produce Price Book”.ToLower())

botpricebookmessage is output from the get mail

I am getting error in the function as follows:

image

Can anybody help me with this?

Thanks in Advance

Using VB.Net

Find is a method of the array class and can be used like:

Array.Find(botPricebookMsg, Function(m) m.Subject.ToLower() = "All Zones Produce Price Book".ToLower())

Maybe other methods as Single(), First(), Where(…).FirstOrDefault() will better match your case

Thanks will try what you mentioned.

Thank you it worked.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.