Bouthaina Tlijani

Bouthaina Tlijani

  • NA
  • 265
  • 22.7k

Getting data using rest api in sharepoint hosted app with vs

Mar 1 2018 2:53 AM
Hello,
 
I'm trying to get data from a list using rest api in sharepoint hosted app.. my resturl is "appurl+ "_api/web/lists/getByTitle('ListCollab1602')/items?$select=MailManager"
in the HttpSend i use : accept : "application/json; odata=nometadata" in the RequestHeader, so the result is : {"value":[{"MailManager":"[email protected]"},{"MailManager":"[email protected]"}]}
 
so how can i retrieve only the mail without the {"value":[{"MailManager":" ????
 
Ps: i tried to put "value" in the GetDynamicValueProperty but i get this exception :
 
An unhandled exception occurred during the execution of the workflow instance. Exception details: System.InvalidOperationException: Looking up a value using a key is not supported on an instance of 'Microsoft.Activities.Dynamic.DynamicPrimitive'. at Microsoft.Activities.Dynamic.DynamicItem.TryGetValue(String key, DynamicItem& value) at Microsoft.Activities.Dynamic.DynamicValueBuilder.PathSegmentFactory.ObjectPathSegment.Get(DynamicItem obj)
 
Any help please :)

Answers (7)