[Demo] Control your TESLA through Siri and Power Automate

[Demo] Control your TESLA through Siri and Power Automate

Imagine a scenario: in a freezing cold winter, you are heading to the parking lot for your Tesla car. You are holding a big box and have no hand to take out the phone then choose the commands from the menus to turn on the AC remotely, or open the rear trunk. So you just talk to your Apple watch and tell Siri to command the car easily and promptly. Is it an interesting experience you wanna try? If so, you may follow the below steps to finish your personal control application.

Disambiguation operator in Power Fx

 Disambiguation operator in Power Fx

Reference 1 2 3

As operator in Power Fx

 As operator in Power Fx

Use the As operator to name a record in a gallery or record scope function, overriding the default ThisItem or ThisRecord. Naming the record can make your formulas easier to understand and may be required in nested situations to access records in other scopes.

A few controls and functions apply formulas to individual records of a table. To refer to the individual record in a formula, use one of the following:


Power Fx formula reference for Power Apps

 

Power Fx formula reference for Power Apps

Reference

SQL: Data type for image

 

SQL: Data type for image

Reference: 12

The ntexttext, and image data types will be removed in a future version of SQL Server. Avoid using these data types in new development work, and plan to modify applications that currently use them. Use nvarchar(max)varchar(max), and varbinary(max) instead.

SQL: VARCHAR vs NVARCHAR

 SQL: VARCHAR vs NVARCHAR



varchar is used for non-Unicode characters only on the other hand nvarchar is used for both unicode and non-unicode characters. Some other difference between them is given below.

SQL: VARCHAR(N) vs VARCHAR(MAX)

  SQL:  VARCHAR(N) vs VARCHAR(MAX)


When choosing data type, we should consider the database design, performance, compression, and indexes in mind.

We can define a specific range for the varchar (n) data type, and it is the recommended way to do so.
Varchar (n) can store up to 8000 bytes of data using varchar (8000) data type.
Varchar (max) can store data up to 2 GB.

SQL: CHAR vs VARCHAR

 SQL: CHAR vs VARCHAR

[TUTORIAL] Trigger a Microsoft Flow from a Custom Button in Dynamics 365

 

Trigger a Microsoft Flow from a Custom Button in Dynamics 365

   

Introduction - Cloud architecture for Business Central

 

Introduction - Cloud architecture for Business Central

Reference

Business Central is a full cloud solution, and its architecture is illustrated in the following diagram.

REST vs OData

REST vs OData

Understanding the Concept of REST APIs

Image Source: Astera Software

REST (REpresentational State Transfer) refers to a Software Architectural Style that defines the standards for exchanging information between two different systems via the HTTP Protocol. It is the most popular architecture for exchanging data on the World Wide Web.

REST defines 6 different principles for Web Services:

  • Uniform Interface: All components in a REST system must adhere to the same interface and rules so as to communicate with each other. 
  • Client-Server: REST separates Servers from Clients. The Servers store information, while the Clients retrieve information from the Servers. 
  • Stateless: All requests made via REST are stateless. They have all the necessary information needed by the Server to execute the request. 
  • Cacheable: In REST, both Clients and Servers can cache resources, which is good for reducing traffic and improving performance. 
  • Layered System: REST supports a Layered System Architecture. The Client may communicate with one Server, while the other Servers perform tasks such as Data Storage and Authentication. 
  • Code on Demand: REST requisitions may return executable code or logic when necessary (optional). 

Any API (Application Programming Interface) that follows the above principles is referred to as a REST API. In most cases, REST APIs use XML or JSON, but the REST Architecture doesn’t require anything specific as far as this is concerned. REST does not require any particular format, but it accepts any format that can be used in Content Negotiation

Understanding the Concept of OData

OData (Open Data Protocol) is a set of best practices for developing and using RESTful APIs. It helps you to focus on your Business Logic while creating RESTful APIs without the need to worry about various ways to define request and response Headers, HTTP Methods, Status Codes, Media Types, URL Conventions, Payload Formats, and more. 

Image Source: Progress Software

OData carries the following specifications:

  1. It must follow REST principles unless there is a clear reason why it should not.
  2. The OData services MUST have support for Atom encoding.
  3. OData services SHOULD have support for JSON encoding. 

REST is the most essential component technology of OData. OData 3.0 standards require OData users to follow REST principles. OData rests on HTML technology, which resolves the problem of being REST-based in a way. It supports two Protocols for Data Transfer, the XML-based Atom format and JSON. 

OData also has guidance for performing actions like defining reusable procedures, tracking changes, and sending many REST requests.  

It provides two models for Data Management which include:

  1. Entity Data Model (EDM): This is an abstract Data Model that OData users MUST use to describe the exposed data. 
  2. Service Model: It is made up of Static Resources and a set of Dynamic Resources. The work of the Static Resources is to provide a way of asking the Service about its Data Model, while the Dynamic Resources provide methods to manage the Data Model.

In the next section, we will be discussing OData vs REST APIs to know how the two compare in different core areas. 

OData vs REST APIs: What’s the Difference?

Let’s now discuss how OData and REST APIs compare to each other:

OData vs REST APIs: Function

REST Function

REST is an architecture that defines how to send messages between a Client and a Server via HTTP. It is a model that states that you can use HTTP and its verbs to perform CRUD Operations (Create, Read, Update, Delete) on the resources exposed by your Services. Thus, REST is more concerned about the architecture. 

OData Function

OData is a standard from Microsoft that relies on the REST Architecture to send specific types of messages over HTTP. It defines metadata in CSDL (Common Schema Definition Language) format to describe the Entity types supported by your Service and their Properties, Data types, and more. Thus, OData is more concerned about the content.

OData vs REST APIs: Principles

REST Principles

REST defines 6 principles, as has been listed above, to ensure the creation of efficient Web Services and REST APIs must follow these principles. These principles ensure the success of REST Projects. 

OData Principles

OData is built on top of the REST Framework, thus, it depends on REST principles. Note that even though OData recommends its users to follow REST principles every time, the requirement can be relaxed in the case of a good reason. A very basic, Compliant Service should be easy to build, with additional work necessary only to support additional capabilities. 

OData vs REST APIs: Best Use Case

REST API Best Use Case

REST is used when there is a need to interact with a Data Source, for example, to retrieve data for all Products. It is easier and faster to parse data using REST APIs. It uses URI to expose the Business Logic. 

The following operations are available on HTTP:

Image Source: Medium

OData Best Use Case

OData is best used to expose Services and APIs to Systems and Applications. It has facilities for extension to achieve the custom needs of the REST APIs. 

OData vs REST APIs: Data Transfer Format

REST Data Transfer Format

Data transfer format is an important factor to consider when comparing OData vs REST. REST supports the transfer of data in any format. Although most REST APIs use XML and JSON formats, REST is not specific in regard to this. 

OData Data Transfer Format

OData specifies that the data should be transferred in either JSON, XML, or Atom format. 

Those were the major differences between OData vs REST.  

Conclusion

This blog discussed fine differences across OData vs REST APIs. We also discussed concepts behind OData and REST APIs, their specifications and principles. 

For Businesses, extracting complex data from a diverse set of Data Sources such as REST APIs can be a challenging task. This is where Hevo saves the day by providing an efficient, reliable and fast ETL Service.

[DEMO] Synchronize Data from Business Central to Dynamics CE (Dataverse) through OData (Web API)

 Synchronize Data from Business Central to Dynamics CE (Dataverse) through OData (Web API)

Business Central Web Services: Page vs Codeunit vs Query Differences

 

Business Central Web Services

Business Central supports three types of web services: API, SOAP, and OData.

[Tutorial] Power BI Data Refresh

 Power BI Data Refresh

Reference

In this tutorial, we will see what is data refresh in Power BI and how to schedule refresh in Power BI. And also we will discuss

[TIPS] Hide date format "12/31/2001" when date filed is unselected or blank in Canvas App

 Issue: 

  In Power Apps (Canvas App), when use SharePoint as the data source, the date field always shows "12/31/2001" even this field is blank or not selected.

[TIPS] Power Apps SharePoint form setting date/time field to blank

Power Apps SharePoint form setting date/time field to blank

ISSUE: Can't clear a datetime field in SharePoint from PowerApps.

[TIPS] Add "Other" to PowerApps Canvas App Dropdown Field

 Dropdown menus allow app users to select a pre-defined value from a list of options. But sometimes you want the user to fill-in their own value using a text input their selection cannot be found in the list. In this article I will show you how to create a dropdown with an other option in Power Apps.

GroupBy and Ungroup functions in Power Apps

GroupBy and Ungroup functions in Power Apps 

Groups and ungroups records of a table.

Embed a Power BI report in a model-driven app main form

 

Embed a Power BI report in a model-driven app main form

You can use Power BI reports in Power Apps model-driven apps to bring rich reporting and analytics to your main forms and empower your users to accomplish more. This unlocks the power to aggregate data across systems, and tailor it down to the context of a single record.  

[TIPS] PowerApps Form doesn't show up in SharePoint List or not the expected size (squeezed)


Issue:
   When trying to use PowerApps form in SharePoint list, the PowerApps form doesn't show up.

[TIPS] Columns couldn't be imported to SharePoint List by using Power Automate /Flow

 Requriement:

   Import Excel to SharePoint through Power Automate (Flow).

Issue:

  Below highlighed two columns couldn't be imported.

[TIPS] Get Excel Date Column and Create in SharePoint List Failure


Requirement:  get items from Excel, then create an item in SharePoint list.

Issue:

Got failure when create new item in SharePoint List.


The error occurred in Date column.

The date value in Excel is integer numbers. 

I used a Compose step to get the date value in Flow.

Use the below expression got below error.

if(empty(outputs('Get_Requested_Date')),null, addDays('1899-12-30',int(outputs('Get_Requested_Date')),'yyyy-MM-dd'))

Unable to process template language expressions in action 'Create_item' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

 

Solution:

Change the expression to below one. The error gone.

if(empty(outputs('Get_Requested_Date')),null, if(isInt(outputs('Get_Requested_Date')), addDays('1899-12-30',int(outputs('Get_Requested_Date')),'yyyy-MM-dd'),null))

If you wanna follow this expression, just replace outputs('Get_Requested_Date') with yours.







How to recognize the project management pattern

 How to recognize the project management pattern

Canvas App Monitor

 Canvas App Monitor

Reference

Canvas App Monitor is a new tool to better understand, debug, and improve your apps.  Monitor provides a running log of all the activity within your app allowing you to see how declarative formulas are actually doing their work.

Delegable functions

 Delegable functions

Reference

The next step is to use only those formulas that can be delegated. Included here are the formula elements that could be delegated. However, every data source is different, and not all of them support all of these elements. Check for delegation warnings in your particular formula.

Power Apps delegable functions and operations

 Power Apps delegable functions and operations

Reference

Delegation is supported for certain tabular data sources only. If a data source supports delegation, its connector documentation outlines that support. For example, these tabular data sources are the most popular, and they support delegation: