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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

adding value to ENUM filed using Odata via MS Flow

(0) ShareShare
ReportReport
Posted on by 35

Hi All

i am trying to add/update periodic discount value to D365 F&O using MS flow. Flow failow faisl when it tries to add value to ENUM field in D365 FO entity.

ERROR: An error has occurred.  Exception has been thrown by the target of an invocation.  Requested value 'Deal Price' was not found.

basically this fails while i try to add value to MixandMatchDiscountType ENUM field. In my flow i am reading values from SQL using SQL connector and then using a loop and a D365 connector to create a record. 

currently i am passing a value to enum field as text which is coming from source SQL table.

i am looking for guidance here. is there any function we have to use in MS flow to populate value in ENUM field in D365 FO data entity ?

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi K.Riaz,

    Can you provide more details what discount code/value you refer to and where you see the error?

    Also, please have a look at Martin's blog for some hints on enums and Odata.

    See e.g. dev.goshoom.net/.../

    Best regards,

    Ludwig

  • André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    Hi K.Riaz,

    Try to use the technical enumeration option name or the enum integer value.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans