Category Archives: Customization

Standard Setup Tasks Field Service Mobile

Always, when I setup a new Field Service Mobile, there are some steps I go through to ensure, everything is initially working in a comfortable manner.

Surely some of the steps aren’t required but have proven to be my best practice for new instances.

  1. create Resources and ensure that they are enabled for FS Mobile
  2. install Woodford
  3. install the latest Project Template from here and make a derivate out of it in which you perform all following mobile customizations
  4. in Woodford, go to plugins and activate the most important Delete plugins: Work Order, WO Product, WO Service, WO Service Task, …
  5. in your Project Template derivate, go to Configuration and set Save Password to true

6. edit the Sync Filters to also include data from the past (1-2 weeks) for: Work Order, WO Product, WO Service Task, WO Service, WO Incident, Resource Booking.

7. switch the default Booking View Layout from Calendar to List. To do so, go to Home=>Bookable Resource Bookings=>Properties=>Properties=>Initial Control=>switch from Calendar to List

8. activate your 30-days Trial of Woodford here: https://docs.microsoft.com/en-us/dynamics365/field-service/activate-fs-mobile-app-license

Share it on

Embed Forms Pro Survey into Field Service Mobile

Here is a nice article by Thomas Dayman that gives a short overview of how to embed a Survey Questionnaire created with the new Microsoft Forms Pro into the Field Service Mobile app.
The approach is to create an Offline HTML file where Thomas provides a sample code snippet for, and embed that via iFrame into a Form in Woodford.

Compared to Resco’s new Inspections the Forms Pro integration doesn’t support offline scenarios. Resco Inspections comes with additional licence cost whereas for Forms Pro it is still not clear how the licencing will look like.

Microsoft Forms Pro embedded in Field Service Mobile
Share it on

Mobile: Only load Customer Assets for which you have Work Orders

If you have too many Customer Assets in your Dynamics 365 database and you don’t want to have all of them offline available in your Field Service Mobile client you can set up a Sync Filter to do that.

Open Woodford=>Customer Asset and click on Sync Filter.
Than set it up like this:

Woodford Sync Filter Customer Assets

After saving the filter don’t forget to set the Incremental Linked SyncFilter (on top of the field list) to Enable:

If you want to go deeper, you can read here what this flag does:
https://www.resco.net/woodford-user-guide/#__RefHeading__5819_1627906509

Share it on

Bookable Resource – Form Customization

If you try to copy the OOB Bookable Resource form you might experience that some client side scripting doesn’t seem to be applied to your copied form anymore. Even when you haven’t done ANY other customizations except of copying it.

In this case the Facility/Equipment lookup isn’t hidden anymore when choosing the Resource Type Contact. On the uncustomized form this would have been hidden.

Strange as this usually doesn’t happen, right? If you have JS references you should have copied these references as well to your new form, right?

So when you dig deeper you’re finding that there now are business rules activated for the Bookable Resource form. I think this is rather new that MS delivers Business Rules out of the box. Fine for non-coders!!

The problem seems to be that the Business Rules here are set to scope “Information” which is only the one original OOB form, so your copy of it doesn’t inherit these Business Rules.

Another fascinating thing is that when you go into the Default Solution via old Solution explorer, you’ll see three business rules (above). When using Level Up (Browser Plugin), you’ll find 6 Business Rules taking effect here:

So you would need to go to the new maker experience to find / customize all 6 of them:

Next obstacle is: you can’t just change the scope of these Business Rules (I wouldn’t even know if this would be supported or not) as at least one of them has the Managed Property “Customizable” set to Flase:

Note: trying to customize from Business Rule “Show Enabled for Field Service Mobile field if Resource Type is User]” from within the new maker experience caused for me a state of no return, at least from make.powerapps.com: the BR got Deactivated and I could neither change it nor reactivate it anymore [improve@MS]. A resolution has luckily been to reactivate it from the old solution explorer (upper screenshot).

So what are you going to do to get the same behavior as on your OOB form also for your custom Resource form?

You need to copy the Business Rules delivered by Microsoft, than edit the Scope to your custom Form and activate the copies.
In the end you would have it like this:

Share it on

Requirement Groups in Work Orders

In a former article I have explained how Requirement Groups and Requirement Group Templates work.

Now I’m going to show you how these can be leveraged when using Work Orders.

Configure the Incident Type

  1. create a Requirement Group Template as explained in above mentioned article
  2. create a new Incident Type: Field Service=>Settings=>Incident Types=>”+ New”
  3. Give the new Incident Type a name (my recommendation: provide a hint in the name that helps you later on to remember that this Incident Type is based on a Requirement Group):

4. On the Incident Type form, go to Related=>Requirement Groups
5. create a new Incident Type Requirement Group:

6. associate the formerly created Requirement Group Template to it via the lookup field
7. provide a name to the record and save it.

So you should finally get something like this:

Test it with a Work Order

Now its up to you to test the whole setup.
For doing this you just need to create a new Work Order and fill in our new Incident Type into the field Primary Incident Type on the Work Order form:

Note: With a standard Field Service setup you necessarily need to provide the group based Incident Type in the field Primary Incident Type BEFORE you save the Work Order the first time. Otherwise you’ll get an error saying “You can’t add an incident that is related to a requirement group template to a work order if there is already a requirement related to this work order.”

Than you can check if your Requirements have correctly been associated with the Work Order. For doing so you need to go to: Related=>Requirements=> change the View to “Unsubmitted“:

Customized Work Order form and Requirements view

Customization recommendation (especially if you more often have group based Requirements): create your own Resource Requirement view for the Work Order form.

And now the big moment comes: hit the Book button on top of the Work Order form:

You should now get search results according to the available Resources, the distance to the Service Location and the other parameters like Work Location, Organizational Unit, Resource Type and so forth:

Note: if you are going to use the same or a similar combination of Resources more often, it makes sense to create Requirement Group Templates whereas if you need a certain combination of Resources/Skills only one time it would theoretically be enough to create a Requirement Group without a Template. However it seems like if go down that road, you will not be able to associate your Requirement Group to a Work Order anymore later on. At least I couldn’t find a way to do that. That means that if you want your Users to be able to click the Book button on a Work Order and have the fancy algorithm execute its sophisticated multi-resource query, you will always need to create an Incident Type for it first and associate a Requirement Group Template to it.

What you can do is going back from a created Work Order that has a Requirement Group associated via =>Resource Requirement=>Requirement Group (or simply from the Field Service menu: Requirement Groups) and there editing the instance of the Requirement Group that is responsible for your Work Order.
This method allows you to create a kind of a standard Incident Type Requirement Group and Template which you always use for creating a new Work Order when you want to leverage the Group functionality.

Cascading & sync of attributes within the Requirement Group

a) Cascading attribute changes from Work Order to Requirements

(as of Sept. 2019)

gets initially populated and auto-updated for the Resource Requirement with flag “Is Primary“ only:

  • Time From Promised/Time To Promised
  • Time Window Start/Time Window End
  • Service Territory (remove)

gets initially populated and auto-updated for all associated Resource Requirements:

  • Duration
  • Date Window Start/Date Window Start End (into fields From Date / To Date )
  • Latitude/Longitude
  • Work Location
  • Service Territory (Create, Change)

b) Attributes kept in sync between Resource Requirements

Duration, From/To Date, <long/Lat, Work Location are always kept in sync within the Requirement Group, even when changed on a non-primary Requirement.

Service Territory however is only kept in sync, when it was changed from the Work Order AND the change was not a removal of the field content. So you can open the non-primary Requirements and assign different Territories to each.

As an example you might end up having Requirements like this in the end:

– Time Promised From/To and Time Window Start/End is only populated to the primary Requirement
– Territory has been removed from the Work Order after initial creation: this removal is cascading only to the primary Requirement (whereas an UPDATE/CREATE of the Territory would have been cascaded to all Requirements)

When asking yourself why is there a difference of cascading between Time Promised/Time Window vs. Date Window you can come to the assumption that it has to do with the Requirement Group functionality. If we check the UI (screen below) we can easily see that there are only the From Date / To Date fields (which are the counterparts to Date Window From /To from the Work Order). So Microsoft only takes care for a synchronization of these fields within a Requirement Group but not for the other Date/Time fields.

I was asking myself how can you have differing values in the Time Promised fields for Requirements of the same Requirement Group? As soon as you are scheduling or re-scheduling them, all of the Bookings based on these Requirements get moved simultaneously.
However it could make sense if you have a scenario where a team gets a Booking for a longer period of time (i.e. traveling on site together) but the actual “ToDo” of a Resource would only be for a shorter time frame and you want to keep this information somewhere.
If you are going to use it this way you should surely not create a hard booking restriction – for example with a Real Time Workflow – which forces you to not book outside of time promised from/to.

Also note that a Time From/To Promised on one of the non-primary Requirements will be ignored completely by the Schedule Assistant. However a Time From/To Promised on the Primary Requirement is a hard selection criteria for the Schedule Assistant, even if it doesn’t show these fields in the Filter panel, when scheduling a Requirement Group [improve@MS].

Find in my next article variations of the Requirement Group setup and further detailed hints related to it.

Share it on

Filter settings when using Requirement Groups

Let’s assume you have this setup of a Requirement Group Template:

Because in the Schedule Assistant default value for Sort result by is always Fewest Resources First, you should maybe keep time between Search Start and Search End rather small.

Because only than you are able to see all possible combinations on one screen.

See here that even when Results per Interval was set to 7, in your result list you first get 4 results for an intervall and than only further down in the list you will get the remaining 3 results for the same interval.

This could especially be helpful if you prefer to send 3 Juniors instead of 2 Seniors to a job.

Share it on

Requirement Group

After we have taken a look into Resource Crews let’s now explore what Dynamics 365 Customer Engagement can offer with Requirement Groups.

  1. create three Resources, each with differing skills:
    Go to Field Service=>Resources=>”+ New” and create
    a) One User with Skills: Flow, Hololens Know How.
    b) One Contact with Skill: Data Integration
    c) One Equipment with Skill: Hydraulic Lift

2. create a Requirement Group Template. Go to Field Service=>Resources=>Requirement Group Templates=>”+ New”
a) provide a Name, save
b) click into the first row from the subgrid and click “+ Requirement
c) now add three requirements for getting back proposals for a team of three people and add corresponding skills
d) at the Truck Resource click on Open Form to determine which Resource Type (Equipment in this case) you are expecting

Difference between Requirement Group and Requirement Group Template

A bit confusing is, that as soon as you open a Requirement Group Template form, the menu on the left jumps back as if you would have opened a Requirement Group instead of a Requirement Group Template. [improve@MS]
Reason: technically Requirement Group and Requirement Group Template are the same entity msdyn_requirementgroup where only the records are differentiated by a flag called “Is Template”.

The title of the new-form “New Template: …” gives you the indicator that you’re creating a new template. But if you’re going to edit an existing Requirement Group Template you feel like editing a Requirement Group instead. I would therefore recommend to make the flag “Is Template” visible but read-only on the form.

If you pay close attention you recognize another difference: the lookup field Requirement Group Template is only visible on the Requirement Group form:

The field Requirement Group Template is read only for saved records.

That brings us to the interoperability of the two:
if you create a new Requirement Group the above mentioned field gets unlocked so you can choose a Requirement Group Template to start from.

Book a Requirement Group

If done with editing the requirements you can click the Book button directly from the Requirement Group ribbon:

This will open the Schedule Assistant with a list of appropriate Resource combinations. In our example the three Resources we have configured in step 1:

On the result list you than can

  • open each result row’s group to see its members
  • see which of the Requirements are going to be fulfilled by which of the found resources (last column)
  • adjust filter criteria and repeat search execution
  • book one of the groups by clicking on it => Book & Exit on the right flyout

If you’re not getting any results you should

  • probably need to adjust your search criteria
  • check if you have appropriate Resources in the system at all
  • check whether your Requirements do have a Service Territory associated but your Resources haven’t

Requirement Group in Schedule Board

If you now open the Schedule Board you could find something like this (too many Resources to have an easy overview):

Hovering over the booking panel (screenshot above) tells you that you have a Grouped Booking. So maybe you want to do a right click at the booking and choose Split View:

Shows you all bookings from this group (only those Resources which are on the same page of results, so you might want to increase the number of Resources per Page in Schedule Board tab settings and/or adjust your Resource filter to see all group members).

If you now drag and drop one of the bookings to a different starting time, all other bookings of this group will be shifted automatically too. Cool! That is what our customer wants!
However compared to the same procedure with a Resource Crew you don’t see the shifting immediately happening on the board, instead you need to hit the refresh-button at the top of the Schedule Board tab once to see your bookings being shifted [improve@MS].

In another article I’m going to dig deeper into the combination of Requirement Groups with Work Orders.

Share it on

Bookable Resource

In Dynamics 365 Field Service you are able to create these types of Resources:

  • User
  • Contact
  • Account
  • Equipment
  • Crew
  • Facility
  • Pool

Resource Type: Equipment

  • Facility Equipment lookup appears and becomes mandatory after this Resource Type has been chosen.
  • Organizational Unit lookup becomes read only after this Resource Type has been chosen . Gets pulled from ‘Facility/Equipment’.’Organizational Unit’ or, if this is empty, than from ‘Project Parameters’.’Default Organizational Unit’.
  • Enabled for Field Service Mobile two option set disappears
  • in previous versions it was called Company Asset
  • makes sense to be used in a Resource Crew
  • for example: Truck, Excavator, Beamer, Hololens
  • Start Location & End Location cannot be set to Resource Address

Resource Type: Crew

Also see here for further details on how to set up a Crew.

Customizations

After I have created a copy of an existing form I faced issues that some of the scripting provided by Microsoft didn’t work anymore. As long as I don’t get further insights into this I would recommend to be careful when taking this road. Better maybe to customize the existing form instead of creating a copy of it for customizations. This, by the way, is also a way that has proved to be more stable when it comes to upgrading your org with latest MS solution versions. We faced lots of scripting errors on forms that we previously have copied. It turned out that MS replaced the JS libraries for the original forms but not for your form copies during the last larger upgrade cycle.

Share it on

Facility/Equipment

Technical entity name: equipment
Microsoft reference here.

Originally coming from Service module.

  • Reachable in menu via Settings=> Business Management.

If you’re opening the form from Unified Interface you’ll see the lookup field Organizational Unit on the form.

For Organisational Unit there is no helpful field description [improve@MS].

But if you’re opening it from the former UI you’ll get another lookup field Site instead:

For Site there is a field description: “Site where the facility/equipment is located.”

So is Organizational Unit the “newer” replacement for Site (at least when it comes to Field Service?

If you are creating a Bookable Resource with Resource Type Equipment than the Organizational Unit gets automatically populated from Facility/Equipment.’Organizational Unit’ into ‘Bookable Resource’.’Organizational Unit’.

Work Hours

There is a Work Hours ribbon button in Unified Interface:

Share it on