Notifications
Announcements
Should be simple, it's been 2 weeks now with no resolution:
What I have done is:
On Product form in dataverse, there is a field with the display name of "Install time" but with the schema name "new_installtime". This field holds unique decimal values for all the products/items in the CRM. 1. This field is a simple number field that contains decimal values.
I created a new field on the "work order products" form in dataverse and called it "new_installtime" as both the display name and schema name. This field is a simple number field that contains decimal values.
I then created a rollup field on the dataverse form "Work Order" which holds work orders. These work orders can be any unique combination of products/items. The rollup field is a calculated field with the following paremeters:Source Entity: "Work Order"Related Entity: "Work Order Products(Work Order)"Filers: "If Work Order contians data"Aggregation: "SUM of new_installtime"
Then I went into Field Service and created a new process called "Set Install Time From Product to Work Order Product" with the following parameters:"Run this workflow in the background" is UncheckedEntity: "Work Order Product"Category: "Workflow"Scope: "Organization"
Start when: "Record is created" and "Record Field change(Product field)"
Then I added a step "Work Order Product">"Product">"Contains Data"
Then I added a step below that called "Update" and selected the field "Work Order Product"
Then in that window, I scrolled down to the "new_installtime" field and set it to "(Install Time(Product (Product)))
The rollup on the work order form still doesn't work.
Hi @DVOP ,
What parts aren't working? Is the real-time workflow process setting the new_installtime on the work order product correctly with a value? Is it just the roll-up that is not calculating the sum of the work order products install time?
I don't think the real-time workflow process is setting the value. The rollup field shows up on the work order form, but there's nothing there. And when I click 'recalculate" nothing happens either.
Please validate the real-time workflow values that are populating on the work order products. Like you said, if this isn't working then the rollup has nothing to roll up...
If the real-time workflow is not working then we can review the details here.
I think it might be a mapping problem?
I know, in general, what you are trying to do here. You are trying to figure out the total install time for the work order based on the products that are included as your work order products. The challenge is the Install Time is tied to the Product which is a lookup (i.e. reference) on the work order item.
Approach:
Can you include a copy of the real-time workflow for review. Note, please make sure you have the workflow running at "Organization" scope vs. "User" scope (common mistake as then this will only fire under the user that owns the workflow if at user level scope)
Hi dpoggemann, How do I include a copy of the realtime workflow for you to see? What I did was steps 4-8 in my original post.
And here is the rollup field in dataverse:
I did notice though that in the "Work Order Product" table, the "install time" has 2 columns for some reason and both are not populated with data, even though there should be a 1:N relationship between Products(Install times) and Work Order Product(Install time).
From what I see your workflow looks correctly structured and so does your rollup.
Have you tried creating a new work order product or modifying a work order product to see if the install time value is set? I see 3 different install time fields on your Work Order Product, can you review this as you should have 1 only.
Another thing you can do is set your workflow to run in the background and then you can look at the executions of the workflow to validate it is doing what you expect. Example article discussing: https://carldesouza.com/view-workflow-process-history-in-dynamics-365/
You can then change this back to being a real-time after validating it runs as you expect.
Hello,
I did that and was able to check the process sessions for the workflow, but it's empty and there are no jobs showing within it. So it's like it's not even running at all.
Couple things:
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268