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 :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Mobile Application Offline mode - lock other booking status when one booking is in progress

(0) ShareShare
ReportReport
Posted on by 125

Hello,

We were challenged by the customer, about preventing, in offline mode, the capacity for the technician, to change multiple bookings status into "In progress" at the same time.

One idea was, when a technician changes the status to "In progress" in one booking, the other ones, that are assigned to him, should lock the field booking status.

Could you help us figure out the best approach for this, in offline mode?

Much appreciated.

I have the same question (0)
  • Suggested answer
    John Holmes Profile Picture
    260 on at
    RE: Mobile Application Offline mode - lock other booking status when one booking is in progress

    I had the same issue - this is what I did.

    You need to create a Variable, Count of Bookings where the status is any of the open ones, in my instance that was Travelling, and In progress then check if the count is zero, if it is then show the Status field and the user can update that booking if greater than 0 then hide the status field therefore not allowing the user to update the status of any other booking.

    Screenshot-2020_2D00_01_2D00_30-at-08.26.02.png

  • evct Profile Picture
    125 on at
    RE: Mobile Application Offline mode - lock other booking status when one booking is in progress

    Hello John,

    Great suggestion. I did that and it work in online mode, but not in offline.

    In offline the onload rule seems to not be taken into consideration.

    Does it work in offline mode in your side?

    Thanks.

  • John Holmes Profile Picture
    260 on at
    RE: Mobile Application Offline mode - lock other booking status when one booking is in progress

    yes - we only use offline mode.  Are there other rules On Load?  You need that one at the top as they run in order

  • evct Profile Picture
    125 on at
    RE: Mobile Application Offline mode - lock other booking status when one booking is in progress

    there is no other rules:

    3056.Screenshot_5F00_2.jpg

    How does it decrement the countbookings back to 0? I am not aware how the loadaggregate works.

    Thanks.

  • Thomas David Dayman Profile Picture
    11,323 on at
    RE: Mobile Application Offline mode - lock other booking status when one booking is in progress

    Loadaggregate is a function which allows you to construct a query and retrieve back a count of how many records it returned

    Maybe it doesnt work offline because of your Bookable Resource Booking Sync filter? Can you check what bookings your a returning when you are in offline?

  • Al Iggs Profile Picture
    on at
    RE: Mobile Application Offline mode - lock other booking status when one booking is in progress

    I just tried it in online and offline mode and get back the same correct result.

    pastedimage1580389626282v1.png

    The first fetch:

    pastedimage1580389683191v2.png

    And this is the aggregate fetch:

    pastedimage1580389766812v3.png

    If I update a booking status in offline mode and save, the value is correctly updated.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 60 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 36 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans