Kijan pou Spécifier moun tankou yon objektif Recherche / Contenu sous ki itilize SharePoint 2013 LÒT API

Mwen te gen rezon pou travay avèk SharePoint a 2013 API rechèch via pou la pwemye fwa yo POZE. Mwen te vle pou fè rechèch pou moun, pa dokiman. Kle a apwann isit la se sa ou espesifye sous contenu via GUID li (ou pou pi piti nan ka sa). Suivant jQuery extrait montre kouman:

    loadExpertsAsync: fonksyon() {

        jQuery.support.cors = vre;

        $.ajax({
            adrès entènèt: sa a.CreateFullApiUrl() +
                "?querytext = 'portails'&sourceid = 'b09a7990-05ea-4af9-81ef-edfab16c4e31'" +
                "&selectproperties ='LinkedInProfileUrl,GoogleCirclesProfileUrl,BALargeProfilePictureUrls,BAGridPictures,WorkEmail,Compétences,AboutMe,Enterè,JobTitle,PastProjects,PictureURL,PreferredName,TwitterHandle,LinkedInProfileUrl,PreferredName,GoogleCirclesProfileUrl'" +
                "&rowlimit = 99",
            metòd: "JWENN",
            en-têtes: { "Aksepte": "aplikasyon/json; odata = détaillé" },
            kachèt: pa vre,
            siksè: fonksyon (rezilta) {

Nan ka mwen, M' ap kouri pou API a kont SharePoint sou liy. Pou jwenn GUID a, Mwen te swiv étapes sa yo:

  1. Accès sant admin SharePoint
  2. Fè chwa "recherche" de la navigasyon men gòch
  3. Sélectionnez "Gérer sous rezilta yo"
  4. Fè chwa "Pèp lokal rezilta"
  5. Gade nan adrès entènèt la.

Adrès entènèt m' gade yon bagay tankou:

https://xyzzy-admin.sharepoint.com/_layouts/15/searchadmin/EditResultSource.aspx?level=tenant&sourceid=b09a7990%2D05ea%2D4af9%2D81ef%2Dedfab16c4e31&view=1

Paramètre sourceid a se sa te travay pou mwen.

(Mwen konprann ke sourceid a aktyèlman ka gen yon kalite bagay pèmanan ak SP, but I’ll always check anyway 🙂 ).

</fen>

undefinedVous pou m' blog.

Swiv mwen sou Twitter nan http://www.twitter.com/pagalvin

2 refleksyon sou "Kijan pou Spécifier moun tankou yon objektif Recherche / Contenu sous ki itilize SharePoint 2013 LÒT API

  1. Ashish Patel

    Wi, Paul it seems the IDs are fixed in all SP13 environments and here is list that I got from another source:

    Documents e7ec8cee-ded8-43c9-beb5-436b54b31e84
    Items matching a content type 5dc9f503-801e-4ced-8a2c-5d1237132419
    Items matching a tag e1327b9c-2b8c-4b23-99c9-3730cb29c3f7
    Items related to current user 48fec42e-4a92-48ce-8363-c2703a40e67d
    Items with same keyword as this item 5c069288-1d17-454a-8ac6-9c642a065f48
    Local People Results b09a7990-05ea-4af9-81ef-edfab16c4e31
    Local Reports And Data Results 203fba36-2763-4060-9931-911ac8c0583b
    Local SharePoint Results 8413cd39-2156-4e00-b54d-11efd9abdb89
    Local Video Results 78b793ce-7956-4669-aa3b-451fc5defebf
    Pages 5e34578e-4d08-4edc-8bf3-002acf3cdbcc
    Pictures 38403c8c-3975-41a8-826e-717f2d41568a
    Popular 97c71db1-58ce-4891-8b64-585bc2326c12
    Recently changed items ba63bbae-fa9c-42c0-b027-9a878f16557c
    Recommended Items ec675252-14fa-4fbe-84dd-8d098ed74181
    Wiki 9479bf85-e257-4318-b5a8-81a180f5faa1

    N. repons
  2. Pingback: Egzanp SharePoint lòt apèl « Paul Galvin SharePoint espas

kite yon repons

Adrès imèl ou pa pral dwe pibliye. Jaden obligatwa yo make *