Check out the latest Field Service updates!Learn about the key capabilities and features of Dynamics 365 Field Service and experience some of the new features.
Download overview guide | Watch Field Service video
2020 release wave 1Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
Currently I added two fields as control filters in schedule board.
The fields are also available in work order.
Is it possible to auto populate the the corresponding field values to the schedule board while create booking from work order.
As I know, there's no OOB function to transfer parameter value between different forms.
I would suggest one concept of localStorage property. (MS doesn't recommend DOM operation in D365.) You could insert following
SetLocalStorage() function to Work Order Form OnSave Event to store these 2 fields value.
RetrieveStorageValue() function into Booking Onload Event to retrieve 2 fields value from LocalStorage and release storage then.
var formContext = executionContext.getFormContext();
var project = formContext.getControl("new_project").getAttribute().getValue().toString();
var property = formContext.getControl("new_property").getAttribute().getValue().toString();
var formContext = executionContext.getFormContext();
var project = localStorage.getItem("Project");
var property = localStorage.getItem("Property");
Referred Doc: https://passion4dynamics.com/tag/use-localstorage-to-map-values-from-one-form-to-another-form-in-crm/
Hope above would help.
Not sure if I understand you correctly. Do you want to pre-populate the schedule board filters with values from the work order? If that's the case, open the advanced settings of your board, click on Open Default Settings, scroll down to Schedule Types>Work Order and modify the Schedule Assistant Retrieve Constraints Query.
Your understanding was right!
We want to want to pre-populate the schedule board filters with values from the work order.
we can add the required fields using Filter layout and Resource cell template but it will not
pre-populating from work order while creating bookings from work order.
we are try to implement it by modifying the Schedule Assistant Retrieve Constraints Query but it won't work
We are looking for the same process that while create booking from resource requirement entity the
resource type will pre-populate to the corresponding schedule board.
can you advice the same with an example, It will more helpful if you provide any documentation links for reference
Thanks and Regards
Just as a clarification: This has nothing to do with bookings. It's all about taking details from the resource requirement and use these to populate the filter in the schedule board. When you then click "Book", the booking gets generated, but no information from the filter is taken to the booking.
If the above is what you're trying to do, yo should modify the filter layout for the Schedule Assistant (not the specific one of your board) and then the Retrieve Constraints Query.
I don't have sample code, but if you share screenshots of what you did, the community might provide some suggestions.
I think my explanation was not proper enough.
We need to pre-populate certain values from work order to the schedule assistant filter
Please find the screenshots
When I click on the book button from work order ,the values(project and property) should pre-populate to the schedule assistant filters.
Can you please advise how can achieve this using Retrieve Constraints Query
Please find the screen shots below were the resource type value(contact) from the resource requirement is
pre-populated to schedule assistant filter(Resource Types)
Like this When I click on the book button from work order ,the values(project and property) should pre-populate to the schedule assistant filters(Project, Property).
Thank you for your time and consideration.
Thanks and Regards.
You can find documentation here: https://docs.microsoft.com/en-us/dynamics365/common-scheduler/developer/understanding-and-customizing-resource-matching-in-urs
What I did as a simple example: Open the board's advanced settings>Open Default Settings. Navigate to your desired schedule type, Schedule Assistant Filter Layout. Pick the default template and save as new. I didn't have Property, so I added the Project as an example:
<control type="combo" source="entity" key="Project" inactive-state="1" label-id="Project" entity="msdyn_project" multi="true" />
This will give you the new filter:
Now save a copy of the default Schedule Assistant Retrieve Constraints Query and add this line:
<Project ufx:select="lookup-to-list(Requirement/msdyn_projectid)" />
This will prep-populate the project from the resource requirement:
For your case, replace Project with your desired field and entities.
Thank you for your valuable response.
Fields can inherits from work order to resource requirements When a requirement is created ,Is it possible with custom fields.
Business Applications communities