IMAP Activity with GMAIL , Getting Invalid Credential Error?

Facing Credential Error ? while using IMAP activity ? So follow this steps
From 30 May 2022 , Gmail has stopped to allow less secure apps and its related setting
So, Alternate Solution for this is -

  1. Turn On two step verification
    2.Generate the app Password and use that password in Imap Activity

Second point is -
‘Enable IMAP’ this should be selected.