Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Field Service forum / Setting workflow for w...
Field Service forum

Setting workflow for work order

(0) ShareShare
ReportReport
Posted on by

Hi all,

I want to set a background workflow to update the work order type field in the work order entity according to a field value in the related order entity.

Please advice.

Categories:
  • RE: Setting workflow for work order

    Hi,

    In this term, Work Order is Primary entity of the Order or Order is the primary entity of the Work Order?

    Because the standard workflow can only afford if Order and Work Order in your case is N:1.

    What I want to say is your Order and Work Order, 1 Order can have multiple Work Orders or 1 Work Order (as primary work order) can have Multiple Orders?

    The standard workflow only can afford if an entity record is triggered to run the workflow, then will update the related record (parent record), it doesn't support if parent record updated, then will update all of the child records.

    For example, Work Order A has Order A-1, Order A-2, and Order A-3

    You have types in Order:

    -Product

    -Service

    -Support

    Let's say Order A-1 type = Service, then the Work Order A type should be Service?

    Then create new Order A-2 type = Support, then will update the Work Order A type to Support,

    and you update the Order A-3 to Product, so final type of the Work Order A is Product?

    If that is your case, you can use Workflow, easier.

    Steps:

    1. Create a workflow on entity: Order.

    2. Trigger when field: Type (on Order) is updated (and onCreate, if you need this)

    3. Add action in workflow steps:

     -Update the Work Order type field, select the value from the related entity Order, then select Order type, set the Work Order type to the selected Order type field.

    *But, if the Type fields are Option Set, you need to create a global option Set, because if not, workflow will not support this.

    Hope it makes sense.

    BR,

    Judy

    ---------------------------------

    Appreciate to Mark as Answer if it helps.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans