OneDrive


Feedback by UserVoice

Anonymous

My feedback

  1. 114 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    13 comments  ·  OneDrive Developer Platform  ·  Flag idea as inappropriate…  ·  Admin →
    Anonymous commented  · 

    Edit... sorry it is a little off topic from the question. But I kept coming back to this thread. I wasted an entire day trying to figure this out. Hope it helps some else:

    Say your page url is http://localhost:80000/Do/Something/45678 or http://localhost:80000/Do/Something/?id=45678

    You can't redirect because you need a "static" url like http:/localhost:80000/Do/Something

    Set your redirectUri to that static URL; like so:
    var odOptions = {
    action: "query",
    advanced: {
    redirectUri: "http://localhost:80000/Do/Something"
    }
    }
    OneDrive.open(odOptions);

    And make sure you add the same exact static Url (http://localhost:80000/Do/Something) to your Redirect URLs in your microsoft "my applictions"

    This will ignore the dynamic part of the url and allow you flow as expected.

Feedback and Knowledge Base