Sharepoint 2013 Rest API call to extract Excel specific cells -
this should pretty straight forward, haven't been able find documentation, unsure if possible, , if - how.
i'm calling sharepoint 2013 rest api, excel rest services (excelrest.aspx), fetch values specific cells in excel workbook.
i've had success following 2 types of calls:
fetch 1 specific cell (e5): http://somesharepointsite.com/testsite/_vti_bin/excelrest.aspx/shared%20documents/excelfile.xlsx/model/ranges('''front%20page''!e5')?$format=html
fetch range (e5-f20): http://somesharepointsite.com/testsite/_vti_bin/excelrest.aspx/shared%20documents/excelfile.xlsx/model/ranges('''front%20page''!e5|f20')?$format=html
however able fetch multiple specific cells e.g: e5, e7, f15, f18.
this due how information placed in spreadsheet, isn't convenient automated extration. instead of counting rows/columns find relevant cells when extracting range, easier if cells of relevance indicated directly.
i know make bunch of separate calls fetching 1 cell @ time, doesn't seem optimum solution.
i've tried separating range commas, semicolons - tried making 2 separate ranges - no luck
any suggestions welcome
Comments
Post a Comment