PowerAutomate Dummy Custom Code Connector

PowerAutomate Dummy Custom Code Connector

With the announcement of the new Power Automate Custom Code approach for Custom Connector I still wanted to test the theory whether we would be able to create our own small logic without being tied to the calls for API service.

And it looks like this is exactly the case with the current version. I have implemented a dummy connector that simulates a call to a third-party service, although in reality it only uses our custom logic Example repo


And how can we get this on the example of the long-awaited functionality of string hash:

Find any existing open API without key/auth requirement that may accept additional query/body parameters or website.

No alt text provided for this image

Add a definition for your Action

No alt text provided for this image


Enable Swagger editor to pass a few additional parameters

No alt text provided for this image


And pass you Script code that will intercept the call and transform it in a way that suits you

No alt text provided for this image

Well and check the result of your work.

No alt text provided for this image


Few notes to keep in mind:

Internal logic will check DNS records and availability of the resources used - So you need some real and working URL to simulate the request.

Code update takes some time. Your first request may fail after the update.

Sometimes custom code is disabled after edits of the connector. Try to make changes to code(add space) and Update it again.

You may need to manually specify used namespaces and check that your code consumed only allowed.

Tjan Lee

Microsoft Power Platform Super User | Tacstone

1 年

Maksym Martynov Found this amazing custom connector and been testing with it! Do you by any chance know how to feed a file to the custom connector? From what I understand now is that it only accepts strings. Thanks in advance!

回复
Lucian Constantin

DevOps Engineer at Optimizor

3 年

Wow, super simple workaround to replace a more complex approach like Azure Functions. Thank you!

Thomas Sands?r

Head of Dynamics 365 & Power Platform @ Point Taken AS | Microsoft MCT | Microsoft MVP

3 年

Simple answer is yes! As long as you and other consultants keep making these awesome connectors we will post them out????

Maksym Martynov

Technical Solutions Architect | Power Platform | Dataverse | Dynamics 365

3 年

Thomas Sands?r Any plans to extend Connector Gallery with Custom Coded connectors?

要查看或添加评论,请登录

Maksym Martynov的更多文章

社区洞察

其他会员也浏览了