Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 73760 articles
Browse latest View live

Pre and Post event handlers not getting triggered in Ops while doing an integration from Dynamics 365 for Sales to CDS (Common Data Services) to Dynamics 365 for Finance and Operations

$
0
0

Greetings!

 I'm helping a customer do an integration between Sales > CDS > Ops. We are dealing with custom data entities here. Now, the integration works well and whenever I create a record in Sales, it will synchronize with CDS and Ops. All good.

The problem comes, when in Ops, i have some additional logic written in pre and post event handlers and the code written in those event handlers doesn't trigger. Is this a limitation or a bug with CDS that it doesn't understand or respects the event handlers in Ops? Has anyone faced thiss issue? I though this should have been taken care of as part of the out of the box integration.

Also, I have delved into the Propsect to Cash templates, supplied by Microsoft and have found that in Ops in AOT, I can see CDS related specific data entities for e.g. say smmContactPerson and also there is a Test Class for each of the entity used in Prospect to Cash. However, I'm not able to see the code for the class in VS (AOT). Do we have to do anything special when we are writing custom entities for the intergration between Sales > CDS > Ops

Please note when I use Flow, the event handlers work perfectly and I can also debug through the whole code. Even, with Excel add-in, there's no issues with the event handlers in ops. It's just with CDS they don't get triggered.

Also, lastly , i want to know is there a release date for the bi-directional integration between Sales and Ops via CDS?

Cheers,

Dilip


AX 2012 R3 SQL User CAL for AX User

$
0
0

Could anyone advise whether SQL User CAL is still required for each AX user when SQL is licensed based on Processor Core? Thanks. 

Write Data in Text File

$
0
0

Hi Sir,

Good day.  I have search how to write data to a text file and i have questions regarding this. where would i put the static server void WriteTextFile(Args _args) ? is it inside the datasource method? of control method?

static server void WriteTextFile(Args _args)
{
TextIo file;
FileName filename = @"c:\temp\cars.txt";
CarTable carTable;
container con;
FileIoPermission permission;
#File
;
try
{
permission = new FileIoPermission(filename, #io_write);
permission.assert();
file = new TextIo(filename, #io_write);
if (!file)
throw Exception::Error;
file.outRecordDelimiter(#delimiterCRLF);
file.outFieldDelimiter(";");
while select carTable
{
con = connull();
con = conins(con, 1, carTable.CarId);
con = conins(con, 2, carTable.CarBrand);
con = conins(con, 3, carTable.Mileage);
con = conins(con, 4, carTable.Model);
con = conins(con, 5, carTable.ModelYear);
file.writeExp(con);
}
}
catch(Exception::Error)
{
error("You do not have access to write the file to the selected folder");
}
CodeAccessPermission::revertAssert(); 
 }

Best approach to insert data into AX table from SQL table

$
0
0

Hi,

 what should be the best approach to insert data into AX table from SQL table( not Ax TABLE, it's outside application table) ?

 I would like to have your suggestions on this.

AX 2012 not responding while inserting a record in HcmWorker table

$
0
0

Dear All,

While inserting a record in Hcmworker table (using both coding and also using table browser), AX 2012 stops responding. I compiled, synchronized the table and then tried (Also, I did a DB sync); but no luck!!! I tried inserting in other tables and those worked!!! Please share your ideas to sort out this issue.

Thanks in advance!!!

Why can't I make an instance of an image in my custom service class?

$
0
0
Hi everybody, I am using an custom service to post some images in base64 to AX, the thing is i am getting stuck the moment I want to create an image.
Removing everything else I know this is the problem. Here is my method:

[SysEntryPointAttribute] public str postimg(str _encodedImage) { Image img = new Image(); return "ok"; }
When I call my method my service returns this:

"Message": "The creator of this fault did not specify a Reason."

But I can do create binData without problems.
BinData binData = new BinData();
Also, my code works perfectly on a Job, I would really appreciate your help since I am really new at this.



D365 - Data entity report

$
0
0

Hi All,

Greetings of the Day !

In D365 we have Data entity report, just wanted to know which all AX classes is being called when we generate this report, here I have attached the snap of the same
Kindly suggest how do we proceed .

Thanks

Error Open On-Hand Inventory - Inventory Management

$
0
0

Dear All,

anyone know any class/server method I should add for this case below ?

because when I opn on hand inventory at Inventory Management module, infolog showed message 'You are not authorized to access table ‘Criteria’ (TmpSysQuery). Contact your system administrator'

Thank you


Fetch/Use Data from WebRequest

$
0
0

Good Day Everyone,

Just want to ask if someone knows how to use the data retrieved from WebRequest ?

Disable Modules Selection Option from File Menu

$
0
0

Hi All,

There is a requirement based on which we are trying to disable a module through x++ code by modifying startupPost method of Info class, then to disable addition through Navigation Pane Options, we've written code on that method too, but the problem lies in the File Menu from where User can still add Modules, how can this option be disabled.

Regards,

Fetch / Use the Data From WebRequest (XML)

$
0
0

Good Day Everyone,

Just want to ask if someone knows how to use the data retrieved from WebRequest ?

AX URL is taking lot of time to load the page

$
0
0

Hi Techies,

I am using AX on the local VM (D365), It takes longer time to load the page whenever i navigate to the URL.

Whereas it was running well few days before. What things should I check here to get rid of this.

Any response is appreciated!

Thanks!

production input and output report reg

$
0
0

Dear All,

I have one doubt in production input and output report .

I generated report for particular item, there showing raw material consumption and produced qty.

in output level it showing output qty(fin),output  amount(fin),output qty(phy),output amount(phy)

what is the difference b/w output amount(fin) & output amount (phy)

.

Thanks

Ashok

Table inheritance process

$
0
0

Table: TableA

First set property Table Inheritance = YES

Then create a Int64 type field : InstanceRelationType setThen set property InstanceRelationType = InstanceRelationType

Then added new fields : StudentID, Name

TableA properties:

TableA

Then create records

Here InstanceRelationType hold the TableID of TableA = 103696

Table: TableB

Then set properties:

Then add new fields in Table B

It will automatically create relation with TableA with RecID.

Then create a new record in TableB

Then I browse Table A

It’s showing last 2 records from Table B which I am creating in Table B.

103697 is table id of Table B.

Is't correct ?

Please give me more shed on this.

Thanks!

Arpan

Data entity Reference

$
0
0

Hi,
   what is the connection between dataentity and form, how data entity comes in form when i click excel addin.

how data entity refer form ,what is that property need to connect with form.


Role/Privilege to restrict access to create General Journals in General Ledger

$
0
0

Is there a Role/Privilege to restrict a users ability to create General Journals?

Data Migration Framework AX 2012 R2

$
0
0

Dears,

I was trying to import data using .CSv file in a general journal and i want Ax 2012 to accept the exchange rate i set on the csv file to be imported.However,Ax is not automatically accepting the exchange rate i give on csv file. instead,it uses the default exchange rate i gave manually on my previous transactions in order to calculate the EUR amount. I use DIFX in order to import the transaction.please help.

Template i used to import the data

JournalName,JournalNum,LineNum,CurrencyCode,TransDate,Voucher,Invoice,Txt,ExchRate,TaxCode,AccountType,LedgerDimension,DefaultDimension,AmountCurDebit,AmountCurCredit,OffsetAccountType,OffsetLedgerDimension

Can we identify quantity received damaged in the arrival overview screen?

$
0
0

Dear 

is there a way to report on damaged goods during the arrival overview process ?

i know protocol states that we need to receive only healthy goods, but is there a field where you can identify goods received damaged ?

PO with back date

$
0
0

Dear All,

I am entering PO for 2016 year. On PO header for Accounting date I am using back date from 2016 year. But system says that I am entering information for different fiscal year and asks to run Year end PO procedure. Is there way around to make system take back date?! 

Thank you in advance,

Giorgi P.

How to publish addin?

$
0
0

Hello, everyone!

I'd like to know, what is the preferable way to publish your custom addin?

Thank you!

Viewing all 73760 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>