Showing posts with label logicapps. Show all posts
Showing posts with label logicapps. Show all posts

Reading Notes #596

It is time to share new reading notes. It is a habit I started a long time ago where I share a list of all the articles, blog posts, and books that catch my interest during the week. 

If you think you may have interesting content, share it!

A woodpecker on a tree

Suggestion of the week

Cloud

Programming

AI

Miscellaneous

  • Homo sapiens 1.0 (Mark Downie) - Interesting reflection about how to determine what ready important when adding features in a product or services.

~Frank


Reading Notes #551

Thumb's up from Frank on a kayak

It is time to share new reading notes. It is a habit I started a long time ago where I share a list of all the articles, blog posts, and books that catch my interest during the week. 

If you think you may have interesting content, share it!

Cloud

Programming

Podcast

Miscellaneous


~frank

How to edit a JSON object inside an Azure Logic App

I use Azure Logic Apps in many of my solutions, I find them so conviennant to integrate different systemes. Recently one of them was failling and by lookink at the error message: The property value exceeds the maximum allowed size, I knew what was wrong. I was tying to save a JSON object into a Storage table but one property was too long. For this particular case I didn't need the value contain in the property so the plan was to delete it. At first, I thought it wasn't possible to edit a variable of type object in a Logic Apps, but it is!

In this post I will show how to use Compose action and setProperty to perform data operations in Azure Logic Apps.

The Context

First think to know is that the Compose action does not update the the current object but creates a new one. In this demo the JSON object use is quite short to simplyfy the demo.

{
	"firstname":"Frank",
	"lastname":"Boucher",
	"alias":"fboucheros",
	"bio":"With many years of experience in the IT industry, François (Frank) Boucher is a trusted Microsoft Azure professional whose expertise and bilingual service are relied upon in large Canadian markets (Ottawa and Montreal) as well as internationally. Among his many accolades, Francois has been awarded four times Microsoft Azure MVP status, named a Microsoft Azure Advisor, and Microsoft Azure P-Seller. Frank created the “Cloud 5 minutes” show. Where every second week, a new episode that answers a different technical question, is published both in French and English (cloud5mins.com). "
}

The Details

The Logic App recieve a JSON object from the request body. This is transfom as an Person object. To empty the bio property the action Compose will be used.

Inside the Compose action, use the context menu to find setProperty in the Expression section. The expression setProperty takes three parameters: the object, the property name, and the edited value. In this demo the goal was to empty the property therefore and empty string will be assign like this:

  setProperty(variables('Person'),'bio','').

The edited object is accessible from the output of the Compose action and this what will be return in the Response action.

The Result

By adding a single action it's possible to edit JSON object in a Logic App without requiring to use inline code or external tools. A demo wouldn't be complite without a end-to-end run so here the result of a HTTP POST to the Logic App passing the Person JSON and the returned result.

Video version

If you prefer, I also have a video version of this post.

Useful links


~ Frank



Reading Notes #490

Good Monday, time to share my reading notes. 
It's a habit I started a long time ago where I share a list of all the articles, blog posts, podcast episodes, and books that catch my interest during the week and that I found interesting. It's a mix of the actuality and what I consumed.

You think you may have interesting content, share it!

Cloud


Programming


Podcast

  • 561: How to Reduce Burnout, with Jennifer Moss (Coaching for Leaders) - As I was listening that episode, I realized that the team I'm in we already did a lot of those things. The past months were hard for all of us but I think we did well. Very interesting episode, and it could be a good idea to share to your teammates.
  • 288: Turning Hacks into Reality (Merge Conflict) - Super interesting to listen Frank and James as they share their progress about there App development and how a simple "wind speed" question became a thing!
  • No More Lonely Friends with Marissa Meizz (A Bit of Optimism) - Wow! It's always very impressive what can happends when you mix social media and good intention.
  • 562: How to Make Progress When Starting Something New, with Michael Bungay Stanier (Coaching for Leaders) - Very nice episode with Michael Bungay Stanier, author of the book also poart of this Reading Notes (but not the book they talk in the episode), about how to get started. Love it, very honest, and real.

Miscellaneous


Books


The Advice Trap: Be Humble, Stay Curious & Change the Way You Lead Forever
 

(Michael Bungay Stanier) 

- I really liked this book. Yes, I read The Coaching Habit, that's a nice one too, but in The Advice Trap has something that feels more adapted for when we get started. The book shares many gems and important points to get us started on a better path (or to change our habits). It's may not necessarily be easy, but it's clear what needs to be done, well in this case not done.


~frank

Reading Notes #356

IMG_20181128_122246Suggestion of the week

  • Security Headers (Tanya Janca) - Interesting post that shows the code/configuration we need to add, in order to get a more secure website.

Cloud


Programming


Miscellaneous


Books

fast_focus_coverFast Focus: A Quick-Start Guide To Mastering Your Attention, Ignoring Distractions, And Getting More Done In Less Time! (Damon Zahariades) - Great book well organized. Simple strike to the point. It is divided into three parts: understanding focus, creating an environment for focus, and employing tactics to focus. It lists the top 10 obstacles to staying focused and gives you a great idea on how to get start your journey.











~


Reading Notes #342

Connector

Cloud


Programming

  • Writing a Blazor App (David Pine) - This tutorial shows how to build a simple blazor app...and it's NOT the hello-word or todo.

Miscellaneous



Reading Notes #331

IMG_20180609_102403-EFFECTS

Cloud


Programming



Books



Miscellaneous



Reading Notes #329

IMG_20180527_154913

Suggestion of the week



Cloud



Programming



Books

jab_cover
Jab, Jab, Jab, Right Hook: How to Tell Your Story in a Noisy Social World (Gary Vaynerchuk) - Great book, for all of us you are trying to tell something, pass a message on the social media... This is a must.




Miscellaneous


Reading Notes #308

2017-12-02_00-10-58Suggestion of the week


Cloud


Programming


Miscellaneous


Reading Notes #270

canada-mapSuggestion of the week


Cloud


Databases


Miscellaneous



Reading Notes #269

AzureFunctionSuggestion of the week


Cloud


Programming


Miscellaneous



Reading Notes #203


AzureConScott

 

 

Suggestion of the week


Cloud


Programming


Databastes


Miscellaneous

  • Going Back to One (Alexandre Brisebois) - Organize our work to become a performer, could be easily done in Windows. 10.

~Frank 



Reading Notes #195

VS2015_2015-07-27_0945Suggestion of the week


Cloud


Database


Programming


~ Frank