I was using the ‘Get Mail by ID’ activity within the ‘Use Desktop Application,’ where the UID is retrieved from the queue. However, after moving to a different environment, we realized they don’t have an Outlook Desktop license, preventing us from using these activities.
Is there an alternative solution or any other workaround for this?"
may be first question is what options are possible for you?
even with code also you need something…so based on you having 0365 different auths or smtp you can use them to get the mail if outlook is not installed