cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

Get the values from on-prem MSSQL table

Hi, 

 

I am using on-prem SQL Express
I would like to select top 1 * from LeaveApplication where applicant ='{vApplicant}' order by {vApplicant} order by dateSubmit
(vApplicant has been assigned a value, e.g. Sam)

 

Then, I would like to get all the fields of this record, and assign them to variable
But I receive an error on step #1....

 

may I know how to archive this?

 

Q17a.PNG

 

Thanks in advance

 

Sam

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Get the values from on-prem MSSQL table

 

Hi @samsam ,

 

You could recreate a Flow using the second method you mentioned. Then the problem can be solved.

Please take a try.

 

Best Regards,

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

View solution in original post

3 REPLIES 3
Highlighted
Advocate II
Advocate II

Re: Get the values from on-prem MSSQL table

I am trying another way, 

but it still returns error 

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

 

Q17b.PNG

Highlighted
Community Support
Community Support

Re: Get the values from on-prem MSSQL table

 

Hi @samsam ,

 

You could recreate a Flow using the second method you mentioned. Then the problem can be solved.

Please take a try.

 

Best Regards,

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

View solution in original post

Highlighted
Advocate II
Advocate II

Re: Get the values from on-prem MSSQL table

@v-bacao-msft Thanks ~~ it works perfectly~

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Users online (5,371)