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

Integration of Project/CRM with Operations

$
0
0

Can you give me guidance on where the process to connect Dynamics 365 Project/CRM to Dynamics 365 Operations.

thanks

Jay


How can we calculated discounted net amount in AX2012 ?

$
0
0

Hi,

 How can we calculated discounted net amount for  each  line in  PO &  SO , without checking the " Quantity "  field in   AX2012 . So our calculation must be (Quantity * Unit Price ) - Discount = Net Amount .

Please Reply..

Regards,

Dhanya

  

Write data in an excel file from AX7.

$
0
0

I have a problem in which i want to write the data in the excel file from AX. 

As the SysExcelApplication class does not exist in AX7. So how can we achieve this task. 

I want to do the exact thing.

Still gets error message, beside the field property is set to be not mandatory.

$
0
0

Good afternoon All,

Hope you are having a great day!

I am having a strange issue with here and would like to here some tips and tricks how to surpass the issue.

I have checked the properties of the field & the data source of the form where this is used and the property is set to 'No'. Though every time i am filling out the form get the following error:

Please advise?

Thank you in advance and kind regards,

SCDPBundleInstall complains about missing metadatastorepath

$
0
0

I have this error

parameter metadatastorepath was not specified

Command

SCDPBundleInstall.exe -prepare -packagepath=c:\hf\HotfixPackageBundle.axscdppkg -metadatastorepath= f:\AOSService\PackagesLocalDirectory -tfsworkspacepath= f:\AosService\PackagesLocalDirectory -tfsprojecturi=desertlineprojects.visualstudio.com/_projects

Installation of Dynamics 365 for Operations

$
0
0

Hi all,

I want to understand how to install dynamics 365 on Azure.

also let me clear is Azure licence required for Dynamics 365 Enterprise edition.

Unable to Launch an external application from AX 7

$
0
0

Hi,

I have a requirement to launch an external application which is an executable file (The .exe file has some UI like word etc.,) from a button click in AX 7. I have tried using the below 2 statements but  could not make it work

1) WinAPI::shellExecute("C:\\cr3\\cr3\\cr3.exe");

---This caused an exception -> "Function 'ShellExecuteExW' in DLL library 'C:\windows\system32\SHELL32.dll' has caused an exception."

2) System.Diagnostics.Process process;
System.Diagnostics.ProcessStartInfo processStartInfo;

new InteropPermission(InteropKind::ClrInterop).assert();

processStartInfo = new System.Diagnostics.ProcessStartInfo("C:\\cr3\\cr3\\cr3.exe");
process = new System.Diagnostics.Process();

process.set_StartInfo(processStartInfo);
process.Start();

---This executes without any errors but it does not show any window or the external application which was launched.

Any corrections/suggestions how to make this work in AX 7.

the menu item with name '' could not be opened

$
0
0

HI all,

I have created extension of action menu item.  when ever i am opening it from from end I am able to see dialog with new modification.  but after I click on OK i get the error "The menu item with name 'Standard menu item name(No the extended)' could not be opened "

 

how can i resolve this? i have synchronised project, refreshed every new object, restarted IIS, restarted server! still I am getting this error.

Regards,

Tejas.


Show HcmJob.JobId in AOT Views using AOT Queries

$
0
0

Hi there,

I came across a problem, can anyone help me in this regard,

I have created a View say “WorkerRoleView” and Queries say “WorkerRoleQuery."

I want to show HcmWorker.Person and worker last job - HcmJob.JobId  in the AOT WorkerRoleView without using any methods only using AOT WorkerRoleQuery the result should be for example 5637141234    BI consultant.

The issue that I have is that the worker can have more than one JobId, and I want to show only their last jobId.

I believe that the sudocode should be like Select worker,   Group by HcmWorker.Person ,order by HcmJob. RecId Desc.

Right now, I have for the same worker multiple JobID.

I am new in AX, and right now, I cannot find where I made mistake and step by step how to fix it.

Right now, I have for the same worker multiple JobID and I need one worker one jobId. 

Thank you.

typeId() replacement in AX 2012

$
0
0

Dear Friends,

How to write the following Ax 2009 code in ax 2012?

Set  set = new Set(typeId2Type(typeid(recId)));

If I write the same as follows, when I compile it does not throw any error but throws the error at run time.

Set  set= new Set(typeId2Type(extendedTypeNum(RecId)));

the error thrown is:

Function Global::typeId2ExtendedTypeId must be called with an extended data type.

Create a Data Entity for a Table That References Itself

$
0
0

I have a table that contains a hierarchy of parent and child records.

ItemField (string 64)
ParentId (refRecId)
RecId (recId)

Attempting to create a data entity on this table returns an error:  "The natural key for the table has a circular reference."

I believe it is possible to create an entity on a self-referencing table, (CustTable.InvoiceAccount references back to itself, and Dynamics releases with a data entity on that table).

Any suggestions?

Thanks,

- Brad

Table Browser error: Object not set to reference

$
0
0

Hi

I can not access Table browser from visual studio.

I get error message : Object not set to reference.

Any configuration i need to do?

Thanks.

JB.

Junction Entity

$
0
0

Hello,

I am trying to create a junction entity between two custom entities i.e. Example1 entity and Example2 entity.

Can anyone please guide me how to create the junction object in Dynamics 365.

Thankyou

dynamics 365 for operations can not sync database after upgrade from 1611 to platform update 4

$
0
0

hi All,

followed the upgrade instruction from WIKI to upgrade our dev server from 1611 to platform update 4

https://ax.help.dynamics.com/en/wiki/upgrade-latest-platform-update/

to unzip, create runbook and install the platform update.

but its failed in DBSync steps.

I try to run DBSync powerscript manually but no luck.

the error message shown "Failed to open SQL connection" in dbsync.log

checked axdbadmin account, it has full rights to access AXDB.

then I skipped the dbsync. all other steps were processed successfully without error.

below is the log I captured from log and event viewer

03/07/2017 19:37:13: Setup mode is "servicesync".
03/07/2017 19:37:13: 2017-03-07T19:37:13.9056959+08:00 Beginning sync step: InitialSchema.
03/07/2017 19:37:18: 2017-03-07T19:37:18.3191471+08:00 InitialSchema finished. Time elapsed: 00:04:413.
03/07/2017 19:37:18: 2017-03-07T19:37:18.3211469+08:00 Beginning sync step: FullIds.
03/07/2017 19:37:18: Using legacy ids where possible.
03/07/2017 19:37:29: 2017-03-07T19:37:29.4842725+08:00 FullIds finished. Time elapsed: 00:11:162.
03/07/2017 19:37:29: 2017-03-07T19:37:29.4872753+08:00 Beginning sync step: PreTableViewSyncActions.
03/07/2017 19:37:29: 2017-03-07T19:37:29.4872753+08:00 Beginning sync step: pre-sync custom action: '<RunFullSync>b__15_0'.
03/07/2017 19:37:59: 2017-03-07T19:37:59.8118618+08:00 pre-sync custom action: '<RunFullSync>b__15_0' finished. Time elapsed: 00:30:324.
03/07/2017 19:37:59: 2017-03-07T19:37:59.8118618+08:00 PreTableViewSyncActions finished. Time elapsed: 00:30:324.
03/07/2017 19:37:59: Failed to open SQL connection
03/07/2017 19:37:59: The operation failed.
03/07/2017 19:48:09: Bindir: J:\AosService\PackagesLocalDirectory
MetadataDir: J:\AosService\PackagesLocalDirectory
Sql scripts:

exceptionDetails:

Microsoft.Dynamics.AX.InitializationException: Failed to open SQL connection at Microsoft.Dynamics.AX.AOS.StartupInternal(String[] Arguments) at Microsoft.Dynamics.AX.AOS.Startup() at Microsoft.Dynamics.AX.AosConfig.?A0x0d73e1d0.GetAosConfig() at Microsoft.Dynamics.AX.AosConfig.Config.InitInternal(Boolean isOfflineMode) at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.StartAosCode(SyncOptions syncOptions, String sqlConnectionString) at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.ExecuteWithinAOS(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Func`1 func, Action`1 errorHandler) at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.RunFullTableSync(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider) at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.FullTableViewSync() at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.FullSync() at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.RunSync(SyncOptions options) at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.Run(String metadataDirectory, String sqlConnectionString, SyncOptions options)
  Message:

Failed to open SQL connection

best regards,

Ken

Stand alone Visual Studio and Dynamics 365 for Operations

$
0
0

In Dynamics Ax 7, there was a way to install and use Visual Studio in a local machine.
Is there a way to use this same technique with Dynamics 365 for Operations?
I've been searching in the web but found nothing.


FormControl Sender object

$
0
0

Hi

When an event is override, the codes are added in a new class e.g

[FormControlEventHandler(formControlStr(SalesCreateOrder, OK), FormControlEventType::Clicked)]
public static void OK_OnClicked(FormControl sender, FormControlEventArgs e)
{}

From the sender, i need to retrieve the customer account and the agreement id.

How to get this data from this object?

Thanks.

Regards,

JB

Cannot create Dynamics 365 from my LCS account

$
0
0

We are Microsoft Dynamics partner since 10 years, and we started using LCS since 3 years. We use it for managing projects, incidents, and many other tasks.

Currently we are trying to use it for creating sample/demo Dynamics 365 project, but we are not getting the options to create Dynamics 365 projects (as mentioned in various articles). We can only see the old list of products (AX, NAV, and CRM)

The account I'm using is "Admin" account linked to our partner account number in PSBC.

What do I need to do to enable Dynamics 365 options?

Thanks,

Adnan Mousa

Replacement of AXd services

$
0
0

As AXd services are depreciated in AX 7  and replaced by Dataentity .

However I am not able to find the corresponding Dataentity for AXD service classes like AXDSalesInvoice,etc....

Can someone  please help me to identify few of these .....

Thanks,

Gaurav Pandey

I need to decrypt a value in SQL that was encrypted in Ax using CryptoApi

$
0
0

Hi everyone

I'm dealing with data in SQL that was encrypted in Ax 2012 using CryptoAPI. Now I'd like to know how to decrypt it inside of SQL, without the aid of Ax. my guess is that the way that I do this is by calling a Windows dll that uses the same algorithm that Ax uses.

My questions are:

- Is what I'm trying to do possible?

- What would the dll be that I would use and where would I find it within the operating system?

- What does the code look like in SQL? (having checked a website or 2, I've come to this. I need the ??? filled in. 'scuse the rough SQL)

CREATE ASSEMBLY ???
AUTHORIZATION dbo
FROM ???
WITH PERMISSION_SET = UNSAFE
GO

CREATE PROCEDURE decryptValue
@key BIGINT,
@pass BIGINT,
@ret NUMERIC AS EXTERNAL NAME ???.decrypt
GO

DECLARE @key BIGINT,
DECLARE @pass BIGINT EXEC DECRYPTvALUE 1111, 1111 PRINT Ret

Thanks

Dynamics365 Development Training for Beginners

$
0
0

HI All,

I am new to Dynamics 365. Infact I have never worked on Dynamics product line. I am c# developer for web api development and desktop applications ranging from winforms to WPF.

I now feel to learn dynamics 365 as desktop applications doesn't seems to have much future. 

I already created on account and started navigation and basics of 365. 

Can anyone suggest me where  i can find the  hands on labs or development tutorials?

What other technologies do I need to learn apart from C Sharp?

Viewing all 17532 articles
Browse latest View live


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