I am having a requirement to get a Contact Button on home page that having a functionality, when we click on the button, New email tab opens with email id [email protected]. We should change the email ID Without changing the code.
I created a List and Inter a email id in Title and try to retrieve the email id from REST API, But it didn't work for me. Below is the code I have used in the new page with Script Editor WebPart
https://XYZ.sharepoint.com/sites/ABC/_api/web/lists/getByTitle('email')/items?$select=Title&$filter=ID eq 2'" />