PowerAutomate Dummy Custom Code Connector
Maksym Martynov
Technical Solutions Architect | Power Platform | Dataverse | Dynamics 365
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.
Add a definition for your Action
Enable Swagger editor to pass a few additional parameters
And pass you Script code that will intercept the call and transform it in a way that suits you
Well and check the result of your work.
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.
Looking for a job
1 年Maxime Leroy Christophe Angot
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!
DevOps Engineer at Optimizor
3 年Wow, super simple workaround to replace a more complex approach like Azure Functions. Thank you!
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????
Technical Solutions Architect | Power Platform | Dataverse | Dynamics 365
3 年Thomas Sands?r Any plans to extend Connector Gallery with Custom Coded connectors?