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

Protocol and attributes used by Dynamics 365 Finance & Operations to connect Azure AD

$
0
0

One of our client has existing Azure AD subscribed with Office 365 account while another tenant is created with different domain when they subscribed Dynamics 365 Finance & Operations. Now we are trying to develop a customized application agent that will authenticate their Office 365 users to Azure AD.

I need to understand protocol and attributes used by Dynamics 365. Please help.


Failed build with CI server

$
0
0

I keep on getting the below error when the project builds using the CI build server with Azure DevOps, I was able to resolve it by commenting out the "GlobalSection(SolutionConfigurationPlatforms) = preSolution" and "GlobalSection(SolutionProperties) = preSolution" in the solution file.  But this is not the solution since this workaround affects the developers trying to get updates from the repo.

C:\Program Files (x86)\MSBuild\Microsoft\Dynamics\AX\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets(55,5): Error MSB4062: The "CopyReferencesTask" task could not be loaded from the assembly Microsoft.Dynamics.Framework.Tools.BuildTasks, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Could not load file or assembly 'Microsoft.Dynamics.Framework.Tools.BuildTasks, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
Process 'msbuild.exe' exited with code '1'.

Product configuration + Demand Forecasting

$
0
0

Quick question to the D365FO professionals here. Has anyone attempted to do a demand forecast (either manual or using Azure machine learning) for item SKUs' which are built through the product configurator? Is this possible?

Ways to access production sql server database

$
0
0

Hi,

Is there a way we can access production database?

Thanks

Set Field

$
0
0

I am new in coding and i need a help .

I have this code as below 

AxLedgerJournalTable journalTable;
AxLedgerJournalTrans journalTrans;
container accCon;
container offSetCon;
LedgerJournalTable ledgerJournalTable;
ledgerJournalCheckPost ledgerJournalCheckPost;

journalTable = new AxLedgerJournalTable();
journalTrans = new AxLedgerJournalTrans();

//Journal Name
journalTable.parmJournalName('GenJrn');

journalTable.save();

journalTrans.parmJournalNum(journalTable.ledgerJournalTable().JournalNum);
journalTrans.parmTransDate(mkDate(04,05,2017));
journalTrans.parmAccountType(LedgerJournalACType::Ledger);

//LedgerDimension => Ledgeraccount, DAX 2009
accCon = ["500200", "500200",2,"Department","023","Costcenter","009"];
journalTrans.parmLedgerDimension(AxdDimensionUtil::getLedgerAccountId(accCon));

journalTrans.parmAmountCurDebit(200);

//OffsetLedgerDimension => OffsetLedgerAccount, DAX 2009

journalTrans.parmOffsetAccountType(LedgerJournalACType::Ledger);
offSetCon = ["510370", "510370", 1, "Department", "022"];
journalTrans.clearField(fieldNum(LedgerJournalTrans, OffsetLedgerDimension), false);
journalTrans.parmOffsetLedgerDimension(AxdDimensionUtil::getLedgerAccountId(offSetCon));

journalTrans.save();


//ledgerJournalCheckPost = ledgerJournalCheckPost::newLedgerJournalTable(journalTable.ledgerJournalTable(),NoYes::Yes);
//ledgerJournalCheckPost.run();

info(strFmt("Journal %1 created", journalTable.ledgerJournalTable().JournalNum));

I need to set the field values from the another table that has the values 

So Plz help me out.

User Setup Form - Remove Buttons

$
0
0

When displaying the User Setup box on a form (right click - Setup) I want to be able to hide the button on the right hand side and leave the Reset (j) button only

Currently, users with access to the Setup option can use all the buttons. But we do not wih them to be able to Load, Save or Retrieve from User

Any Advice would be gratefully received

Deserializing object in custom service D365

$
0
0

Hi Experts,

Do I need to change the structure of the below code in D365 for the custom service. The below code is what I used in AX 2012 and exposed as a service. Can I use the same for D365?

I have to call this method (insertPOStaging) from client application using JSON. So do I need to deserialize in this method?

There are two List objects as parameters in the method insertPOStaging and I am not really sure whether its a proper way to deserialize. Kindly guide.

Class PurchaseOrderService

{

[AifCollectionTypeAttribute('_poHeaderObj', Types::Class,classStr(PurchaseOrderHeaderContract)),
AifCollectionTypeAttribute('_poLineObj', Types::Class,classStr(PurchaseOrderLineContract)),
SysEntryPointAttribute(true)]
public void insertPOStaging(List _poHeaderObj, List _poLineObj)
{

 //rest of the code to insert into staging tables.

}

}

Thanks,

N.Sridhar

How we can track user activity log in ax 2009

$
0
0

Activities:-

1) User log on opening different forms

2) Recording user log information.


Differences in Product

$
0
0

Hi,

I am confuse regarding the Product in Product Information Management.  What is the difference in Product, Product Master and Release Product.  I try to create item product with corresponding product number in Products,  I release the product but it seem that I inquire in release product nothing there and also in product master. Do you have any idea?

Thanks in advance.

Regards,

CJ

slow query in LedgerInquiryGeneral_CN

$
0
0

Hi guys!

We have a performance issue regarding to LedgerInquiryGeneral_CN, we already have already put an index to this query(standard code) but it still not improve the generation of the form, kindly see the query below. 

while select generaljournalAccountEntry
group by TransactionCurrencyCode
join RecId from generaljournalEntry
where generalJournalEntry.RecId == generaljournalAccountEntry.GeneralJournalEntry
&& generalJournalEntry.AccountingDate >= fiscalCalendarPeriod.StartDate
&& generalJournalEntry.AccountingDate <= fiscalCalendarPeriod.EndDate
&& generalJOurnalEntry.Ledger == Ledger::current()
exists join RecId, Type from localfiscalCalendarPeriod
where localfiscalCalendarPeriod.RecId == generaljournalEntry.FiscalCalendarPeriod
&& localfiscalCalendarPeriod.Type == FiscalPeriodType::Operating
exists join RecId from dimensionAttributeLevelValueView
where dimensionAttributeLevelValueView.ValueCombinationRecId == generaljournalAccountEntry.LedgerDimension
&& dimensionAttributeLevelValueView.DimensionAttribute == dimensionAttributeMainAccount
&& dimensionAttributeLevelValueView.DisplayValue like mainAccount.MainAccountId + #AllFilesName

any suggestion(s) to improve this query?

Thanks in Advance, appreciate your help :)

Form not closing with below code

$
0
0

Pls suggest what is wrong with below code using which I am unable to close a form when i click on cancel button.

When i click on cancel it infos "Clicked cancel " and remain on same form.

[FormControlEventHandler(formControlStr(Form3, Cancel), FormControlEventType::Clicked)]
    public static void Cancel_OnClicked(FormControl sender, FormControlEventArgs e)
    {
       
        info ("Clicked cancel");
        Args args;
        FormRun formRun;
        ;
        args = new Args();
        args.name(formstr(form3));
        formRun = ClassFactory.formRunClass(args);
        formRun.init();
        formRun.run();
        formRun.wait();
        formRun.close();
        
    }


Reference group and GROUP BY

$
0
0

This blog post explains a problem that you can run into when using reference group controls with grouped data – and a solution for this problem.

I have a table which stores references to workers. The field has HcmWorkerRecId data type, i.e. it stores record IDs from HcmWorker table. When I drop this field to a grid on a form, the system uses Reference Group control, which shows human-readable data instead of RecId numbers. By default, it shows worker names.

There are multiple records for the same worker, therefore if I want to show data summarized data for each worker, I add grouping to the query:

TableWithRef_ds.queryBuildDataSource().addGroupByField(fieldNum(TableWithRef, Worker));

But the result isn’t correct – the reference group doesn’t show anything.

The grouping works correctly; I can see the right record IDs if I display them thought an Int64 control instead of a reference group.

The problem is that we group only by the record ID, but not by Name. And because Name is neither used in GROUP BY nor it has an aggregation function applied, its value is undefined and there is nothing to show.

Let’s fix it. Go to the data source in AOT and add reference data sources. Because Name field isn’t directly in HcmWorker table, we’ll need one more data source – DirPerson. Like this:

You can add them by right-clicking the Reference Data Sources node, choosing New Reference Data Source and then setting properties Join Relation and Name.

Then we can easily add an extra field to group by, this time from DirPerson table:

DirPerson_ds.queryBuildDataSource().addGroupByField(fieldNum(DirPerson, Name));

Voilà, names are back!

SysDictClass's hasStaticMethod returns incorrect result

$
0
0

Good afternoon.
I found the issue with SysDictClass's hasStaticMethod method. It returns incorrect result on one of the environments for class which doesn't have the static method.
For example it is happening while this code line running:

RunBase::getDescription(classNum(SysInfoAction_MenuFunction));


Here We have condition:

...
classObj = new SysDictClass(_classNum);

if (classObj &&
    classObj.hasStaticMethod(staticName))
...


Where _classNum - our incoming parameter;
and staticName - staticmethodstr(RunBase, description).
What could be wrong with the environment which have this issue?

What is practical use of delegates in D365 development?How can i use it?

$
0
0

Hello Folks,

What is practical use of delegates in D365 development?How can i use it?

How can i access Model A element in Model B using delegates?

Print All PO Numbers on each screen in SSRS report

$
0
0

Hi All,

I have to print All purchase order number on the ssrs report sample display below, 

Example : p00010,p00011,p00012 ,I have three purchase order number ,each PO  want to print each page 

expecting output is :Three PO three page  ,

please any one help to solve this problem.

Your PO number is *************  Acknowledgement of the Purchase Order and the Account Coordinator Contact Information should display the following:

BR

Tony


Export Vendor Payment file for Mexico Citibank(BANAMEX)

$
0
0

Is there any standard format or method is D365 for exporting vendor's electronic payment?

Previously in AX 2012 there were lots of formats that were not available now.

We need to configure file format- PL1024 , shared by CITIBANK.

Is there any way to do this.

Refresh temp table in form

$
0
0

In AX7 i don't know why i can't refresh the tempDB in form.

we add one new method in a class as below:

[FormControlEventHandler(formControlStr(FormTesting, cbxType), FormControlEventType::Modified)]
    public static void cbxType_OnModified(FormControl sender, FormControlEventArgs e)
    {
       
        testTempTable     tempTable;  
        FormDataSource          fds = sender.formRun().dataSource(formDataSourceStr(FormTesting, testTempTable)) as FormDataSource;
        ;

        tempTable.Id = "A";

        tempTable.Name = "Test";

        tempTable.insert();

        fds.setRecord(tempTable);

        fds.executeQuery();
    }


After the field data changed in form, no record show...

testTempTable  was set to TempDB

in AX2012, we just use testTempTable.linkPhysicalTableInstance(tempTable) is ok -->code in form

but in AX7, the method can only write in a class, we can't use object "testTempTable"(Datasource name) any more...

Can anyone help me? Thanks a lot!!

Protocol and attributes used by Dynamics 365 Finance & Operations to connect Azure AD

$
0
0

One of our client has existing Azure AD subscribed with Office 365 account while another tenant is created with different domain when they subscribed Dynamics 365 Finance & Operations. Now we are trying to develop a customized application agent that will authenticate their Office 365 users to Azure AD.

I need to understand protocol and attributes used by Dynamics 365. Please help.

How can we track user view/read activity log on AX usage objects in AX 2009 ?

$
0
0

Hi All,

Customer ask is they want to track user client access view/read (not a database log) activity log on AX usage objects in AX 2009. I know we can track this in AX 2012 but unfortunately our application exists in AX 2009. I would like to know where we can see this log in AX 2009.?

Please share your thoughts how can we track this information.

Awaiting for your response.

Regards,

Suresh.

Why the result is confused when I use the AddRange and AddSortField on RecId on RecId?

$
0
0

I want to fetch a result set with some data sorted by RecId.

But the records are in large number, so I have to specific a range in every request.

So I write my code like this:

            Query query;
            QueryRun qrun;
            QueryBuildDataSource    qbds;
            QueryBuildRange qbr;
            query= new Query();
            qbds = query.addDataSource(tableId);
            qbr= qbds.addRange(fieldName2Id(tableId,"RecId"));
            qbr.value(">"+int642Str(from));
            qbds.addSortField(fieldName2Id(tableId,"RecId"));
            qrun = new QueryRun(query);


But the result is confused. The range is right, but the result set is not sorted.

How to resolve it?

Viewing all 17532 articles
Browse latest View live


Latest Images

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