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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Query to update the value in other table.

(0) ShareShare
ReportReport
Posted on by 10
I have create extension of Inventtrans and add new field as enum type with value of No Yes Name Updatestatus.
 
When I check the inventtransTable through table browser  this field is visible.
When I apply this query on this field my query did not work.
while select inventTrans
          where 
            //inventTrans.Updatestatus ==0
            InventTrans.DatePhysical!=Global::dateNull()
After commending this line my query work for me.


When I run the debugger in last step I have to update the inventtrans.updatestatus field with Yes value.
 

This field is not visible in debugging window.
 
Guys Need your help in this regard
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    239,093 Most Valuable Professional on at
    I assume that your statement " my query did not work" means that your query didn't return any data. But it doesn't mean that the query doesn't work, just that there are no records (in the current company) meeting all the conditions.
     
    Regarding debugger, you didn't describe your problem in detail, but I think you aren't looking at the Extensions node. You think the new field will be at the same level as standard fields, but it isn§t the case.
  • André Arnaud de Calavon Profile Picture
    304,045 Super User 2026 Season 1 on at
    Hi,
     
    In addition to the reply from Martin, I noticed that you tried to set a range on the UpdateStatus field with a hard-coded value '0'. Have you tried using UpdateStatus::No or UpdateStatus::Yes? Depending how the new enum is created, the value 0 might not be used or used for another value.
  • Community member Profile Picture
    10 on at
    Hello Andre 
     
    Thank you very much for your response.  I have also tried with NoYes value as well like below query but failed
     
    while select inventTrans
              where 
                //inventTrans.Updatestatus ==Updatestatus::No
                InventTrans.DatePhysical!=Global::dateNull()
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    As you are able to see new field in table browser means it is synchronised successfully. But it doesn't have any value. So can you give a select statement for this field in ssms and check what value it is returning. 
     
    Also check if the enum values exist for the new enum you created. I mean, check those enum values  in ssms.
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Also have you added enum values for your new custom field? Also here new enum is not required you can use NoYes enum for the table field.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 689

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 455 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 308 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans