web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Programmatically generate a Work Order from an Opportunity

(1) ShareShare
ReportReport
Posted on by 222

Hi everyone

I would like to automate the function that sits behind the "Convert to Work Order" button on an opportunity using Power Automate or a classic workflow.

It is available as Unbound Action in Power Automate or Perform Action in the classic workflow designer. However, it requires an input parameter of type "string" - not sure what that would be. I've tried populating it with the GUID of the opportunity as well as the Dynamic URL value - no luck though.

Has anyone tried this?

Thanks

Rean

I have the same question (0)
  • Verified answer
    Gabriel Dias Junckes Profile Picture
    2,428 on at
    RE: Programmatically generate a Work Order from an Opportunity

    Hi.

    The button calls this action: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/msdyn_fieldservicesystemaction?view=dataverse-latest

    /api/data/v9.0/msdyn_FieldServiceSystemAction

    pastedimage1649569452528v1.png

    It is for internal use only so I don't recommend modifying it. However, you could add a Power Automatate on the Work Order creation when the opportunity field contains data.

  • reanm Profile Picture
    222 on at
    RE: Programmatically generate a Work Order from an Opportunity

    Thanks Gabriel - this worked perfectly!!!

    pastedimage1649630582685v1.png

    Thanks again for your help.

    Kind regards

    Rean

  • prof711 Profile Picture
    115 on at
    RE: Programmatically generate a Work Order from an Opportunity

    Gabriel Dias Junckes how did you see what action had been called and the required values for the input parameters? I'm sure there are many situations where it's good to see this info! 

  • Gabriel Dias Junckes Profile Picture
    2,428 on at
    RE: Programmatically generate a Work Order from an Opportunity

    prof711  I open the Developer Tool on the web browser before pressing the button to convert to work order so I navigated to the network to see which requests were made.

    You can see the parameters there too.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 70

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 25 Super User 2025 Season 2

#3
mk1329 Profile Picture

mk1329 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans