Quantcast
Channel: Martin Dráb's Activities
Viewing all 17532 articles
Browse latest View live

Data Source for SSRS

$
0
0

Hi,

I am very new for Dynamics 365. This might be very basic question for most of you. I have been reading about Dynamics 365 FO for last 2 days. As per my understanding looks like Dynamics 365 is available only in Cloud and transaction database is not accessible to anyone and for reporting purpose we need to entity store & power Bi embedded. Incase if i want to use SSRS for reporting what would be data source for SSRS reports?

Below are the understanding/assumptions/questions - Can you correct me if i am incorrect

1. 365FO transacational DB is not accessible for anyone?

2. We can only use Power BI embedded for reporting?

3. If i want to use SSRS what would be data souce for SSRS reports?

4. Can i have On premises data warehouse for 365FO

Thanks in advance. 

SA


Reading data using Logic apps

$
0
0

Hello!

The idea is to read a record from D365FO using  logic apps for a given custom entity. And, Action- "Get a record" doesnt work for me so am uisng "List items present in table".

I've a custom data entity with OData enabled property and am trying to use the same entity in a new Logic app. Am using Action- "List items present in table" and i get the expected raw output in logic app with all the information from data entity in a json format. So far so good!

The next step is to convert this JSON output into an xml. Here, am not sure what would be the best way to move forward. I used below approach-

1. Use "Compose" and tried function- xml(body('Header'))

Here the issue is, it seems the raw output of Action- "List items present in table" has some additonal elements like - 

"@odata.etag":, 
"ItemInternalId": 
and after these two elements, follows the fields from my custom data entity. Using Action-"Compose" logic app fails and below is the error msg received.

 Unable to process template language expressions in action 'Compose' inputs at line '1' and column '1629': 'The template language function 'xml' parameter is not valid. The provided value cannot be converted to XML: 'JSON root object has property '@odata.context' that will be converted to an attribute. A root object cannot have any attribute properties. Consider specifying a DeserializeRootElementName. Path 'outputs.body['@odata.context']'.'. Please see aka.ms/logicexpressions for usage details.'.

 

2. To handle the above issue, i thought to transform the raw output and used Parse json funciton. After parsing am not sure how i move forward to create a new xml file.

I would really appreciate if you could share your thoughts on the same. Look forward to hear from you.

BR,

Nik

Getting exception in excecuteQuery method of form NumberSequence datasource.

$
0
0

I have generated the custom number sequence, while displaying it on form level I'm getting exception in excecuteQuery() method of the form datasource.

 

How to do Customization on form to unhide fields

$
0
0

Hello Everyone

I am new to Ax,I am doing an customization on form.When I click on show more fields I want to show three more fields on form which are hiding(FieldC,FieldD,FieldF).Please tell me how to achieve this Functionality.

Publishing an AIF service to a Third party

$
0
0

Greetings,

I am new to AIF and I have published a service (<my company static IP>/MicrosoftDynamicsAXAif60/HTTPTest/xppservice.svc?wsdl) as long as I am inside the domain of my company I can access both the WSDL file and all operations inside it every thing is working fine but when I send this service to a third party(Android App) they get the wsdl file only but they can't access any of its operations, any help is greatly appreciated.

I'm testing my WSDL file using "Wizdler".

Thanks in advance. 

add new line of code in existing class method in D365 FO

$
0
0

Hi,

I want to add some code in standard class method but I am not able to do that and how to access parameter or variable from existing class to extension  class or pre post eventhandlers of class in D365 FO

Data Management Export format JSON

$
0
0

I'm trying to export a data management entity in JSON format and don't see an option to do this via the UI


Is it possible to do this?



I also don't see an option to create a new source data format of this type either

I know that we can use a URL like below which uses an OData REST filter this to produce JSON of an entity in this format but I understand that this isn't best practice for exporting large amounts of data on a regular basis, so was wondering what is

https://ABCD-EFGHIJK-01.sandbox.operations.dynamics.com/data/SalesOrderHeadersV2?$filter=SalesOrderNumber%20eq%20%27001000%27%20&cross-company=true

whta is price full lisance microsoft dynamic nv 2016 or 2013

$
0
0

whta is price full lisance microsoft dynamic nv 2016 or 2013


Error on DiaglogField when selected

$
0
0

Hi, I am building a report and for some reason the parameter screen loads and I get the following error when I click into it:

Unable to cast object of type 'Dynamics.AX.Application.FormIntControl' to type 'Dynamics.AX.Application.FormStringControl'.

 

My code is as follows however I cant find out where its coming from,

UI Builder:

class TestSysLogReportUIBuilder extends SrsReportDataContractUIBuilder
{

DialogField dialogTableNum;

DialogGroup dialogGroup;

boolean enable;

private void TableNumLookup(FormStringControl TableNumLookup)

{

Query query = new Query();

QueryBuildDataSource qbds_SysLogTable;

SysTableLookup sysTableLookup;

if (TableNumLookup != null)

{

// Create an instance of SysTableLookup with

// the current calling form control.

sysTableLookup = SysTableLookup::newParameters(tablenum(SysDataBaseLog), TableNumLookup);


// Add fields to be shown in the lookup form.

qbds_SysLogTable = query.addDataSource(tableNum(SysDataBaseLog));

sysTableLookup.addLookupfield(fieldnum(SysDataBaseLog, table), true);

sysTableLookup.parmUseLookupValue(false);

sysTableLookup.parmQuery(query);

// Perform the lookup.

sysTableLookup.performFormLookup();
}

}

public void build()

{

TestSysLogReportContract rdpContract = this.dataContractObject();

dialogTableNum = this.addDialogField(methodstr(TestSysLogReportContract,parmRefTableId),rdpContract);

dialogTableNum.lookupButton(2);

}

public void postRun()

{

Dialog dialogLocal = this.dialog();

DialogField dialogField;

super();

// This method should be called in order to handle events on dialogs.

dialogLocal.dialogForm().formRun().controlMethodOverload(false);

// Override the methods of department field.

dialogField = this.bindInfo().getDialogField(this.dataContractObject(), methodstr(TestSysLogReportContract, parmRefTableId));

dialogField.registerOverrideMethod(methodstr(FormStringControl, lookup), methodstr(TestSysLogReportUIBuilder, TableNumLookup), this);

}

}

Contract:

[DataContractAttribute,SysOperationContractProcessingAttribute(classstr(TestSysLogReportUIBuilder))]

class TestSysLogReportContract
{

RefTableId reftableid;


//Add parmAccountNum method as shown below

[DataMemberAttribute('RefTableId')]

public RefTableId parmRefTableId(RefTableId _reftableid = reftableid)
{

reftableid = _reftableid;

return reftableid;

}

}

Not sure what I am doing wrong. Anything obvious? 

In a nutshell I am trying to build a report which has the table name and id as a drop down list. 

Architecture diagram debug

$
0
0

Hello, 

please help me to breakdown this diagram (explanation), point wise

Bug Issue for JOB Select forupdate ?

$
0
0

Dear All,

( Calling for developers )

I have create job to import csv file then select forupdate firstonly from inventtable.

but its not success finding some data ( Item A). but some data found ( Item B)

but when I select inside ssms item A, the record is retrieved.

Anyone ever experience this issue ?

Please help

Sending emails with external software (e.g. Outlook)

$
0
0

Hello,

I have set "Email provider" in my user settings to "EML" which says that emails will be sent using an email app.

In this case, D365 should be only generating .eml files for the user and not sending emails by itself.

Problem is that it doesn't always happen like this. While in some cases it generates .eml file (e.g. purchase confirmation report), in other cases it still uses SMTP to send the report (e.g. user license count report).

Does somebody know the reason for this?

Is there some kind of a pre-defined list of places in which .eml generating is possible?

In my system configuration I marked only "EML" as an enabled email provider.

Creating a table for custom field

$
0
0

Hi there,

How do I create a new table behind a field within 365.

I see adding a new field, you can only have 50 options on the drop down.

Need help to create a new table and link it to a custom field.

Thank you.

Impersonate Users in D365 for Finance & Operations

$
0
0

Hello there,

Surprisingly seems like no threads is mentioning my current request here in the object below.

As you, D365 for Fin & OPs fellows probably guess with the object, my question is: how can I impersonate another User in D365 for Finance and Operations (Cloud-based running 8.0 PU22), well is it possible ?

I have Admin rights.

Thanks in advance !

Sales order confirmation using AIF

$
0
0

Hi,

I've wrote a simple method in SalesSalesOrderService but it doesn't confirm the status of Salesorder rather it creates a new sales order and duplicates all the values including lines. Following is my code.

[AifDocumentReadAttribute, SysEntryPointAttribute(true)]
public boolean confirmSales(SalesId _salesId)
{
    SalesFormletter SalesFormletter;
    SalesTable SalesTable;

    try
    {
        SalesFormletter = SalesFormletter::construct(DocumentStatus::Confirmation);

        SalesTable = SalesTable::find(_salesId);

        SalesFormletter.update(SalesTable,
                                                  systemDateGet(),
                                                  SalesUpdate::All,
                                                  AccountOrder::None,
                                                  false,
                                                  false);


        return true;
    }
    catch(Exception::Error)
    {
        return false;
    }
}

I've also tried changing AifDocumentReadAttribute to AifDocumentUpdateAttribute but it still creates another order. I've testing the same code via job and it works.

Need your help guys. Thanks.


Query cost relative to batch when opening the form

$
0
0

I have the listPage "MainAccountListPage" and when i select one account then click on the Posted button, I have a form "LedgerTransAccount" with 8 datasources. When I open this form it takes like time to open it.

I  find out that the time is consumed in GeneralJournalAccountEntry in executeQuery() method by command super();

When the executeQuery() is called from form by GeneralJournalAccountEntry_ds.executeQuery();

it takes 2min to call it.

In SQL server management, i done an executionPlan and i found the query cost relative to the batch 100%.

For me the query is optimazed

SELECT        T1.TRANSACTIONCURRENCYAMOUNT, T1.ACCOUNTINGCURRENCYAMOUNT, T1.REPORTINGCURRENCYAMOUNT, T1.QUANTITY, T1.ALLOCATIONLEVEL, T1.ISCORRECTION, T1.ISCREDIT, 
                         T1.TRANSACTIONCURRENCYCODE, T1.PAYMENTREFERENCE, T1.POSTINGTYPE, T1.LEDGERDIMENSION, T1.GENERALJOURNALENTRY, T1.TEXT, T1.REASONREF, T1.PROJID_SA, T1.PROJTABLEDATAAREAID, 
                         T1.HISTORICALEXCHANGERATEDATE, T1.LEDGERACCOUNT, T1.MAINACCOUNT, T1.SPLACTIVATIONDATE, T1.SPLITEMID, T1.SPLORDER, T1.SPLPOS, T1.SPLREASONCODE, T1.SPLSTATUSCODE, 
                         T1.SPLSTATUSDATE, T1.SPLVOUCHER, T1.SPLACTIVITYTYPE, T1.SPLTRANSACTIONNUMBER, T1.SPLTRANSACTIONNUMBERCANCELLED, T1.SPLLASTACTIVATIONTRANSACTIONNUMBER, 
                         T1.SPLAVEREXPVALUE, T1.SPLAMOUNTORDERCUR, T1.SPLORDERCURRENCY, T1.SPLRATE, T1.MODIFIEDDATETIME, T1.CREATEDTRANSACTIONID, T1.RECVERSION, T1.PARTITION, T1.RECID, 
                         T2.ACCOUNTINGDATE, T2.ACKNOWLEDGEMENTDATE, T2.POSTINGLAYER, T2.JOURNALNUMBER, T2.SUBLEDGERVOUCHER, T2.DOCUMENTDATE, T2.DOCUMENTNUMBER, T2.JOURNALCATEGORY, 
                         T2.LEDGERENTRYJOURNAL, T2.RECVERSION AS Expr1, T2.RECID AS Expr2, T3.DISPLAYVALUE, T3.RECVERSION AS Expr3, T3.RECID AS Expr4, T4.TYPE, T4.RECVERSION AS Expr5, T4.RECID AS Expr6
FROM            GENERALJOURNALACCOUNTENTRY AS T1 CROSS JOIN
                         GENERALJOURNALENTRY AS T2 LEFT OUTER JOIN
                         DIMENSIONATTRIBUTEVALUECOMBINATION AS T3 ON T3.PARTITION = 5637144576 AND T1.LEDGERDIMENSION = T3.RECID CROSS JOIN
                         FISCALCALENDARPERIOD AS T4
WHERE        (T1.PARTITION = 5637144576) AND (T2.PARTITION = 5637144576) AND (T2.LEDGER = 5637146076) AND (T1.GENERALJOURNALENTRY = T2.RECID) AND (T4.PARTITION = 5637144576) AND 
                         (T2.FISCALCALENDARPERIOD = T4.RECID) AND EXISTS
                             (SELECT        'x' AS Expr1
                               FROM            LEDGERTRANSACCOUNTTMP AS T5
                               WHERE        (T5.PARTITION = 5637144576) AND (T5.CREATEDTRANSACTIONID = 5680333244) AND (T1.LEDGERDIMENSION = T5.LEDGERDIMENSION))
ORDER BY T2.ACCOUNTINGDATE DESC, T2.JOURNALNUMBER DESC, T2.SUBLEDGERVOUCHER DESC

When i execute this query on SQL, it's very fast.

I don't understand why opening form take time on the super() of the executequery() method of the form.

Any helps in this regards.

Thank you

How to make a Fake object from a Table ?

$
0
0

Hi,

Our company is focussed on implementing high quality software so we write a lot of unittests.

Recentely we migrated to MS dynamics 2012 version and started to develop in X++, so we have to setup a framework for mocking.

Till now we were doing great on unittest for classes.

Atm im stuck at a test that uses the IsNewRecord from a Table Object and i need a mock or fake object from the tabel to adjust the result from IsNewRecord().

It seems making a class en extend from the Table is no option.

anyone any idea how to solve this ?

Greetz,

Kurt

Model file or ModelStore (export) want to save in specific location

$
0
0

Hi All,

Can you please let me know if i wants to export Model files OR Modelstore through PowerShell or AXUtil coomand and i wants to save in specific location say C:\<Folder>

Kindly send me the exact syntax with specific location for export model or model store.

Please give me more shed on this.

Thanks!

How to use AIF WSD URI, pass parameters, get response

$
0
0

Hi,

i created for testing purpose inbound port AIF

WSD URI: net.tcp://AOS_SERVICE_HOST/DynamicsAx/Services/test

I use default service CustCustomerService.find.

Can i get this service response by passing this uri to  normal browser (chrome) and how to pass parameters needed for this AIF?

I should get XML type response with data?

Approved buttons not visible after submission

$
0
0

Hi all,

Please,I am working on D365 FO

I have added a workflow for create new vendor

I have a problem with the approve button of workflow,
I do not know why it is not come, I have well check the setting and the development, all is well

Viewing all 17532 articles
Browse latest View live


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