Posts

Field Fixed and Related Field Fixed relations in D365FO

Image
In D365FO, there are two relation types called Field Fixed and Related Field Fixed that many developers find confusing. It isn't always clear when to use each one or what is the difference between them. As a result, developers might end up writing X++ code to override the lookup and achieve certain behavior, even though these relation types can handle many of these scenarios without any custom code. So in this article, I'll show you the difference between Field Fixed and Related Field Fixed using two simple examples. Field Fixed Let's assume we want to create a table that stores the party type (Example: Customer or Vendor) and the corresponding account number PartyType          PartyReference ---------------------------------------- Customer                 C001 Vendor                     V001   As you can see, the PartyReference field can store either a c...

How to apply AOT query ranges in D365FO?

Image
In this article, I'm going to show you how to apply different types of ranges to AOT queries. We'll go through simple and complex ranges. Let's first create a simple query that has "CustTable" inner joined with "CustGroup" If we want the query to return values where the enum "Blocked" field value is Never, then it's either we type the value Never directly or type CustVendorBlocked::Never ** It's not recommended to filter on the enum integer value If we want the query to return values where AccountNum value is "US-001",  we can add the string value US-001 directly Now what if you want to filter on AccountNum "US-001"  OR  "US-002", you can do it in two ways: 

How to do CRUD operations in D365FO using Power Automate?

Image
In this article, I will be showing you how to use Power Automate in order to do CRUD (Create, Read, Update, Delete) operations inside D365FO. Login to https://make.powerautomate.com Click on "Create", then click on "Instant cloud flow" Name the flow, choose how to trigger the flow, then click Create Click on the "+" sign, then click "Add an action" Look for "fin & ops" connector and click "See more" to see all actions for it Create Record Choose "Create record" Choose "Authentication" method and fill other field values, then click "Create new" Here, I chose Authentication method as "Service principle" Choose your connection name You need to fill the Client Id,  Client Secret and Tenant Id from the app registration If you don't have an azure app registration created, then you will need to create a new one. You can check my detailed article on how to create one  How to create App R...