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

Managing tickets in Microsoft Dynamics Lifecycle Services (LCS)

$
0
0

Dear Friends,
I have a case in Microsoft Dynamics Lifecycle Services (LCS):
1/ I want the customer can create a ticket in LCS
2/ The team member of my company can see and response this ticket, upload file to this ticket
3/ The customer can download the file from ticket
4/ I can search the history tickets
5/ The LCS can send email to notify any answer ticket.

Question:
1/ Can it support?.
Thank you.


How to create query on a dialog in AX 2012?

$
0
0

Hi Everyone,

I wanted to create dialog having afield of type CustAccount but i want to show only those customer Accounts of CustGroup ="Dealer"

pls help

thanks in advance

Copy configuration form test to procutcion

$
0
0

 

Hello,

I have all the configuration in a TEST environment. I need to copy this configuration to a production environment and be able to save time …. Do you know some fast and efficient process or utility to do this…??

 

Thanks

Restful Service Activities in D365 for Ops

$
0
0

Hello community,

Please i need to know what are the way by which i can make use of the capabilities of x++ to make restful endpoints call and also format responses from the endpoints. WebRequest class can be used in c# but i need a way to do this in D365 For OPS.

I am expected to be able to communicate with a JSON-based webservice.

I need guides and possibly sample code.

Thanks

clearing query ranges

$
0
0

Hi All,

I am using AX2012 R3 CU13.

There is a typical requirement from customer for a search in a form which made me to apply query range from a set ( setS ) of values  as follows :

In method :  applyqueryfilters(_query)

pfrds = sysquery::findorcreatedatasource(_query,TableAbc);

sI = new SetIterator(setS);

while (sI.more())
{
pfrds.addRange(fieldNum(TableAbc , QId)).value(sI.value());
sI.next();
}

Now whenever there is a new search the Set changes and the results are expected to fetch accordingly.

I tried clearing the ranges by :

_query.dataSourceTable(tableNum(TableAbc)).clearRange(fieldNum(TableAbc,QId)); or

or using pfrds.clearRange(fieldNum(TableAbc,QId))

However I am unable to clear the range completely . For example if they are 4 elements on the set and I use either of the above statements the filter on only one element is cleared. To clear the entire range apparently i will have to write the clearRange statement for the number of times as the length of the set. 

Could anyone please let me know how can I clear entire range of previous set using only one statement.

PS : there are already different ranges applied on other fields in TableAbc .

Thanks in advance.

Sales Order CreateLine() Optimization

$
0
0

Dear all,

I am using SalesTable's createline() method but it is taking too much time (around 10 mins for adding 600 lines). Is there any way to optimize it?

I am adding sales line from CSV file

Here is my method call

objSalesLine.createLine(true,true , true, true, true, true);

trace parser result.

Thanks,

Khurshid Wali

Manage release in Dynamics 365 For Operations

$
0
0

Hello, everyone!

Is there any instructions how to adjust release for D365FO?

Thank you!

Update table index using table extension

$
0
0

I create a table extension to add extra fields to a standard table . I need to include these new fields in the index that is already created on the table with allow duplicate no , how can I update the index since I cannot add any fields also I cannot update index properties , is there any work around using table extension not customization ?


Dynamics AX7 Webservice authentification

$
0
0

Hey,

I created a simple webservice in ax that returns a string. The WSDL is available. Now Iam trying to consume this webservice via a C# program.

I used this guide: https://ax.help.dynamics.com/en/wiki/dynamics-ax-7-services-technical-concepts-guide/ and the following code samples: https://github.com/Microsoft/Dynamics-AX-Integration/tree/master/ServiceSamples/SoapConsoleApplication

The Problem is that we are using the contoso image for developing. Is there any way for a simple authentification without the Azure Active Directory?

We don't have this option right now but we need to test the services.

Best regards

Alex

ODATA SERVICE Authentication Issue / Accessing Entity Data

$
0
0

Hi all,

I'm currently using the Dynamics Github Service Examples to see if I could consume the OData end points.  I'm currently having an issue where I'm trying to enumerate through the returned data set but i'm reaching an exception where it gives me a status code of 403 unauthorized.  

Does anyone know what might be causing that?  I'm thinking I'm missing a setting or something.  

Other pertinent info:

The app is registered in AAD as a Web App / API.  I've given it the following permissions:

Microsoft Dynamics ERP

- Delegated Permissions:  all 3

Windows Azure Active Directory

- Delegated Permissions: only 1 - Sign in and Read user Profiles

I'm passing through a set of credentials as well as the client key.

Not sure what i'm missing but i would be eternally grateful if someone could give me some hints as to what i'm missing.

Thank you!

Batch Job's status remain in Available status

$
0
0

While running Download Job - Jobs are shown with Available status that never went into Applied status.

Using Dynamics365 - While running job, job history does show effected rows but when reaching to Download Session page, it shows with Available status. Any hint to fix ?

Custom rate engines give error 'Dynamics.AX.ApplicationSuite.124.netmodule' on D365FO

$
0
0

We have custom transportation rate engines that worked perfectly in AX2012.

We brought them over to D365. We cannot get it to work in D365.

The error I get when I step through the code is:

Message "Could not load file or assembly 'Dynamics.AX.ApplicationSuite.124.netmodule' or one of its dependencies. The system cannot find the file specified." string

Microsoft has provided this link on how to create transportation  rate engines: https://docs.microsoft.com/en-us/dynamics365/unified-operations/supply-chain/transportation/create-new-transportation-management-engine#deploy-the-tms-engine-as-a-package

Nowhere in there does it mention anything special on the build or what version the project needs to be build in. Note that the rate engine project is a mixture between X++ and a C# class library.

When it builds, it generate warnings that I have ignored up till now, but searching for an answer on the error makes me think that I need to look closer at the warning messages.

Here are some:

*****

2>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Dynamics.AX.ApplicationFoundation", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

2>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Dynamics.AX.ApplicationPlatform", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

2>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Dynamics.AX.ApplicationSuite, Version=0.0.0.0, Culture=neutral, processorArchitecture=AMD64", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

3> No way to resolve conflict between "Microsoft.Data.OData, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "Microsoft.Data.OData, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing "Microsoft.Data.OData, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" arbitrarily.

3> No way to resolve conflict between "Microsoft.Data.Edm, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "Microsoft.Data.Edm, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing "Microsoft.Data.Edm, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" arbitrarily.

3> No way to resolve conflict between "Microsoft.Data.Services.Client, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "Microsoft.Data.Services.Client, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing "Microsoft.Data.Services.Client, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" arbitrarily.

3> No way to resolve conflict between "System.Spatial, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "System.Spatial, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing "System.Spatial, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" arbitrarily.

3> No way to resolve conflict between "Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" and "Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed". Choosing "Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" arbitrarily.

3> Consider app.config remapping of assembly "Microsoft.Data.OData, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "5.6.0.0" [] to Version "5.6.4.0" [C:\Users\User5189d4976dc\Documents\Visual Studio 2015\Projects\TMC_3832_TmsSharedParcelEngineData\TMC.ThirdParty.Parcel\bin\Debug\Microsoft.Data.OData.dll] to solve conflict and get rid of warning.

3> Consider app.config remapping of assembly "Newtonsoft.Json, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" from Version "6.0.0.0" [] to Version "9.0.0.0" [C:\Users\User5189d4976dc\Documents\Visual Studio 2015\Projects\TMC_3832_TmsSharedParcelEngineData\TMC.ThirdParty.Parcel\bin\Debug\Newtonsoft.Json.dll] to solve conflict and get rid of warning.

3> Consider app.config remapping of assembly "Microsoft.Data.Services.Client, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "5.6.0.0" [] to Version "5.6.4.0" [C:\Users\User5189d4976dc\Documents\Visual Studio 2015\Projects\TMC_3832_TmsSharedParcelEngineData\TMC.ThirdParty.Parcel\bin\Debug\Microsoft.Data.Services.Client.dll] to solve conflict and get rid of warning.

3> Consider app.config remapping of assembly "System.Spatial, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "5.6.0.0" [] to Version "5.6.4.0" [C:\Users\User5189d4976dc\Documents\Visual Studio 2015\Projects\TMC_3832_TmsSharedParcelEngineData\TMC.ThirdParty.Parcel\bin\Debug\System.Spatial.dll] to solve conflict and get rid of warning.

3> Consider app.config remapping of assembly "Microsoft.Data.Edm, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "5.6.0.0" [] to Version "5.6.4.0" [C:\Users\User5189d4976dc\Documents\Visual Studio 2015\Projects\TMC_3832_TmsSharedParcelEngineData\TMC.ThirdParty.Parcel\bin\Debug\Microsoft.Data.Edm.dll] to solve conflict and get rid of warning.

3>C:\Program Files (x86)\MSBuild\Microsoft\Dynamics\AX\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets(75,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Data.OData" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /><bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Data.Services.Client" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Spatial" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Data.Edm" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" /></dependentAssembly></assemblyBinding>

*****

What I read about these errors, is that it means that AX is on one version and that Visual Studio compile sit against another. It looks to me that AX is X86. By default the projects are compiled as Debug/Any CPU. It looks like I need to change it to Debug/X86. I did that but the build gave even more warnings. So I changed it to Debug/X64, but still the warning messages.   

 

So I don't know if I am on the right track to fix my run time exception error.

Can anybody shed some light for me on this error ("Could not load file or assembly 'Dynamics.AX.ApplicationSuite.124.netmodule' or one of its dependencies. The system cannot find the file specified." ) please with a possible solution on how to fix it?

RestAPI from D365

$
0
0

I want to use RestAPI from D365. We tried following approached
• Use newtonsoft Dll.
• Use “FormJsonSerializer“ class
And we are facing the following issue
• Unable to serialize and deserialize objects using newtonsoft dll. Always return blank object.
• We are able to serialize and deserialize object using FormJsonSerializer but if rest call contains multiple List objects then its throwing error.

Error when trying to add a new customer "Access denied to table Party relationships (DirPartyRelationship)"

$
0
0

When a user is trying to add a new Customer ship-to account, they are receiving an infolog stating "Access denied to table Party relationships (DirPartyRelationship).  This use has been able to perform this action and no security has changed for her.  I'm told that this happens occasionally and they try a second time, then it works.  However, today she has been unable to perform this action at all.

Anyone have an idea of what could be causing this?

Dynamics AX AIF. Set Message headers in Java

$
0
0

I need to pass MessageId from Java client to Dynamics AX using AIF. How can I set MessageId to XML Header section? In topic from MSDN I see next:

    SalesOrderServiceClient salesOrderServiceClient = new SalesOrderServiceClient();
    System.ServiceModel.OperationContextScope operContextScope;
    operContextScope = new System.ServiceModel.OperationContextScope(salesOrderServiceClient.InnerChannel);
    //"OperationContextScope" -> analog in Java?
    //"IClientChannel" -> how I can obtain it from proxy or service class?
    using(operContextScope)
    {
        System.ServiceModel.OperationContext.Current.OutgoingMessageHeaders.MessageId = new System.Xml.UniqueId(Guid.NewGuid());
    }
In my Java application I use next:

    ((BindingProvider) proxy).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, usr);
    ((BindingProvider) proxy).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, pwd);

but this construction doesn't fill Header section, it's for SOAP.

BP Label Error AX 7

$
0
0

Can someone guide me to why does this error popup

I have a model SLD_HRApplicationFoundation, which has a SLD_HRP label file. When I check for best practices, I get the following error

BP Rule: [BPErrorUnknownLabel]:Path: [dynamics://EdInt/SLD_HRRetirementAge]:Unknown label 
'@SLD_HRP:Param0014'. Legacy labels (such as label id @SYS12345) are case insensitive and 
modern labels (such as 'MyLabelId' in @MyLabelFile:MyLabelId) are case sensitive. Use upper 
casing when referring to legacy labels and exact casing for modern labels.

Where as my SLD_HR.en-US.label.txt file has the following entry

Label ID: Param0014
Label: Default retirement age
Description: Help text for retirement age years

and the properties set for SLD_HRRetirementAge EDT as

Label: @SLD_HRP:Param0013
Help text: @SLD_HRP:Param0014 

I am currently running AX7 update 8 and SLD_HRApplicationFoundation model has been build to latest changes and database is synchronized as well.

Why HTTP Inbound Port configure on IIS generate event log every 20 minutes ?

$
0
0

I installed web services on IIS and created a new HTTP inbound port. This port seems to work fine but I have every 20 minutes in the event viewer the following logs :

1) Activating services:
/MicrosoftDynamicsAXAif60/WebCustServiceHttp/xppservice.svc

2) A service host was created for the following port: WebCustServiceHttp

Is it a "normal" situation ? Do you have the same logs in your environment ? 

How to Filter AX Grid with comma separated values - Extend Characters limit?

$
0
0

This might be a strange request from the user but just wondering can we 'extend' the character limit on filter value on AX Form Grid?

  • Is there any customization we can do? like Properties or something
  • Let's users can enter up to 20 Invoice number with comma separated in the filter. But they need to enter more.

Please look at the following screenshot.

Any input will be appreciate much.!

Sales Order CreateLine() Optimization

$
0
0

Dear all,

I am using SalesTable's createline() method but it is taking too much time (around 10 mins for adding 600 lines). Is there any way to optimize it?

I am adding sales line from CSV file

Here is my method call

objSalesLine.createLine(true,true , true, true, true, true);

trace parser result.

Thanks,

Khurshid Wali

Manage release in Dynamics 365 For Operations

$
0
0

Hello, everyone!

Is there any instructions how to adjust release for D365FO?

Thank you!

Viewing all 17532 articles
Browse latest View live


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