Javascript : How to retrieve OneDrive Site URL

I am trying to access Personal Site URL (OneDrive Site) using below code. Is it possible to retrieve the URL of the site?
//Get Current Context
    var clientContext = new SP.ClientContext.get_current();
    var profileloader= SP.UserProfiles.ProfileLoader.getProfileLoader(context)
    var profle = profileloader.getUserProfile();
    var oSite = profle.get_personalSite();

try this:
function getPersonalUrl() {
var context = SP.ClientContext.get_current();
var peopleManager = new SP.UserProfiles.PeopleManager(context);
userProfileProperties = peopleManager.getMyProperties();
context.load(userProfileProperties, 'PersonalUrl');
context.executeQueryAsync(success, fail);
function success(){
var mySiteUrl = userProfileProperties.get_personalUrl();

Similar Messages

  • How to retrieve data from URL or querystring in bsp pages

    hi
    how to retrieve data from URL or querystring in bsp pages.
    thanks
    Edited by: Vijay Babu Dudla on Mar 23, 2009 7:35 AM

    Hello Friend,
    Vijay is correct.
    REQUEST is a system object available in runtime of BSP application.
    It is the object of interface IF_HTTP_REQUEST.
    Use methof REQUEST -> GET_FORM_DATA( )
    Regards
    Krishnendu

  • How to retrieve  "top sites" on imac

    How can you retrieve "top sites" icon on mac os x 10.5.8

    Thought captfred answered this
    https://discussions.apple.com/thread/3033745?tstart=0

  • Q: How to retrieve the current URL with PL/SQL

    I've got a pair of dynamic page portlets on a page. The first is simply an input text box and a submit button, the second is an inventory 'report' based on what is entered in the text box. When a value is entered and the button pressed, there is javascript behind the button that takes the current URL, adds '&ITEM=XXXXXXXX' (removing it first if this is not the first invocation of the page), and redirects to the new page.
    The second portlet uses the &ITEM parm to list a bill of materials for the item. If one of the items possesses a sub-assembly, I want to display the item# in an <a href= manner to make it so the user can simply click on the link to see the BOM of the subassembly.
    To do this, I believe I need to capture the current url and modify it as required to pass the new &ITEM value. I'm having a lot of trouble trying to figure out how to get the current page url. Any help would be greatly appreciated!
    Geoff

    Hello
    I have a similar problem I have developed a pl/sql portlet and put it into a page, this portlets display a dynamic page. This dynamic page have a search functionality, what I am trying to do is that when I click the search button on the dynamic page it recall the whole page and pass the paremeter that the user wrote on the search box, then the portlet that contains the dynamic page recieve the parameter and recall the dynamic page with the parameter that was received. The problem that I have is that the portlet receive the parameter but when I pass the parameter to the dynamic page it doesn't get it. This is the way the I am calling the dynamic page inside my portlet into the show procedure:
    EXECUTE IMMEDIATE
    'begin
    APP_NAME.PG_DYN_DIR_ALFABETICO.show (
    p_arg_names => PORTAL30.wwv_standard_util.string_to_table2(''url_page'',''search_param''),
    p_arg_values => PORTAL30.wwv_standard_util.string_to_table2(:1,:2));
    end;'
    using url_pg,p_text1;
    The dynamic page receive the first parameter(url_page) but not the second one(p_text1), I have checked that the p_text1 has a value on my portlet before I send it to the dynamic page so I really don't understand why my dynamic page doesn't work.
    Please HELP ME. I am desperate
    Ana Lasprilla

  • How do I retrieve a site that I uploaded to the temporary Business Catalyst Host?

    How do I retrieve a site that I uploaded to the temporary Business Catalyst Host after losing the site on my system?

    I'd recommend you connect in using SFTP/FTP and simply download your site assets.
    http://helpx.adobe.com/business-catalyst/partner/connecting-site-using-ftp-client.html

  • How to retrieve Task Lists from All Subsites to the Parent Site and display in Grid view using CAML Query

    How to retrieve Task Lists from All Subsites to the Parent Site and display in  Grid view using CAML Query + object model

    do u just want task list or items under task list for all subsites
    for items use spsitedataquery ref
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx use recursive to get it from alll subsite under site collection
    for tasklist only u can a simply use a for loop to find in all subsite
    Manish Sati

  • How do I create individual URL for the pages within an Adobe Muse site?

    Could someone tell me how I can create separate URL addresses for each page within a site? I think it's in Page Properties, but I can't figure out how to do it.

    Your website is actually hosted at http://kcronaphotography.free.fr
    If you visit that URL, clicking on the other pages will change the URL displayed in the browser.
    Your individual pages are available at URLs like: http://kcronaphotography.free.fr/about.html
    www.karincrona.com is just a wrapper page containing a frameset that hosts your real pages in frames.
    It appears that this page was generated by a tool called "ORT - Ovh Redirect Technology".
    Displaying the pages inside a frame will not change the URL displayed in the web browser.
    If you'd like your page to have nice URLs like www.karincrona.com/about.html, you'll need to get rid of the frame wrapper, and move the domain name to the webhost where your pages are being served.
    If you want to keep the wrapper page, you may want to investigate if the ORT tool you're using provides any way of getting a URL to an individual page to show in the browser bar.

  • (EWS) How to call autodiscover URL to retrieve exchange service URL?

    Hi Folks,
    I have some code that finds the autodiscover url by searching on the SCP.  What I would like to do is then call the auto discover service at that location to determine the URL of the ExchangeService for making EWS calls.
    The examples I can find in the MS documentation use an email address (ExchangeService.AutoDiscoverURL  and GetUserSettingsResponse).
    What I would like to do is call the service located at the address given by the SCP and then set the ExchangeService.Url property.
    I am aware that I need to use the ASUrl property of the AutoDiscover Response (POX), however, I do not seem to be able to find any information on how to make the request (using C#) and how to retrieve the response.
    Regards
    Andy

    You can use the Autodiscover classes to do an Autodiscover against your SCP endpoint (although I don't really see the point when you use AutoDiscoverURL it will do a SCP lookup first anyway?).
    eg to use the Autodiscover class you can use
    adAutoDiscoverService.Url = new Uri(" https://autodiscover-s.outlook.com/autodiscover/autodiscover.svc");
    adAutoDiscoverService.Credentials = new NetworkCredential(UserName,Password);
    adAutoDiscoverService.EnableScpLookup = false;
    adAutoDiscoverService.RedirectionUrlValidationCallback = adAutoDiscoCallBack;
    adAutoDiscoverService.PreAuthenticate = true;
    GetUserSettingsResponse adResponse = adAutoDiscoverService.GetUserSettings(Identity, (new UserSettingName[1] { UserSettingName.ExternalEwsUrl }));
    if (adResponse.Settings.Count >= 1)
    String exClientURL = (String)adResponse.Settings[UserSettingName.ExternalEwsUrl];
    CASURL = exClientURL;
    This will do a SOAP Autodiscover rather then POX if you want to do a POX discover you can do something like
    String EWSURL = null;
    String auDisXML = "<Autodiscover xmlns=\"http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006\"><Request>" +
    "<EMailAddress>" + Identity + "</EMailAddress>" +
    "<AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>" +
    "</Request>" +
    "</Autodiscover>";
    System.Net.HttpWebRequest adAutoDiscoRequest = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(adURL);
    adAutoDiscoRequest.ContentType = "text/xml";
    adAutoDiscoRequest.Headers.Add("Translate", "F");
    adAutoDiscoRequest.Method = "Post";
    adAutoDiscoRequest.Credentials = NetCredential;
    byte[] bytes = Encoding.UTF8.GetBytes(auDisXML);
    adAutoDiscoRequest.ContentLength = bytes.Length;
    Stream rsRequestStream = adAutoDiscoRequest.GetRequestStream();
    rsRequestStream.Write(bytes, 0, bytes.Length);
    rsRequestStream.Close();
    WebResponse adResponse = adAutoDiscoRequest.GetResponse();
    Stream rsResponseStream = adResponse.GetResponseStream();
    XmlDocument reResponseDoc = new XmlDocument();
    reResponseDoc.Load(rsResponseStream);
    String EWSURL = "";
    XmlNodeList pfProtocolNodes = reResponseDoc.GetElementsByTagName("Protocol");
    foreach (XmlNode xnNode in pfProtocolNodes)
    XmlNodeList adChildNodes = xnNode.ChildNodes;
    foreach (XmlNode xnSubChild in adChildNodes)
    switch (xnSubChild.Name)
    case "ASUrl": EWSURL = xnSubChild.InnerText;
    break;
    Cheers
    Glen

  • Please help. my address bar has vanished. i have no idea how to retrieve it, so can only access bookmarked sites when using firefox.

    please help. my address bar has vanished. i have no idea how to retrieve it, so can only access bookmarked sites when using firefox.

    Make sure that you do not run Firefox in Full Screen mode with all toolbars hidden.
    * Press F11 to toggle full screen mode (Firefox/File > Full Screen)
    If the menu bar is hidden then press the F10 key or hold down the Alt key, that should make the menu bar appear.
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    * If items are missing then open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout" (Linux, Windows)
    * If a missing item is in the toolbar palette then drag it back from the Customize window on the toolbar
    * If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.
    See also:
    * http://kb.mozillazine.org/Toolbar_customization

  • How to pass the dynamic URL of web services in JAVASCRIPT in ADOBE

    Hi,
    In the below scenario how do i pass the URL dynamically  from context's importing parameters instead of hard coding.
    var cURL = "http://................" ;
    var service = SOAP.connect(cURL);
    xfa.connectionSet.connectionname.execute(0);
    B'coz the URL is going to be different in Dev, Test, Prod system. In this case i can't hardcode the URL  as explained in previous treads. Or please provide the possible alternatives.
    Any help is highly appreciated.
    Regards,
    Sathish

    Hi,
    Got the solution for
    var cURL = "http://................" ;
    var service = SOAP.connect(cURL);
    xfa.connectionSet.connectionname.execute(0);
    I tried with
    var cURL = xfa.form.data.PAGE2.SubFormPage.IM_URL.rawValue ;
    var service = SOAP.connect(cURL);
    xfa.connectionSet.connectionname.execute(0);
    xfa - Root Node
    form - Model
    data - Form Design Root Node
    PAGE2 - Page Name
    SubFormPage - Sub Form inside the page
    IM_URL.rawValue - Importing field to Adobe{ which i dragged from Data view into sub form(SubFormPage) & set the field as invisible so that it won't be available to user}
    Working as expected.
    Thanks,
    Sathish

  • How to retrieve Lotus notes document url using IMAP

    Hi all,
    In our application, we are reading emails from Lotus Domino server. We are currently using "Lotus notes java agent" as a scheduler based agent to read the emails and retrieve document notes url as
    "notes://ServerName@Wipro/__652574FA00254DF5.nsf/0/C431AF38A4F7241865257506003302E1?OpenDocument"
    Now we plan to use JavaMail to retrieve emails from Lotus Domino server using "IMAP" protocol.
    Please suggest is anyway can we retrieve document notes url as mentioned above. I can retrieve "subject","bodycontent","from" etc... through IMAP
    Thanks
    Senthil

    Just use Google to check if there are the Java API's available for that and make use of them. If it isn't available, then write it yourself.
    http://www.google.com/search?q=lotus+notes+java+api

  • How do I get a url from quicktime?

    I'm using iWeb to host my podcast. http://web.me.com/krushjudgement/Site/Giant-SizePodcast/Giant-SizePodcast.html
    I'd like to have people visit my blogspot for updates. http://giantsizepodcast.blogspot.com/
    Right now I'm using podtrac to stream, but I realized it might be easier just to stream the quicktime versions from my iWeb. I'd like to embed the episodes in quicktime format right onto my blog posts. I've found embed codes, but I don't know how to get the proper urls from iWeb.
    Any ideas?

    Are you trying to retrieve the material?
    If so, open the page in Firefox-->Firefox Menu-->File-->Save Page As-->Save As: Web Page Complete...save to a folder. Firefox will download the html, javascript, css, images and the mp3 audio.
    It took a few minutes for the page to load and another minute or two to download... And I'm on a very fast connection. I was getting around 5-6 MBs during the download.
    The mp3 is 5 levels above the html. I have no idea what level or folder the video is at...
    Message was edited by: David M Brewer

  • Get site collection url, site url and list url from a full uri?

    If I have incoming: only URI's of the format http://a.b.c/d/e/f/g/h/i/j/k/l/m/n/o/p.docx
    (And these are coming from multiple farms and multiple site collections) (and i have a web api on some remote server) (and have all the authentication details)
    And I want to query just the single the item via csom : check one column and if value="yes" then download the doc:
    a. how do i get the absolute site url out of it for " clientcontext ctx = new clientcontext(THISURL) "
    b. how do i then get the list uri out of it to push a caml query to to then retrieve it
    I could :
    a. strip off the filename, that is the easy part :)
    b.  I could paste "/_api/contextinfo" behind it and POST it first as a httprequest. Then first get the site and web url and later on
    find a way to find the list url (which is probably the first item behind the fullWebUrl), but it seems weird to mix this in the mix
    Basically im looking for something that tells me what is what in http://a.b.c/d/e/f/g/h/i/j/k/l/m/n/o/p.docx

    Sorry, GetList is only available in the O365 version of Microsoft.SharePoint.Client. If you could test for a root site collection and if there is not one then take the scheme ... + Uri.segments[0] and then get the context. After that you can use
    the GetFileByServerRelativeUrl. The following demonstrates this.
    public static void GetFileList()
    string fileUrl = "http://basesmc15/teamonesubone/teamsubonesubone/Shared%20Documents/folderholder/newauthor6.pdf";
    Uri fileUri = new Uri(fileUrl);
    Uri webUrl;
    ClientContext rootContext = new ClientContext(fileUri.Scheme + Uri.SchemeDelimiter + fileUri.Host);
    webUrl = Web.WebUrlFromPageUrlDirect(rootContext, fileUri);
    ClientContext subContext = new ClientContext(webUrl.ToString());
    File file = subContext.Web.GetFileByServerRelativeUrl(fileUri.AbsolutePath);
    List list = file.ListItemAllFields.ParentList;
    subContext.Load(list);
    subContext.ExecuteQuery();
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • How do I find the URL?

    If I do an Aperture Web Page published to Mobile Me (not the Mobile Me Web Gallery feature - I'm talking about the web page from within Aperture, with "Stock" themes etc), how do I find the URL later? If I don't "Visit site now" upon publication and make a note of the URL, I don't know how to retrieve it later. Thanks!

    It's usually the service.mac.com/yourusername
    so .mac galleries are gallery.mac.com/username, web pages are web.mac.com/username
    When you click visit site now, just write down the root name, it will be something.mac.com/something

  • How to retrieve sharepoint list data and show it on excel-addin using C#

    Hi,
    we have a sharepoint list where all students are present. we wanted to get the data from the list and show it via excel addin (VSTO) (something like save,retrieve buutons) . we have some more business logic which need to be performed before the data is retrieved
    . once data is shown on excel , user modifies it and update/save the record back to sharepoint.
    can you please give some samples and suggest any links to start with development.
    Thanks
    chaitu

    Hi chaituatp,
    For this requirement, I would suggest you to get familiar with how to create VSTO applications, and how SharePoint object model works. Here are some sample code about this:
    How to: Retrieve List Items using JavaScript:
    http://msdn.microsoft.com/en-us/library/hh185007(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/office/ee534956(v=office.14).aspx
    VSTO application show data in datagridview:
    http://stackoverflow.com/questions/16926275/simple-example-of-vsto-excel-using-a-worksheet-as-a-datasource
    Thanks,
    Qiao
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Qiao Wei
    TechNet Community Support

Maybe you are looking for

  • Windows 7 from external USB Optical or Thumb Drive

    Hi, I recently got a new 2011 17" MBP and swapped the optical for an SSD. Now I have been trying to install Windows 7 from an external DVD reader via USB....when I attempt this and boot from the device, it spins for about 15 seconds and then stops wh

  • How to convert my MM alias into an AppleID to use it with iCloud?

    I used MobileMe and created a mail that became my Apple ID. Then I created an alias that became my main e-mail so now with iCloud I wish that aslias could become my Apple ID. I don't care to loose the first Apple ID but "How to convert my MM alias in

  • Report Builder with multiple data series

    I am not able to figure out how to create a bar chart using multiple data series in the Report Builder. I can do it with explicit CFML coding but not in the Report Builder. I am running MX version 7 with the current (as of 9/1/07) download of the Rep

  • SAP Latest ,plz refer

    We are for looking for SAP IS Retail experts for Mumbai SAP APO or SCM with demand planning, PPDS, SNP modules exposure for Calcutta, Mumbai, Bangalore. Relevant exp : 4 – 5yrs Salary : no constraint Position : 4 slots in each. 3) Job Title: SAP Cons

  • IIS7 and DW CS3

    HI, I seem to be having problems with IIS 7 on my new machine. I haven't used it before so a complete newbie.. the interface is all different and i seem to be having a few permission related errors even though i'm logged in as an admin. For example i