I've been trying to configure server based authentication for SharePoint 2019 to connect dynamic 365 to the SharePoint and use document management features. I've followed all the steps mentioned in link below without getting any error through running PowerShell commands but in the last step which is "Enable Server-Based SharePoint Integration wizard" on dynamic 365. I got the "Failed Authentication" , "One or more sites are invalid. " and "Failed to connect to SharePointSite. -2147088205"
reference link: Microsoft reference link
I'll appreciate any help or suggestion. Thanks.