cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Macwin
Resolver I
Resolver I

use Azure function with images from CDS

I hope somebody can help me and Im not using the wrong section 🙂


Im trying to implement my Azure function to PowerApps. The function combines two images which are located in my azure storage.

this is already working with static items from my own azure data storage. and now im trying to implement it to my powerapps with this tutorial 

https://powerapps.microsoft.com/de-de/blog/using-azure-functions-in-powerapps/

 

I want to Run my Azure function like in this tutorial 

AzureFunction.RunThis(Input1:ThisItem.image1, Input2:PictureBox.Image; Output:ThisItem.OUTputfield)

 

I  Think I need a little fine tuning on my C# Azure Function itself and I need to setup a json.

 

This is how I call my function at the moment

 

  [FunctionName("ConvertMe")]
        public async static Task RunASync([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req,
         [Blob("test", FileAccess.ReadWrite)] CloudBlobContainer blobContainer,
            [Blob("test/out3.png", FileAccess.ReadWrite)] CloudBlockBlob outputBlob, ILogger log)

 

 

I need this function because common data service still cant handle transparency and this is my workaround. 

 

2 REPLIES 2
v-yutliu-msft
Community Support
Community Support

Hi @Macwin ,

Could you tell me your data source?

I'm afraid there's no connector has this kind of function:

AzureFunction.RunThis(Input1:ThisItem.image1, Input2:PictureBox.Image; Output:ThisItem.OUTputfield)

What's more, if you want to use json, you could try this formula:

JSONDataStructure [, Format ] )

Then the data in the data source will be transfer to json.

Tables, records, and primitive values are supported, arbitrarily nested.

Here's a doc about this function for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-json

 

 

Best regards, 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yeah. I know there isnt a connector for this. Thats why Im going to build a custom connector/api like in this linked tutorial from my first post.

My datasource is actually a picturebox and a peninput. And I want to upload with my connector/api (which composite this two images) to a cds image field.

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Users online (3,391)