Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Invoking WorkManagement Service from SharePoint hosted app

$
0
0

We are building an app which is hosted in a site collection different from the user personal site collection - MySite. Our requirement is to aggregate tasks from the tasks list residing in the user personal site  and then display the same. Basically the app displays the individual tasks when a user logs into the site.

In this regard we want to invoke the Work management service application by creating a refresh job to trigger the refresh of the tasks and then we fetch the updated ones.

We have tried several options including

a) adding the task refresh control available from Microsoft.Office.Server.WorkManagement.UI on the app - We get an error stating failed to execute the control within an app.

b) Tried creating a Refresh Job for the WorkManagement Service within the app through JSOM - Same error as above. App does not have permission to execute the operation. Not sure if any additional authentication needs to be provided !!! The user is able to access resources like list from the person site collection.

c) invoking the service from a custom WCF Service through CSOM - This succeeds but unable to do so with user impersonation. Currently creating a network credential object by passing username, domain and password and passing it to client context to make it work. !

We would ideally prefer option 2 but not sure about the correct way to invoke the service. Any pointers will be a big help

Thanks in Advance -

Girish


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>