Posts

Showing posts from July, 2021

Export And Import Data Entity for OData

Image
1.  Make sure that you opened Visual studio as administrator. 2. Also check that your module is referring to basic models like ApplicationSuite, Application Foundation, etc. 3. Create a new Dynamics 365 project. 4. Create a data entity by right-clicking on your project. Add new item -> Data model -> Data entity 5. Select the table you want for your entity in the Primary Datasource option 6. Select Entity Category either Document or Master. Click next, now it creates the entity along with the other required stuff. Build and sync project. Exposing as Json file: Below mentioned URL will be used for checking any exposed data entity.  But you need to concatenate the public collection name of your data entity at the end of  the URL https://usnconeboxax1aos.cloud.onebox.dynamics.com/data/ DataentityPublicCollectionName Note: the link may differ according to your company domain.  For verification, you may use this URL on IE or chrome and it wi...

Display inventory dimension control on a Form in D365

Image
If we want to add inventory dimensions we must need the join of our table with the inventDim table. For this, we need itemid field. if your table doesn't contain this field  First drag and drop the EDT (InventDimId) in your table. Add InventDim data source in your main form and join (Inner Join) it with  your   data source    I used InventTrans as an example table. you can use any table. Add a menu item button and a grid and add those fields that you want to show into the grid Add InventDimParmFixed Display menu item to your action pane menu .   Create a new group under your grid. Set its data source property to InventDim and Data group property to InventoryDimesions . Code [Form] public class RM_DisplayInventDim extends FormRun {     InventDimCtrl_Frm_EditDimensions inventDimFormSetup;     public void init()     {         super();         element.updateDesign(InventDimFormDesignU...

Batch jobs stuck on WAITING status in AX 2012

Image
Step1 . Generate incremental CIL Step2 . Check if any batch job is stuck on “ executing status ”, change its status to withhold or cancel.  Because it can be possible that all the new batch jobs are stuck on “ Waiting ” because any previous job is stuck on executing. Also, do the same for other “ waiting ” jobs Step3 . Now check the assigned batch group in your job and then check if that batch group has correct AOS server assigned and then check that if the check box named: ' Is batch server ' checked for that particular AOS server . Also, the time should be 12.00.00 to11.59.59 System administration  à Setup  à Server Configuration: either the AOS server assigned to the batch group is not marked as the batch server or else the batch group is not assigned to the batch job. System administration  à Setup  à Batch group Now run any batch job. It will not be stuck in waiting status.  

CHAIN OF COMMAND/COC ON A TABLE METHOD IN D365

Image
  When we want to change in the standard methods, and it cannot be easily achievable through the Extension or even through the event handler approaches then in that case we use the chain of command i.e., COC technique. New form: First, create a new form a dd a new DataSource to the form with the following properties, selecting CustTable because we want to manipulate its name and address methods. select simple list pattern for the form design and add different controls according to the pattern by right-clicking on design and selecting  new   and then add all these controls Now add different fields that you want to manipulate, we added three different fields: Customer Name, Account and Address in the grid with the following properties.   Strings Data Source Data Method Data Field AccountNum CustTable   AccountNum CustomerName CustTable name ...