I've been struggling with a problem today that I wasn't able to solve.

I got a List which is Email Enabled (Calendar List) and has an Emailalias set (e.g.: cal@mysharepoint.local)

Now I want to display the Emailadress of the List in my Listview.

I tried to get it via JSOM or REST but haven't yet managed to read out the Email Alias there.

Can anyone help me? Greetings Tom


Okay with the help of one of my collegues I was able to find a solution. Its possible to get the EmailAlias of the List using the schemaXml of the list.

Below is a pretty basic code snippet that will output the current list emailalias when put on the listview via Content Editor WP.

    var ctx = SP.ClientContext.get_current();
    var list = ctx.get_web().get_lists().getById(_spPageContextInfo.pageListId);
    ctx.load(list, 'SchemaXml')
        var xml = list.get_schemaXml().toString();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.