Guest User

Untitled

a guest
Jun 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. export interface ISPList {
  2. USERNAME: string;
  3. EMAIL: string;
  4. COUNTRY: string;
  5. USERROLE:Object; //People and Groups type column
  6. }
  7.  
  8. private getPeopleFieldValues() : any {
  9. return this.context.spHttpClient
  10. .get(`${this.context.pageContext.web.absoluteUrl}/_api/web/lists/getbytitle('" + ListName + "')/items?$select=*,PeopleFieldName/Title&$expand=PeopleFieldName`},
  11. SPHttpClient.configurations.v1)
  12. .then((response: SPHttpClientResponse)=>{
  13. return response.json();
  14. });
  15. }
Add Comment
Please, Sign In to add comment