I am trying to put the "Approval" web-app inside the SharePoint Page using Flow JS SDK.
While following the guide, I encountered a problem regarding getting the `AccessToken`. On the Flow JS SDK documentation, it says:
"The widget raises a GET_ACCESS_TOKEN event to request an access token from the host. The host needs to handle the event and pass the token to the widget"
The `widget` listens to the event like:
widget.listen("GET_ACCESS_TOKEN", function(requestParam, widgetDoneCallback) {
widgetDoneCallback(null, {
token: '<accesstokenFromHost>'
});
});
What exactly do I need to do in order to get this AccessToken please?
Or, since I'm putting this on SharePoint Page, which is already behind the AD login, is there already an AccessToken that can be easily retrieved from the SharePoint session?
Appreciate the kind helps. Thank you.
Hi @anonymust ,
If you wants to get the SharePoint Site's token, you could check this link:
https://global-sharepoint.com/sharepoint-online/in-4-steps-access-sharepoint-online-data-using-postm...
Best Regards,
Bof
User | Count |
---|---|
23 | |
15 | |
14 | |
10 | |
9 |
User | Count |
---|---|
45 | |
29 | |
26 | |
25 | |
22 |