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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Update Dataverse table...
Power Apps
Unanswered

Update Dataverse table if status is X

(0) ShareShare
ReportReport
Posted on by

Hey there,

 

We are using Microsoft Dynamics 365 and we are experiencing that users find it difficult to 'complete' their phonecalls.

 

Therefor I would like to do the following and create a scheduled flow that does the following:

- Get all the rows from table 'Phone Calls' and a filter on column 'StateCode' where the content equals status 0 ('Open').

- Update these rows to status 1 ('Completed')

 

For the first step I had the following in mind. I would use the function List Rows and filter with: StateCode eq '0'. 

But for the second step: I'm not sure on how to reach my goal there.

 

What would be handy?

 

Thanks!

I have the same question (0)
  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    Hi @Robbertoo 

     

    You could use the Update record action within an Apply to Each loop, to Update each Phone Call record and set the Status and Status Reason accordingly.

     

    However, I wouldn't build this to work on a scheduled basis with such open filters, as it could in potentially close records that should not be closed. Furthermore, the could be a delay (depending on your schedule interval) between the phone call actually being completed to when it is actually closed. I would suggest adding an additional filter when you identify the records for closure (eg. Scheduled Date is older than 1 week).

     

    Alternatively, you could introduce additional columns on the Phone Call table and form (if users find populating columns on the form easier and/or more prominent than the Close command bar buttons (if this is in the context of a Model Driven App)). You could then trigger your Cloud Flow/Workflow of this additional column value being set, rather than relying on a scheduled process. This approach which close each Phone Call as a a dedicated process whenever the uses chooses to close it.

  • MarioRing Profile Picture
    541 Super User 2024 Season 1 on at

    The idea behind Dynamics Activities records, like Phone Calls, is to plan something to do and then register in the system if something was done. An open Phone Call means that someone has to call somebody for some reason, this record is just a reminder to do that. Closed as completed means the call was made (and obviously an activity can be alternatively closed as canceled).

     

    From this point of view, your flow will close all the tasks of phone calls as done, which may not be true.

     

    Instead of creating this workflow, I suggest creating a view or dashboard, where your users can see all their open phone calls which are waiting to be made and closed. Each user should manually close their activities, fortunately, it is possible to do this using bulk editing.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard