none
we'r Using o365 i write rest api for getting owner email. but still i am not get email. RRS feed

  • Question

  • we'r Using o365 i write rest api for getting owner email. but still i am not get email.

    Sanjeet kumar

    Wednesday, March 22, 2017 6:38 AM

Answers

  • Hello,

    Assuming you are after the Project Owner email address, you can use these two options to get the email address:

    If using the OData API:

    Projects feed to get the Project Owner Id:
    /_api/ProjectData/Projects()?$Select=ProjectId,ProjectName,ProjectOwnerId,ProjectOwnerName

    Then use the Resources feed to get the email address by filtering on the ProjectOwnerId:
    /_api/ProjectData/Resources(guid'ProjectOwnerID')?$Select=ResourceId,ResourceName,ResourceEmailAddress

    or if using the REST API:
    /_api/ProjectServer/Projects('ProjectId')/Owner?$Select=Email

    Hope that helps

    Paul


    Paul Mather | Twitter | http://pwmather.wordpress.com | CPS | MVP | Downloads

    Wednesday, March 22, 2017 7:49 AM
    Moderator