Developer site office 365

i want to fetch the list items from  office 365 developer site
by using client side object modal

please find the below code for retrieving items
function getitems() {
var selectedListTitle = web.get_lists().getByTitle(listname);
var camlQuery = new SP.CamlQuery();
camlQuery.set_viewXml("<View><ViewFields>" +
"<FieldRef Name='ID' />" +
"<FieldRef Name='Title' />" +
"</ViewFields><RowLimit>5</RowLimit></View>')");
listItemCollection = selectedListTitle.getItems(camlQuery);
context.load(listItemCollection, "Include(Title, ID)");
context.executeQueryAsync(onGetItemsSuccess, onGetItemsFail);
function onGetItemsSuccess(sender, args) {
// The list items were retrieved.
// Show all child nodes.
var listItemEnumerator = listItemCollection.getEnumerator();
var selectItemBox = document.getElementById("selectitembox");
if (selectItemBox.hasChildNodes()) {
while (selectItemBox.childNodes.length >= 1) {
selectItemBox.removeChild(selectItemBox.firstChild);
while (listItemEnumerator.moveNext()) {
var selectOption = document.createElement("option");
selectOption.value = listItemEnumerator.get_current().get_item('ID');
selectOption.innerHTML = listItemEnumerator.get_current().get_item('Title');
selectItemBox.appendChild(selectOption);
function onGetItemsFail(sender, args) {
// The list items couldn't be retrieved - display an error message.
alert('Failed to get items. Error: ' + args.get_message());

Similar Messages

  • Not able to set security group without mail enabled as site collection admin using powershell in sharepoint online site - office 365

    not able to set security group without mail enabled as site collection admin using powershell in sharepoint online site - office 365?
    Any idea?

    after few days test in my lab, I can see that only email enabled group can be added as site collection admin using POWERSHELL.
    hope this helps who stuck like me!! :-)

  • How to set security group as primary site collection admin and secondary site collection admin using powershell in sharepoint online site - office 365?

    How to set security group as primary site collection admin and secondary site collection admin using powershell in sharepoint online site - office 365?

    Hi,
    According to your description, my understanding is that you want to set security group as admin of primary and secondary site collection using PowerShell command in office 365.
    I suggest you can use the command below to set the group to site owner, then it will have the site collection admin permission.
    Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -Owner [email protected] -NoWait
    Here are some detailed articles for your reference:
    https://technet.microsoft.com/en-us/library/fp161394(v=office.15)
    http://blogs.realdolmen.com/experts/2013/08/16/managing-sharepoint-online-with-powershell/
    Thanks
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Office 365 API

    Can we integrate Office 365 API's directly in Visual Studio 2012 ? Also if we integrate is it possible to customize the  Mailboxes, Calendar etc.. and also can apply our own styles ?
    Thanks

    Usually when people say API they are talking about server side code, which is not allowed in Office 365.  So in that sense no you can't use the Office 365 APIs.  You can use the new client side object model from Visual Sudio 2012.  Take a
    look at the following site for an Introduction to Development for Office 365 and SharePoint 2013.
    http://www.microsoft.com/en-us/download/details.aspx?id=17069
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Softwares/licenses require over Office 365 Development,QA, UAT and Production site

    Hello, Client has Office 365 E3 version, this plan provide Development site. We require to do extreme customization and
    third party integration for that we are planning to go with Provider hosted app.
    So, what are the additional software’s/licenses would require for Development,
    QA, UAT and Production site for 6 developer?
    How can we manage Development licenses cost of Visual Studio 2013, SharePoint 2013 Designer for 6 developers?
    Do client need to purchase additional licenses of Office 365 E3 for QA and UAT site?
    Do client need to buy additional license for Azure Web Site or is it provided in Office 365 E3 version by default, as we need this for Provider hosted app?

    Hi,
    Per my understanding, there might be some queries on the development environment set up in Office 365.
    About the requirement of setting up a development environment for Office 365, steps in details can be found in the two links below:
    Setting up your Development Environment for O365 & Azure Development
    http://blogs.msdn.com/b/steve_fox/archive/2013/02/03/setting-up-your-development-environment-for-o365-amp-azure-development.aspx
    How to: Set up an environment for developing apps for SharePoint on Office 365
    https://msdn.microsoft.com/EN-US/library/office/fp161179.aspx
    For the license related issues of Office 365, I suggest you post it to Office 365 forum, you will get more help and confirmed answers there.
    http://community.office365.com/en-us/f/default.aspx
    Thanks 
    Patrick Liang
    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
    [email protected]

  • Office 365 Developer site for Share point is not working.

    hi,
    i created office 365 developer site for share point, it is not working for share point, i am getting error when click on Share point  from ADMIN.We will getting am Error:

    Hi,
    I understand that you stay in the Office 365 admin Center, when you click the SharePoint option, you get the error page.
    I recommend to enter the URL as below in the Brower to check whether the account can access SharePoint admin Center.
     https://sitename /_layouts/15/online/SiteCollections.aspx
            Here is a similar thread for
    your reference:
    http://community.office365.com/en-us/f/148/t/192116.aspx
    Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
    Office 365 forum
    http://community.office365.com/en-us/forums/default.aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Visual Studio Community 2013 on Windows 8.1 pro - how can I develop for Sharepoint (Office 365)?

    Hello everybody from Italy.
    As stated on the subject, I'd like to develop some solutions for my Office 365's SharePoint site.
    I'm absolutely new to Visual Studio usage, too :-)
    I downloaded and installed VS Community 2013 and SharePoint 2013 SDK (along with ... but still no luck, VS keeps saying that I need to have SharePoint installed locally in order to develop solutions for SharePoint.
    What now?
    F. Simonetti - UNIX Sysadmin - Sharepoint learner

    Ok, I managed to:
    remove the "somewhat offending" custom list (I'll add it later after realizing what I was doing wrong)
    create one custom list without any specific feature (I called it List1)
    create another list based on Contacts, kept absolutely default (called List2)
    build&deploy the app
    Ok, now the "app" is there (on my devel environment), doing absolutely nothing (because I didn't create any form or page or whatever). But I have a Contact list! I should be able to sync it to Outlook desktop!
    This page helped me to understand how I can reach the list created inside the app (https://devtenant.sharepoint.com/AppName/Lists/List2)
    ... but I had a bad surprise: no option to sync the Contact list with my Outlook desktop application. This remains true even after having activated the "Offline Synchronization for External Lists" feature inside Site Settings/Site Features menu.
    So, the Contact-like list inside the app has lost about 80% of interest... not being able to sync it with Outlook is a severe limitation. I'm assuming that every list created inside an app will suffer of the same problem, is it true?
    By the way, how I'm supposed, after having eventually finished my work on the app, to install it on the "real" work environment, that is completely unrelated to the development site (being the "work" site a mere "Business
    Premium" Subscription)?
    I tried to deploy the app to the "non devel" site with no luck: VS says that the destination site is not configured for sideloading apps.
    Many thanks in advance, Ashish.
    F. Simonetti - UNIX Sysadmin - Sharepoint learner

  • Can we made office 365 team site as anonymous site (Public site)? If yes, please provide me the steps or some links.

    can we made office 365 team site as anonymous site (Public site)?
    If yes, please provide me the steps or some links.

    Hello Jahir,
    I'd suggest asking Office 365 specific questions on the
    SharePoint 2013 - Development and Programming  forum instead.

  • Disable site sharing in Office 365 using CSOM

    I have a requirement to disable sharing of sites and documents in Office 365 site collection using CSOM.
    Manually from UI, I can disable sharing by unchecking Access Request Settings under Site Settings.
    But could not find a way to do it using CSOM.

    Hi,
    If it is an on premises environment, there is a property “RequestAccessEnabled” in SPWeb class in SharePoint Object Model can be used to change the
    setting:
    https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.requestaccessenabled.aspx
    However, in an online environment, the SharePoint Object Model is not an option, what’s more, in Client Object Model which is designed for client side use, there is
    no such a property in Web class available:
    https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.web_members.aspx
    It means that it is not able to change the “Access Request Settings” with the client side technology such as JavaScript.
    Thus, I would suggest you submit a feedback to the Office Developer Platform if there any expectation about the future version of Office 365:
    http://officespdev.uservoice.com/
    It
    is a place for customers provide feedback about Microsoft Office products. What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft
    Product Team will take it into consideration when designing the next version in the future.
    Best regards
    Patrick Liang
    TechNet Community Support

  • In SharePoint site at Office 365, is there any possible to change the notification mail instead of using default Exchange mail id in SharePoint online?

    A customer using SharePoint site in Office 365 and they configured workflow, notification alerts, etc and now by default they are receiving mail in the registered account (for example: [email protected]) and now i want to change it to their
    company email id.
    Is that possible?

    You should setup domain for Office 365 - Add your users and domain to Office 365
    [custom.development]

  • VS2013 changes my script tags when I edit a javascript file on Office 365 Sharepoint Developer

    I posted this issue on the sharepoint online thread, and was asked to move the discussion here:
    https://social.msdn.microsoft.com/Forums/office/en-US/24e7060f-bef8-492c-a7b1-4a0aa9279a53/office-365-sharepoint-developer-changes-my-script-tags-when-i-edit-a-javascript-file?forum=sharepointdevelopment
    On my Office 365 Sharepoint Developer site, I have a custom edit form page (editform2.aspx) created for a list and have added a script reference in the additionalpagehead like this
     <script src="/JavaScripts/angular/angular-formly-master/dist/formly.js" type="text/javascript"></script>
    Whenever I edit the file at /JavaScripts/angular/angular-formly-master/dist/formly.js using VS2013 and save it SharePoint replaces my script tag with this:
     <script src="/JavaScripts/angular/angular-formly-master/dist/formly.js~RF322607.TMP" type="text/javascript"></script>
    I thought maybe it had something to do with versioning on my Javascripts library , but versioning is not even enabled there.
    What's with that? How can I prevent it?

    Hi Russell_G,
    Actually this forum is to discuss the VS IDE, to really repro this issue, I'm afraid that it would require the high SharePoint development knowledge, but based on your previous
    thread, since the SharePoint members could repro this issue.
    You can submit this feedback to Microsoft Connect feedback portal: http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx,Microsoft
    engineers will evaluate them seriously. Thanks for your understanding.
    If you submit it, please share us the link here, so we could get the latest information from the product team members.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Office 365: Prgramtically sync Calendar with SharePoint team site calendar

    Hello everyone,
    I need to sync office 365 Calendar with SharePoint team sites Calendars. We have SharePoint online site which having multiple sub sites, each sub site has a calendar control and we need calendar controls need to be sync with the outlook calendar available
    on top bar of office 365.
    We need to do it programmatically as we have more then 200 hundred sub sites, please guide me on this that how it is possible using developer app or PowerShell commands.

    I think it might help to clarify what you mean. When you say "Office 365 Calendar", what you really mean is the Calendar associated with whomever is logged in, stored in Exchange. When you see the "Calendar" link in the little bar at the top of the page,
    that's actually just a link to the Outlook Web Access calendar for a particular user's calendar stored in the Office 365 Exchange server. It's exactly the same calendar that would show up if a user had Outlook installed on their local computer and opened it
    up and looked at the calendar.
    That being said, you aren't going to want to synch every calendar in your whole SharePoint site with a single user's calendar. I think there are a couple approaches for you:
    Create a calendar overlay in SharePoint, which displays other calendars on the current calendar view. Unfortunately, there's a limit as to how many calendars you can do this for, it's far less than 200.
    Allow users to create calendar overalys in Outlook. This is the same idea as what you're doing in SharePoint, except users are doing this within Outlook. Again, adding 200 overlays isn't practical.
    You can try creating an additional company calendar in Exchange that's not tied to a particular user, but then you'll have to run a timer job to keep the Outlook calendar in synch with the SharePoint calendar. This is a lot more cumbersome than just displaying
    the SharePoint calendar, since you're physically copying events over to the Outlook calendar. If you do that, you personally are responsible for keeping the two calendars synched up, rather than just displaying an Exchange calendar in SharePoint, or displaying
    a SharePoint calendar in Outlook.
    You might looking into third party tools such as
    http://www.boostsolutions.com/calendar-rollup-feature-list.html. (I haven't tried that product, it just looks like it might be the type of thing to check out.
    If I have any advice, I would recommend as much as possible creating views of calendars, not actually trying to synch data, unless you're doing a one-way synch. (Synching calendar data can be a little bit difficult because you have reoccurring events to
    take into account.)
    Blog:
    blog.beckybertram.com |
    RSS | @beckybertram |
    SharePoint 2010: Six-in-One

  • Copying Document Across Site Collections to Dynamic Locations - Office 365 / SharePoint

    I have users uploading documents into a library in one site collection and adding a reference number to each file (text box - list item). Can I use that reference number to find a corresponding folder on a different site collection and programmatically
    copy the file to that location? The reference number is part of the name of the folder. SharePoint Designer, Visual Studio, Napa - whichever is easiest. Using Office 365 / SharePoint Online.
    Thanks!

    Hi,
    If the reference number plus with the file name is valid and unique, we will be able to find the wanted folder across site collections by querying this file and its parent folder.
    As the reference number + file name is just a string value of a column of a library, we may need to iterate through all the libraries and check whether there is such a file with
    CAML query statements.
    http://msdn.microsoft.com/en-us/library/office/ms467521(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    As it is an Office 365 site, Client Object Model or REST API would be choices for accessing data of SharePoint Objects.
    http://msdn.microsoft.com/en-us/library/office/fp179912(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/fp142380(v=office.15).aspx
    In SharePoint 2013, App is a more recommended way when developing custom solution.
    Here are some samples about
    creating SharePoint app for your reference:
    http://msdn.microsoft.com/en-us/library/office/jj901637(v=office.15).aspx
    http://www.c-sharpcorner.com/UploadFile/anavijai/how-to-get-all-the-items-from-the-list-in-sharepoint-2013-on/
    Feel free to reply if there are still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Office 365 Sharepoint Developer changes my script tags when I edit a javascript file

    On my Office 365 Sharepoint Developer site, I have a custom edit form page (editform2.aspx) created for a list and have added a script reference in the additionalpagehead like this
     <script src="/JavaScripts/angular/angular-formly-master/dist/formly.js" type="text/javascript"></script>
    Whenever I edit the file at /JavaScripts/angular/angular-formly-master/dist/formly.js and save it SharePoint replavces my script tag with this:
     <script src="/JavaScripts/angular/angular-formly-master/dist/formly.js~RF322607.TMP" type="text/javascript"></script>
    I thought maybe it had something to do with versioning on my Javascripts library , but versioning is not even enabled there.
    What's with that? How can I prevent it?

    Hi Russell,
    According to your description, there is an issue when editing a .js file which is saved in a document library of your developer site.
    This is what I have done in my environment:
    1. Create a Document Library “JavaScripts” with the sub folders and formly.js file as you did;
    2. Create a custom list, a custom edit form “editform2.aspx” for it;
    3. Edit the “editform2.aspx” in SharePoint Designer 2013, reference the formly.js file like this in the “PlaceHolderAdditionalPageHead”:
    4. Edit the formly.js file in SharePoint Designer and save, repeat the process several times;
    It turns out that the “src” attribute of the script tag stays unchanged.
    To narrow down the issue, I would suggest you create another custom edit form for that list and test again to see if the issue still exists.
    Feel free to reply if there any progress.
    Thanks
    Patrick Liang
    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]
    Patrick Liang
    TechNet Community Support

  • What's the difference between SharePoint 2013 and Office 365 Team Sites?

    Hi there,
    What are the differences between SharePoint 2013 and Office 365 Team Sites?
    If I would like to develop a professional corporate website with SharePoint technology (because the company allready uses Office 365), do you recommend using SharePoint 2013 (in the cloud) or Office 365 Team Sites? And why?
    Thank you very much!

    You cannot make SPO Team Sites anonymous-enabled, therefor they're a moot point for a public website.
    While slightly out of date, take a look at this:
    http://nikpatel.net/2013/01/17/new-sharepoint-2013-wcm-features-are-not-available-in-sharepoint-online-2013/
    http://technet.microsoft.com/en-us/library/sharepoint-online-content-service-description.aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Maybe you are looking for