Skip to main content

Posts

How to create Custom Web Service WCF (REST) in SharePoint 2013

SharePoint native web services can be access via _vti_bin mapped path. Deploying our custom service to this mapped path enables mapped features such as Access service using relative path Ex – Assume service is custom.svc; therefore it is possible to access it http://server/ _vti_bin/custom.svc http://server/sites/site/ _vti_bin/custom.svc http://server/sites/site/web/ _vti_bin/custom.svc http://server/sites/site/web/pages/ _vti_bin/custom.svc But SharePoint Project template does not contain wcf project therefore we need to do have some work around to archive this. Step by Step guide to create a custom SharePoint REST service Create a Empty SharePoint Project by Selecting as Farm Solution Then right the Project and Add –> SharePoint Mapped Folder –> select ISAPI and click ok Then create a sub folder under ISAPI that is use to deploy our service. Now we need to create wcf service and it’s interface. therefore add two classes named ServiceApiToken.c...

SharePoint Rest API calls are not working in internet Explorer (IE)

This is a sudden issue I have come across, Previously REST API calls were working on IE, Chrome and other browsers. EX: https://abc.com/News/_api/web/lists/getbytitle('Pages')/items?$expand=file&$filter=ArticleStartDate gt dateTime'2017-03-12T00:00:00Z'   &$top=3 For some reason these REST calls are not working in IE without encording. You can do a simple trick to encode the URL before requesting data. EX:- Var eurl = https://abc.com/News/_api/web/lists/getbytitle('Pages')/items?$expand=file&$filter=ArticleStartDate gt dateTime'2017-03-12T00:00:00Z'   &$top=3 eurl = encodeURI(eurl);

Recursively call Asynchronous function and wait for finish all before proceeding in JavaScript

In recently i have to work with problem which recursively call asynchronous methods. I tried with differed object $.when.appy ; but with large number of calls this method didn't show any constant result. Therefore i used some call back function with to archive this task. Here I'm a keeping a TrackCalls object to track async calls and their returns. If  any error occurred loop will be stopped and  notify.   var TrackCalls = { "callCount" : 0 , "receivedCount" :0 , "errorCount" :0};   function callBack() { setTimeout( function () {   if (TrackCalls.callCount == TrackCalls.receivedCount) { // all async call received } else if (TrackCalls.errorCount > 0) { // Error occurred in one of async call } else { callback(); } }, 2000); }   function AsyncCall( finised , failed) { TrackCalls.callCount++; $.ajax({url: "test.html" }) ...

Develop and Deploy Microsoft Flow Applications

Development and deployment of Microsoft Applications has never been easy. In actual production environments you need to develop your application, test it, release to UAT and ultimately release to the live environment. Microsoft Flow’s Export and Import functions made this process convenient and easy. First you need to create your Flow in your development environment. I have few sample scenarios. Scenario one Assume that you are having support email address on Gmail and you want to create a follow up task to the supporting team which is on the Microsoft Outlook environment. Link: http://melick-rajee.blogspot.ae/2017/12/create-simple-automation-using.html Scenario two  Assume that your sales team need an approval of a customer document. In generally sales team need to scan the document and send to the relevant person via email and get the approval. Here you can use your Flow mobile application to trigger the process. Link: http://melick-rajee.blogspot...

Iterate (Loop) Object (Key value pair) in JavaScript and JQuery

Let assume y is our object which has following data and you need to iterate it in native JavaScript var y = {1: "2" , name: "value" , sN: "sV" } $.each(y,function(k,v){alert(k + v)}); in jQuery you can do the same thing like below var Y = {1: "2" , name: "value" , sN: "sV" } for (var k in Y) { if (y.hasOwnProperty(k)) { alert(y[k]) ; // value alert(k) ; // key } }

Integrating Microsoft Flow Mobile Integration with Microsoft Flow Automation in Office 365 Online Services

Integrating Microsoft Flow Mobile Integration with Microsoft Flow Automation in Office 365 Online Services Microsoft Flow has its own mobile application which is very use full for integrating Business Flows. Which is available in Apple, Android and Windows stores    Today I’m explaining the possibilities that you can use Flow mobile in your automation process. Scenario: Assume that your sales team need an approval of a customer document. In generally sales team need to scan the document and send to the relevant person via email and get the approval. Here you can use your Flow mobile application to trigger the process. To start with the process as a First step I’m just using Flow Button and One Drive. Let’s Begin You can Launch the Microsoft Flow using either form directly launching the Microsoft Flow or though O365 portal. Launching Microsoft Flow Start with Bank template In this scenario now you need to ad...

The breakpoint will not currently be hit. No symbols have been loaded for this document. In SharePoint Development or Deploying SharePoints wsp

These symbols, Dlls can be belongs to same project or any other references from other projects. There are various reasons for this. I will explain few tips that you can try. Check for multiple solutions If the same reference libraries are referred from other solution and if it is in open in a visual studio solution, assemblies might being held with file lock by other visual studio; that cause not to deploy reference assemblies to GAC (global assembly cache).    Full Debug Information This is first to try.  Check the project build information and make sure full debug information is specified. Go to properties for SharePoint Project. Then go to build and advanced section.   Then check for debug information and make sure it is set to full.   Check Load Symbols in debug mode This is a quiet a handy way to check the symbols debug files.  First press F5 or start debugging your project. Then you ...