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 :
Microsoft Dynamics CRM (Archived)

Copy fields from WorkOrder to Account

(0) ShareShare
ReportReport
Posted on by

After an WorkOrder is executed (post or canceled) I need to copy several custom fields filled in during the WorkOrder execution, to similar fields of ServuceAccount associated with the WorkOrder.

For example, when an WorkOrder is created I can copy info from Account to WorkOrder by using Customization, Account, 1:N Relashionships, Mappings.

So, how can I do the opposite?

Thank you,

Ionut

*This post is locked for comments

I have the same question (0)
  • Thomas David Dayman Profile Picture
    11,323 on at
    RE: Copy fields from WorkOrder to Account

    Mapping fields only tends to work if you are manually adding a new associated record. E.g. Like creating a new work order from a Customer record.

    This sounds like you will either need a Workflow or a plugin to populate those fields.

    Workflow - If Work Order is Closed or Cancelled, then Update Customer with related Work Order Fields

    Plugin - If Work Order is Closed or Cancelled, then create a QueryExpression to get the Customer and call a service.Update(Entity) to update those fields on the customer.

  • ram r Profile Picture
    on at
    RE: Copy fields from WorkOrder to Account

    As Thomas suggested, workflow will be a simple solution here

  • Ionut Profile Picture
    on at
    RE: Copy fields from WorkOrder to Account

    Thank you for your suggestions, I will give it a try today and let you know.

  • Ionut Profile Picture
    on at
    RE: Copy fields from WorkOrder to Account

    I've tried the Process Workflow. It run several times, with status = succeeded, but did nothing to my Account (Client) fields.

    This is my Workflow Config:

    RunSucceeded.PNG

    This is the running results:

    RunSucceeded.PNG

  • Verified answer
    Thomas David Dayman Profile Picture
    11,323 on at
    RE: Copy fields from WorkOrder to Account

    Hi Ionut,

    I made a workflow below which works. Use it as Reference, hopefully it helps.

    Make sure that the fields you updating are the same in terms of type and length as the original.

    3531.Screenshot_5F00_2.png

    3531.Screenshot_5F00_2.png

    6254.Screenshot_5F00_3.png

  • Suggested answer
    ram r Profile Picture
    on at
    RE: Copy fields from WorkOrder to Account

    If I am not wrong, from the images I could see that you have mapped the fields from service account again into service account. So it updates the same value into fields whenever the workflow is executed.

    In the update service account step, the values for the two fields should be from workorder and the same should solve the issue.

  • Ionut Profile Picture
    on at
    RE: Copy fields from WorkOrder to Account

    Thank Thomas Dayman for attaching the images and thank you Ramanathan Rajendran for putting it in words.

    Indeed I was copying the fields from Account to Account. 

    I changed and now works fine.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans