locked
How to access an App List from another App? RRS feed

  • Question

  • Hi,

    I have 2 Sharepoint hosted Apps, (DocumentApp and NoticeBoardApp).

    In DocumentApp, I have created a custom list named as "DocumentList" and from the NoticeBoardApp I need to fetch values from DocumentList and display it.

    Url of both Apps:

    https://vascosharepoint-1fd70f03f2cf78.sharepoint.com/DocumentApp/Lists/DocumentList/AllItems.aspx (List)

    https://vascosharepoint-1fd70f03f2cf79.sharepoint.com/NoticeBoardApp/Home/Pages/Default.aspx (NoticeBoardApp)

    Is it possible? and how can I do that?

    Any help?

    Thanks

    Wednesday, May 6, 2015 6:31 PM

Answers

  • Hi Alexx,

    From your description, my understanding is that you want to display another SharePoint-hosted App data in current SharePoint-hosted App web.

    You could accomplish your requirement with steps below:

    1. Create a list in host web and the list should contain all columns that you want to display in NoticeBoardApp.
    2. Get data from DocumentList in DocumentApp and add them to the list in Step 1.
    3. Get data from the list in step 1 and display in NoticeBoardApp.

    You could refer to this article about how to access data within App Web and access data from Host Web:

    Data Access in SharePoint-hosted Apps

    http://blog.ctp.com/2014/06/23/data-access-in-sharepoint-hosted-apps/

    In addition, you could also host the DocumentList in host web, and then sync data in each App.

    Best Regards,

    Vincent Han


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Marked as answer by Alexx Martin Friday, May 8, 2015 6:22 AM
    Thursday, May 7, 2015 9:49 AM