cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sajarac
Level 8

Trigger action from PowerApps

Hi there,

 

Quick question looking for some advice,

 

I have my powerapp button that start my flow, which is basically send to flow my customer ID form a Share Point list.

LIPCreateExcelFile.Run(LblretrievecustomerID.Text)

 

If I test my flow with the option I'll perform the trigger action, I have as a result two boxes to manually input my customerID

Capture2.PNG

 

And for instance I have a customerID = 19, I type the number in both fields and the flow runs OK.

 

But, when I try to run the flow form the PowerApps, I get an error

 

And this is the error Details:

Unable to process template language expressions in action 'Create_XLSX_document_from_template' inputs at line '1' and column '2231': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_plumsail']['connectionId']' cannot be evaluated because property 'shared_plumsail' doesn't exist, available properties are 'shared_sharepointonline'. Please see https://aka.ms/logicexpressions for usage details.'.

 

Any idea?

 

thanks in advance

 

Capture.PNG

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Trigger action from PowerApps

The pictures, the code and the descriptions don't really match.  Your run () command shows only one parameter, but when you test you have two boxes. That would be two parameters. And the screenshot of the flow only shows one parameter in use.  I suspect you've added new parameters after originally adding the flow to power apps.  Make sure to remove the flow and re-add it so that it requests both parameters.  That should also make sure it sets up both connections.  That's the error you are currently getting, saying that the Plumsail connection doesn't exist.  But it must have at one time.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

5 REPLIES 5
Dual Super User
Dual Super User

Re: Trigger action from PowerApps

The pictures, the code and the descriptions don't really match.  Your run () command shows only one parameter, but when you test you have two boxes. That would be two parameters. And the screenshot of the flow only shows one parameter in use.  I suspect you've added new parameters after originally adding the flow to power apps.  Make sure to remove the flow and re-add it so that it requests both parameters.  That should also make sure it sets up both connections.  That's the error you are currently getting, saying that the Plumsail connection doesn't exist.  But it must have at one time.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

sajarac
Level 8

Re: Trigger action from PowerApps

Hi there,

 

Thank you very much for your prompt response,

 

I just did some changes and you know what triggers the flow?

 

LIPCreateExcelFileV2.Run(LblretrievecustomerID.Text,LblretrievecustomerID.Text)

 

So I am assuming this double request is to fill the two boxes "fields" in the flow.

 

I have no explanation but is working now.

 

thank you!

 

 

Dual Super User
Dual Super User

Re: Trigger action from PowerApps

As I said, if you create two requests for information in the flow then you have to supply two parameters. That's why its working now.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
sajarac
Level 8

Re: Trigger action from PowerApps

Yes, but now when I start the app I am getting this popup error.

 

Capture.PNG

 

Any idea?

 
Dual Super User
Dual Super User

Re: Trigger action from PowerApps

The query is going to be a string and that looks like what you are passing.  Knowing that its an OData query I would make sure that you are using all single quotes, etc. OData can be pretty picky.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,722)