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 :
Dynamics 365 Community / Forums / Finance forum / Error insert on Servic...
Finance forum

Error insert on ServiceOrderHeaders trougth MS Flows

(0) ShareShare
ReportReport
Posted on by

hi, we are devopping a integration between CRM and D365FO for the service orders using MS flows but in the insertion of record appear the next error:

pastedimage1565015666809v1.png

"message": "An error has occurred. insert not allowed for field 'ServiceOrderStageId' but when is not mapping the field we get:
"message": "An error has occurred. Write validation failed for table row of type 'SMAServiceOrderHeaderEntity'. Infolog: Warning: Se debe rellenar el campo 'Etapa de servicio'
thanks for any help
I have the same question (0)
  • Verified answer
    Pete Alberts Profile Picture
    3,542 on at
    RE: Error insert on ServiceOrderHeaders trougth MS Flows

    SoI don't know the concepts behind the table - I'll leave it to you whether it should be written to. But then you're going to have a tough time creating a data entity for the table. Some of the fields are set as non-editable on the table itself. To bypass that you'll need to utilize computed columns and override some methods. Have a look at DocuRefEntity for reference.

  • Community Member Profile Picture
    on at
    RE: Error insert on ServiceOrderHeaders trougth MS Flows

    Thanks Pete, We will seek to do the development you mention

  • Pete Alberts Profile Picture
    3,542 on at
    RE: Error insert on ServiceOrderHeaders trougth MS Flows

    No it is not...

    I checked whether the table is exposed by some other writable Data Entity - which is not the case. Thus if you need to write to that table, you'll have to design and develop a custom Data Entity.

  • Community Member Profile Picture
    on at
    RE: Error insert on ServiceOrderHeaders trougth MS Flows

    Hi Pete, thanks for your help, is posible convert it to editable?

  • Verified answer
    Pete Alberts Profile Picture
    3,542 on at
    RE: Error insert on ServiceOrderHeaders trougth MS Flows

    That Data Entity is read only - you won't be able to update or insert any record with it.

    Screenshot-2019_2D00_08_2D00_05-at-16.45.25.png

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 > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans