Hello,
I'm building a messaging system in my app. I have a table called MessageThreads that has two columns, SentToID and SentFromID, which are the User IDs that sent or received a message. Also, when the users log into my app, it sets a Local storage variable CurrentUserId.
Can someone give me the Javascript I need to put in the Where request parameter for the query service on the MessageThreads table, so that it returns a list of all MessageThreads where the LS variable "CurrentUserId" is either the SentToId OR the SentFromID?
Any help is much appreciated, thanks