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

VS2015 Project in AOT

$
0
0

Hi All,

I have developed a project in Visual Studio 2015 and i want to add that project to AOT for Deployment , but in the AX2012R3 Demo Environment , the Application Explorer is missing.

How can i get the Application Explorer in VS2015 ? 

Note : Application Explorer is visible in VS2010 and i am able to add VS2010 Project in AOT and use it.


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

D365 provider

$
0
0

I have been operating with D365 Finance and Operations and the current provider for a while now. D365 is as good as expected and has even greater potential than we first expected.

However, we might be in a situation where we  might have to change the provider of our D365 solution. Is that even possible or is the only solution to ramp it up all again from scratch and do a data conversion? Can you change the provider of your D365 off premise solution which is in the Azure web? And if changing is possible, is it more costly than ramping all up again?

Authentication Error while developing custom service :Failed to authorize with AAD by credentials.

$
0
0

HI what should be the user name and password to be used in client configuration .
I have followed the steps :
1.Registered an app in azure portal .( the azure administrator has registered the app and shared the application ID and application key  )
2.Registered the external application in D 365 (In Finance and Operations, go to System administration > Setup > Azure Active Directory applications. Registered the app with providing the details like client ID : app id from azure portal App name : Given an app name  and user have admin right in D 365 Admin)
3.Try to use the token in an authorization HTTP header to make subsequent service calls via OData or SOAP.
When I am  trying to authenticate I am  getting the exception (failed to authenticate with AAD by the credentials ).
able to
According to the description given in the Microsoft document (These steps don't have to be completed by all the people in your organization. Only one Azure Service Administrator user can add the application and share the client ID with the developers.)
docs.microsoft.com/.../services-home-page
I have used this similar code :
using System;
 
namespace OAuthRequestManager
{
    public class ClientConfiguration
    {
        public static ClientConfiguration Default { get { return ClientConfiguration.OneBox; } }
 
        public static ClientConfiguration OneBox = new ClientConfiguration()
        {
            UriString = "Ax Instance Url",
            UserName = "",// What should be the user name to be used
            Password = "",// what should be the password to be used
            ActiveDirectoryResource = "AX Instance Url",
            ActiveDirectoryTenant = "https://login.windows.net/ TenantID /",
            ActiveDirectoryClientAppId = " Client Id",
            ActiveDirectoryClientAppSecret = " Secret Key",
        };

Can someone please explain in details after the first 2 step in order to receive the authorization code how I can design the code .
 
        public string UriString { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public string ActiveDirectoryResource { get; set; }
        public String ActiveDirectoryTenant { get; set; }
        public String ActiveDirectoryClientAppId { get; set; }
        public string ActiveDirectoryClientAppSecret { get; set; }
    }
}
when try to run this code giving the exception like
Failed to authorize with AAD by credentials ?
Which user name or password should I use ?
I am using the username : AX admin which I have used to register app in ax
Password also for same user
the user has sys admin access in AX

License costing, exchanging licenses of AX 2009

$
0
0

Need to know the license costing for 60 users for the Dynamics 365 Business Central. Can AX 2009 license can be exchanged? 

Product name is printing many times for released product form when export to excel in AX 2012

$
0
0

Hi ,

Path:

===

Product information management--->released products

When i filter in AX 2012 i have only one item with product name

But when i export to excel i am getting many records with same product name

Any inputs are highly appreciated.

X++ return different from SQL

$
0
0

Hi all,

I write a block of code return record, but on SQL return no record, X++ return 1 record.

I used AND operation but X++ return like OR.

date_start and date_end is Jul 01 and Jul 31.

I select FiscalCalendar = 5637147593AND date ....

but record return: FiscalCalendar = 5637144576 has StartDate is Jul 01

Best way to integrate with google cloud storage

$
0
0

Good Morning,

Hope all are fine.

I am trying to integrate D365FO with google store.

Please guide me which one should I follow (Custom service,Custom service in json ,Custom service in soap, Odata Services,External web service).

I searched a lot.But I do not get any solution.

Experts please show some light on this.

Regards.

Have a great day.


To add ******** after the amount in words in cheque.

$
0
0

I have a requirement to add stars after amount in words in cheque(US).

Upon looking i observed that amount in words most probably is being generated by numeralstoTxt(Real _num) method of global class

So I created extension of global class but somehow cant figure what to put in codeblock below to meet my requirement.

[ExtensionOf(classStr(Global))]
final static class MYGlobal_Extension
{        

    public static TempStr numeralsToTxt(real _num)
    {
        str 200 returntxt;
       
        ////
        next numeralsToTxt( _num);  
        return returntxt;

    }

}


Deploying Customized Package Failed in LCS

$
0
0

Hi,

Im trying to deploy a customize package in LCS, but we encountered an error. In the error logs, it's stated:

25052018082458: Could not find FileLocations.xml in the package '[NameOfPackage]'

Hope you can help us. Thank you.

axbuild: This app cant run on your PC

$
0
0

Hi All,

Getting the below error while trying to do full compilation using command prompt : 

E:\Program Files\Microsoft Dynamics AX\60\Server\AX_PROD\bin> axbuild.exe xppcompileall /s=01

This app cant run on your -PC , to find the publisher of your PC , check with the software publisher,

Kindly advise us how to resolve this error, tried full compilation from AOT , it has taken almost 9 hours to complete.

Regards,

Akbar

Lookup with "contains" filtering

$
0
0

What is the recommended approach for using "contains" filtering in lookups? When using SysReferenceTableLookup, by default the lookup is using a "begins with" filter. If I try to use a wildcard as the first character the * always gets escaped with "\*" when searching. I would prefer to not have to use wildcards at all, and have the lookup use a "contains" filter by default. For example: if I have a value of "12-345, 12345, 12/345" then if i type "12345" then I would want the include the "12-345, 12345, 12/345" record in the lookup results to choose from.

Remove over layering on Table in Dynamics 365

$
0
0

We are upgrading from AX2012 R3 to D-365.

CustTable(Standard) has been customized in R3 now in the D365 it is over layered object. I created a new package , model and created extension(CustTable.Extension) in our model. When I try to move the custom fields from CustTable to its extension, they are shown as greyed out on the CustTable. Any clues ?

Hide option button (Form personalization)

$
0
0

Hi,

How i can hide option button (Form personalization) in D365FO On-premise.

Batch server Vs Debugging X++ code running on Server

$
0
0

Hi,

We have an AOS server and Batch server separately. This is a development and testing environment. Our batch server is working only when Enable breakpoints to debug x++ running on server is  turned OFF. Enabling this parameter will make AOS restart.

to debug x++ code running on server, I have to turn this ON. for that, I had to stop my colleagues working, save their stuff and enable the parameter which in turn restarts AOS and then i have to do my debugging.

I believe there should be a easier way of handling this?

Lakshmi


Send email with attachment

$
0
0

Hi,

this is the code I am using to send email with attachment.
I am able to send email without attachment with the below code by commenting the bold lines , but while using the bold lines it gives an exception stating the "clr object could not becreated"  on line 2

public void sendMail()
{
str sender = "abc"mail id of the sender
str recipient = "xyz"; //mulitple recipients can be specified
str cc = "pqr"; // mulitple cc id's can be specified
str subject = "seat master excel file";
str body = "Please find the attachment";
str fileName = @"C:\\Users\\admin\\Desktop\\seat_master.xlsx"; //Location of the attachment file


List toList;
List ccList;
ListEnumerator enumList;
Set permissionSet;
System.Exception exception;

str mailServer;
int mailServerPort;
System.Net.Mail.SmtpClient mailClient;
System.Net.Mail.MailMessage mailMessage;
System.Net.Mail.MailAddress mailFrom;
System.Net.Mail.MailAddress mailTo;
System.Net.Mail.MailAddressCollection mailToCollection;
System.Net.Mail.MailAddressCollection mailCCCollection;
System.Net.Mail.AttachmentCollection mailAttachementCollection;
System.Net.Mail.Attachment mailAttachment;
FileIOPermission permission;
;

try
{
toList = strSplit(recipient, ';');
ccList = strSplit(cc, ';');


permission = new FileIOPermission(fileName,'r');
permission.assert();

mailServer = SysEmaiLParameters::find(false).SMTPRelayServerName;
mailServerPort = SysEmaiLParameters::find(false).SMTPPortNumber;
mailClient = new System.Net.Mail.SmtpClient(mailServer,mailServerPort);

enumList = toList.getEnumerator();
enumList.moveNext();

mailFrom = new System.Net.Mail.MailAddress(sender);
mailTo = new System.Net.Mail.MailAddress(strLTrim(strRTrim(enumList.current())));
mailMessage = new System.Net.Mail.MailMessage(mailFrom, mailTo);

mailToCollection = mailMessage.get_To();
while (enumList.moveNext())
{
mailToCollection.Add(strLTrim(strRTrim(enumList.current())));
}

enumList = ccList.getEnumerator();
mailCCCollection = mailMessage.get_CC();
while (enumList.moveNext())
{
mailCCCollection.Add(strLTrim(strRTrim(enumList.current())));
}

mailMessage.set_Priority(System.Net.Mail.MailPriority::High);
mailMessage.set_Subject(subject);
mailMessage.set_Body(body);

mailAttachementCollection = mailMessage.get_Attachments(); //1
mailAttachment = new System.Net.Mail.Attachment(fileName); //2
mailAttachment.set_Name("seat_master"); //3
mailAttachementCollection.Add(mailAttachment); //4

mailClient.Send(mailMessage);
mailMessage.Dispose();

CodeAccessPermission::revertAssert();

info("Email sent successfully");
}
catch (Exception::CLRError)
{
exception = ClrInterop::getLastException();
while (exception)
{
info(exception.get_Message());
exception = exception.get_InnerException();
}
CodeAccessPermission::revertAssert();
}

}

How can i create simple console application in D365fo

$
0
0

Good morning ,

How can i create simple console application in D365fo.

Please provide some light on this.

Regards.

Have a great day.

Separate Event Handler class and Extension Class in D365

$
0
0

Hello,

  Just wondering to confirm one thing from experts. I am confused to have separate event handler class and Extension class. 

Should we have separate Event handler class for all handlers methods different from Extension class ? I know that we can have both in same class but what is best practice keeping both in same class or separate Event handler class and extension class ?

Looking for your suggestions on this.

How to use API from community.dynamics.com

$
0
0

Hello

Keen to know how to use API from community.dynamics.com?

Regards

Rahul

No assembly matching error

$
0
0

I have encountered the following error on Build Model.

I have build Application Suite separately as well, but it is still giving me this error

Any help would me appreciated

Viewing all 17532 articles
Browse latest View live


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