cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sajarac
Super User
Super User

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
Pstork1
Dual Super User
Dual Super User

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
Pstork1
Dual Super User
Dual Super User

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.

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!

 

 

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.

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

 

Capture.PNG

 

Any idea?

 

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
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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,066)