web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Get rows from sql query and update sharepoint list.

(0) ShareShare
ReportReport
Posted on by 23

Hi ,

 

I'm trying to run a sql query in power automate and update a sharepoint list.

Query is:

Select sJobID,sJobQuickDesc, sContactEmail,emp.Name from tblsv_job job
left join tblSystem_Employee emp on emp.EmployeeID = lOwnerID
left join tblsv_activity act on act.lJobID = job.lJobID
where CAST(dtClosed AS DATE) = CAST(GETDATE() AS DATE) and iLineType <= 1

 

dtclosed is a datetime field . convert this to date field and check if equal to todays date.

shravanreddy13_0-1690500974210.png

The conversion doesnt work. Gives me a syntac error. ALso, How do i use the joins with other tables in get rows action?

 

any help is much appreciated.

 

Cheers,

 

I have the same question (0)
  • Verified answer
    lbendlin Profile Picture
    8,332 Super User 2025 Season 2 on at
    Re: Get rows from sql query and update sharepoint list.

    Create a view on your SQL server that has your query logic, and then use the "Get Rows"  action against the view. No need for extra filters.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 797 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
developerAJ Profile Picture

developerAJ 319

Last 30 days Overall leaderboard