Article

Data Mapping in SharePoint List using PHP

Topic: Personal Websites and ArticlesPublished November 30, 2015
No ratings yet981 viewsSign in to rate
The intention of this project is to create a collaborated effort for SharePoint integration and create a good and stable solution that works for most SharePoint projects. This module integrates with SharePoint using the SharePoint SOAP Web Services. It’s using the SOAP services since that is the most widely supported and most powerful way to integrate SharePoint with Services. rnThe SharePoint Module currently supports:rn1. Consuming SharePoint data in lists with the Feeds module.rn2. Consuming SharePoint data in lists with the Views module.rn3. Use SharePoint Search within your Drupal Site. project to build an app for SharePoint using PHP. You can use the TokenHelper class in your project to get access tokens that work with SharePoint app. The project also includes an example page that shows how to use the TokenHelper class to contact a REST endpoint in SharePoint.rnCreate a web applicationrnThis document is configured to use a web application that resolves to PHPAPP. To make it easier to configure your app we recommend that you use PHPAPP as your web application name. Follow the procedure provided below to create the web application: Create a web application on your web server with a name of PHPAPP.rnMap the web application physical path to the PHP xampp folder included in the sample.rnNote: The web application must be configured to use SSL Certificate(Contact web hosting provider for more querries). Register your app in SharePointrnSince you’re not installing the app from the Office Store, you must register your app in SharePoint before deploying it you need to Follow this procedure to register the app into Sharepoint: Open a browser and go to https://samplesharepointsite/_layouts/16/newapp.aspxrnFill the following fields in the page:rnClient Id – Click the Generate button to let SharePoint create a value for you.rnClient Secret – Click the Generate button to let SharePoint create a value for you.rnTitle – PHPApp for SharePointrnApp Domain – localhostrnRedirect URI – https://localhost/PHPAPP/index.phprnCopy the values from store for future references. You will need them to update the configuration and app manifest files.rnClick on Create.rnNote: If you specify a title other than PHPApp for SharePoint you must update the Name attribute of the App element in the app manifest accordingly name provided. Update the configuration filernThe sample requires the client_id, and client_secret values from the app registration page in the previous task. To update this values in the config.php file, follow this procedure: Open the config.php file provided in this sample in a text editor.rnCopy the client_id, and client_secret values that you got in the previous task to the placeholders in the file.rn3. $client_id = “”;rn4. $client_secret = “”; Save the config.php file.rnUpdate the app manifestrnThe AppTemplate.app file is an app package that contains the app manifest file. You have to update the app manifest file with the client_id value obtained in the Register your app in SharePoint task. Follow this procedure to update the app manifest file: Go to the root folder of the sample.rnRename the AppPackage.app file provided in this sample to AppPackage.ziprnOpen the zip file and extract the AppManifest.xml file.rnEdit the AppManfest. xml file. Replacewith the Client Id value from the app registration page.rn5. 6. ”/> 7. Replace the AppManifest.xml file in the zip file.rnRename the AppPackage.zip file back to AppPackage.apprnNote: The updated AppPackage.app file must keep the same file structure as the original. Moving files or folders can invalidate your package. Deploy the app to the SharePoint siternYou can deploy the app using the app catalog that lets administrators deploy business apps to SharePoint sites in the tenant. If you don’t have an app catalog site in your tenant, create one. For more information, see Create an App Catalog site.rnAdd the AppTemplate.app file to the app catalog. For more information, see Add custom apps to the App Catalog site.rnGo to the SharePoint site where you want to deploy the app. From the Settings menu (the gear in the top right corner of the page) choose Add an app.rnChoose the PHP App for SharePoint app. In the consent page, choose Trust It option.

Further reading

Further Reading

4 total

Article

In today’s digital world, electronic gadgets have become an essential part of our daily lives. Whether it’s a television, home theater system, or set-top box, having the right accessories ensures a seamless experience. ThePoojaElectronics is a trusted name when it comes to premium-quality remotes, power adapters, cables, and other electronic accessories. Why Choose ThePoojaElectronics? Wide Range of Products – ThePoojaElectronics offers an extensive selection of remotes

April 1, 2025

Article

Cash Home Buyer in Sacramento: A Convenient Solution for HomeownersrnSelling a home can be an overwhelming and time-consuming process. From preparing the property for listing to waiting for offers and navigating complex negotiations, the traditional route of selling a house often comes with significant challenges. However, in Sacramento, a growing number of homeowners are turning to cash home buyers as a faster, simpler, and more reliable solution to sell their homes quickly

January 10, 2025

Article

Cash Home Buyer in Sacramento: A Convenient Solution for HomeownersrnSelling a home can be an overwhelming and time-consuming process. From preparing the property for listing to waiting for offers and navigating complex negotiations, the traditional route of selling a house often comes with significant challenges. However, in Sacramento, a growing number of homeowners are turning to cash home buyers as a faster, simpler, and more reliable solution to sell their homes quickly

January 10, 2025

Article

As the Indian Premier League (IPL) gears up for its 2025 season, the anticipation among cricket enthusiasts is palpable. The recent mega auction has reshaped team rosters, with franchises making strategic acquisitions to bolster their squads. Based on current analyses and squad compositions, here are the top five teams poised to make a significant impact in IPL 2025: 1. Royal Challengers Bangalore (RCB) RCB has historically been a team brimming with star power, and the 2025 s

December 20, 2024