function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
IT Support 240IT Support 240 

generating work orders from new cases automatically

When I create a case is there a way for that  case to auto create a work order?
InzamamulInzamamul (Salesforce Developers) 
Hello IT Support,

I would suggest you to please follow the below article with the help of which you can auto create a work order.

Here are the steps on how to do this:
Go to Setup > Flow.>Click New.>Select "Process" as the flow type.>Give the flow a name, such as "Create Work Order from Case>Select "Start the flow when a record is created or edited" as the start trigger>Select "Case" as the object.>Click Save.

Drag and drop the following actions onto the flow canvas:
Create Records: This action will create a new work order record.
Get Records: This action will retrieve the newly created work order record.
Assign Record: This action will assign the work order to a specific user or queue.

Configure the properties of each action:
Create Records:>Object: Work Order>Field Mapping:>Case Id: Case Id>Status: New>Priority: Medium>Subject: Case Subject>Description: Case Description

Get Records:
Object: Work Order
Id: {!Get_Records.Id}
Assign Record:
Object: Work Order
Assignee Field: OwnerId
Assigned To: [Enter the user or queue ID]
Click Save.
Now, whenever a new case is created, a flow will be triggered, and a new work order will be created and assigned to the specified user or queue.

Please mark this as a best answer if this helps.

Thank You!

Important Update - what you need to do
User-added image
As a reminder, on December 4, 2023 the Salesforce Discussion Forums will be removed from the Salesforce Developers website. These forums will shut down and all relevant discussions will migrate to the Trailblazer Community digital platform.

During the week starting November 20, you can view discussions, but not post new questions or responses. On December 4, you will no longer be able to access the discussion forums from the Salesforce Developers website.

Please take these steps before November 30, 2023, 11:59 p.m. PT to ensure your contributions follow you to the Trailblazer Community:
  1. If you’re not already a member of the Trailblazer Communitysign up for a Trailblazer account using the same login email address associated with your Developer Discussion Forums account. This is crucial.
  2. If you already have a Trailblazer account, and it’s using a different email address from your Developer Discussion Forums account, we recommend that you log in to the Trailblazer Community and connect your forums email address to your Trailblazer account.
Find more info & support
We know that moving platforms can be a hassle, so we created a special forums users group, the Migration Support Hub, in the Trailblazer Community where you can get training videos, information, and assistance.

We are here to help you through this transition!

The Forums Support Team
Zaman Ali 2Zaman Ali 2
We know that moving platforms can be a hassle (, so we created a special forums user group, the Migration Support Hub, in the Trailblazer Community ( where you can get training videos, information, and assistance.