If you are Using CRM Onpremises, you can use the below query to get Dashboard Guid by Dashboard Name,
SELECT FORMID [Dashboard GUID], NAME [Dashboard Name] FROM FILTEREDSYSTEMFORM WHERE NAME LIKE '<Provide Dashboard name here>' and TYPENAME = 'Dashboard'
I think it will help you 🙂
Please comment on this post.