Sunday, 27 August 2017

Overview of Microsoft Azure Logic Apps



What is Logic Apps ?



  • Logic App service is a Code-less integration service for communicating with different services or platforms. With Visual business flows, B2B integration and developer friendliness, Microsoft makes themselves a strong contender in the cloud computing. Its high-time for all integration specialist to get acquainted to cloud technologies.
  • Logic Apps allow developers to design workflows that articulate intent via a trigger and series of steps, each invoking an App Service API app whilst securely taking care of authentication and best practices like durable execution.
  • Microsoft are investing strongly in this technology, introducing many new connectors in line with the demands of the integration requirements of enterprises. Azure LogicApps and ‘Functions’ are the backbone of serverless architecture in Azure. They both allow developers to quickly create and deploy code to the cloud that needs to be scalable, lightweight and fast. As the name implies, there are no infrastructure requirements; at least, no infrastructure that the consumers of serverless architecture should be concerned with, because it’s a fully managed service.
  • Logic apps are not only about integration and orchestration, but also about connectivity to other services. These services can be Azure based, SAP applications or 3rd party solutions such as OneDrive and DropBox: They can even be custom-built applications running on-premises, such as a web API.



Logic Apps Components



Connectors

The most basic element in any Logic App is the connector. Connectors are code elements bundled together to allow connectivity to a service. Each connector defines its own API and requires some information to be configured in order to connect to the corresponding service.
For Example : If we wants to make connection between Facebook and Dynamics 365, then Facebook and Dynamics 365 will be two Connectors of Logic Apps.

Triggers

Triggers are the events (CRUD) on which your Logic App will perform actions. They are used in conjunction to connectors to initiate the Logic App workflow. Each connector provides its own trigger definition.
For Example: Let say we want to Create a Task in Dynamics CRM, as soon as you get a new post on your Facebook Timeline. In this example, New Post on your Facebook Timeline is a Trigger point of Logic Apps.

Conditions

These are optional and can be used to inject some logic into the workflow. In some cases, the Logic App may be concerned with direct input and output.
For Example: If you want to create Task in CRM only when you have been notified on Facebook from a specific Users on your timeline. Otherwise create no task in CRM.

Actions

Every step in a Logic App definition is an action. This includes triggers, control flow steps like conditions, scopes, for-each loops, do-until loops, calls to connectors and calls to native actions. An action is what developers choose to do with the input that is received from a connector. 
For Example: Let say we want to Create a Task in Dynamics CRM, as soon as you get a new notification on Facebook. In this example, Create Task record in CRM is an Action of Logic Apps.



Logic Apps Pricing



Logic apps have no upfront setup costs. They also have no ongoing costs or infrastructure costs. The pricing works on the basis of consumption. This means that only you are only charged for executed actions.






















Logic Apps Deployment



Logic Apps are extremely lightweight and it is very easy to deploy. Visual Studio Team Services (VSTS) has built-in tasks for deploying Logic Apps. Alternatively, developers can create a custom deployment task for CI/CD using their favorite tools and either Azure PowerShell or the Azure CLI.



Conclusion



Logic Apps is a simple yet extremely powerful service that allows developers and enterprises to create cloud-based integrations and workflows with off-the-self, ready-made components. Instead of trying to work out which libraries, API and frameworks to use, the focus is placed on achieving as much as possible with as little effort as possible. Logic Apps are easy to develop and deploy. They come with a great DevOps story that can take the implementation from development to production in a few simple, reproducible steps with the power of ARM templates. New connectors are added daily, and the service is growing fast to accommodate a wide range of enterprise integration requirements.




My next post will be on How to connect Facebook with Dynamics 365 using Logic Apps.

Happy Integrating 👍

Sunday, 20 August 2017

Hyperlink on Lookup Values in CRM Portal




Hello Friends,

From last couple of days, I came across so many forums and communities and found so many folks are looking for a way to open lookup selected values in Portal so that users can see easily the details of lookup selected values.

Extending CRM lookup functionality to ADX portal gives users an rich experience in terms of user interface/functionality. However not all fields behave same in Dynamics CRM and ADX portal, look-up control being one such example. When viewed on ADX Portal form, look-up doesn't allow users to open up a new window giving details about the selected lookup value like CRM.

Today In this article I am going to share the code through which we can open the lookup selected value in portal.


Step 1 - Download the JS file from this link.

Step 2 - Create a Web File record (Portals > Web Files) with below details. And attach JS file (downloaded in Step 1) in Notes.




Step 3 - Create Entity Form in Edit Mode to view the lookup value. See below link to create Entity Form in Edit mode.

https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/entity-form/


Step 4 - Use below code on Webpage Custom JavaScript section to Open Lookup Selected Values.


$(document).ready(function () {

//Parameter Description:

//Parameter 1   -   Lookup Html input element which store lookup text (can get it by doing F12)
//Parameter 2   -   Lookup Html input element which store lookup guid (can get it by doing F12)
//Parameter 3   -   Partial Name of webpage which is associated with Entity Form (Created in Step 3 Edit Mode)
//Parameter 4   -   location where you want to open new window to view lookup record (_self/_blank)


















 $.getScript('~/openlookuprecord', function () {

 openLookupRecord("case_name","case","Edit-Entity-Form-Webpage","_blank");
     
});

});





Step 5 - Open the webpage On Portal. As soon as you will select the lookup value, you will get Hyperlink over the value. Now when you click on Lookup value you will be redirected to Details Page.













Best part of this code is, its totally configurable. After attaching the JS file in Web File record, you just need to call openLookupRecord function.

Please feel free to get in touch in case of any query. Cheers 😃
Blogger Widgets