Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all 11285 articles
Browse latest View live

Forum Post: Data Classifications Worksheet ,Data Sensitivity and GDPR

$
0
0
Hello there! I have a question that I was hoping you might be able to help me with, I want to classify data in Data Classifications Worksheet but i cant find all my table object (and its fields) in Data Classifications Worksheet even though DataClassification Field Property in these tables are set as CustomerContent. in other words, these tables are not listed in system table Data Sensitivity (ID 2000000159). Is there any way to update this system table or am I missing something else? Thanks in advance!

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
You would need to utilize the .NET implementation of Message Queues in a Single Instance codeunit in NAV to handle sending and receiving messages. The following code would send a binary message: MessageQueue := MessageQueue.MessageQueue(STRSUBSTNO('FormatName:DIRECT=%3:%1\PRIVATE$\%2',Recipient."TCP/IP Address",Receipient."MessageQueue Name",ProtocolName)); MessageQueue.Formatter := BinaryFormatter.BinaryMessageFormatter(); Msg := Msg.Message(); Msg.BodyStream := InStrm; MessageQueue.Send(Msg); And the following would receive messages: MessageQueue := MessageQueue.MessageQueue(MessageQueueName); MessageQueue.Formatter := BinaryFormatter.BinaryMessageFormatter(); MessageEnumerator := MessageQueue.GetEnumerator(); WHILE MessageEnumerator.MoveNext() DO BEGIN Message := MessageEnumerator.Current; Message.Formatter := BinaryFormatter.BinaryMessageFormatter(); InStrm := Message.BodyStream; // Do something with the message stream MessageEnumerator.RemoveCurrent(); END; variable types (the important ones): MessageQueue = DotNet System.Messaging.MessageQueue.'System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Message = DotNet System.Messaging.Message.'System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' MessageEnumerator = DotNet System.Messaging.MessageEnumerator.'System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' BinaryFormatter = System.Messaging.BinaryMessageFormatter.'System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' I hope that leads you somewhere. Please note, this works from NAV2013 to NAV2018, not in Business Central as dotnet variables are not (yet) supported.

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
Thank you Thomas for responding.But i want the configurations how to install the incoming and outgoing services.Please refer below screenshot for more information.

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
Well, that is "Install MSMQ", right click the "Private Queue" and select "New Private Queue", give it a name and set the permissions. That has nothing to do with NAV itself.

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
I installed MSMQ in computer management Thomas.In GP ,We have configured the Data source and GP company name etc in incoming services config file.Dont we need to configure like this for NAV ?We have more Companies in NAV. How can we decide the NAV Company to get the requests ?.

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
Request for what? What exactly are you trying to achieve? There is no code in standard NAV, which integrates with any message queue services.

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
If we create the customer from Magento that customer data will come under Private Queue-->incoming queue -->Queue messages.then that customer will insert in NAV as Customer which is coming from magento data.we need to intergate the NAV with Message queues.Did u get my point ?.Please check once above pic ,in thta Item data is there.after incoming services are running then the Item Data wil insert into NAV.That is our previous process.

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
Below picture represents the incoming services path which we have given the configurations in GP level Below are the Configurations .Please check once. B_BD is my company name.if i create in Magento it will insert in GP also through Message queue . Im asking like this THOMAS.

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
There is no standard integration between NAV and Magento. You will need to purchase an AddOn which enables your integration between NAV and Magento. Or you need to develop your own. If you develop your own integration, you will need something similar to the code I posted originally.

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
Thomas, Tell me your procedure.it would be helpful for me .

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
Ok Thomas.I have few doubts inthis which you have provided in Code. MessageQueue := MessageQueue.MessageQueue(STRSUBSTNO('FormatName:DIRECT=%3:%1\PRIVATE$\%2',Recipient."TCP/IP Address",Receipient."MessageQueue Name",ProtocolName)); Could you please tell me meanings of those terms. like STRSUBSTNO-----?. FormatName:DIRECT=%3:%1\PRIVATE$\%2------?. or those are required in Message queue ?.

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
STRSUBSTNO is one of the basic NAV C/AL commands. You definitely should learn about NAV development first and do some simple stuff. Working with DotNet types in NAV and integrating with 3rd party solutions such as Magento is stuff I would let doe an experienced NAV developer as this requires in-depth understanding of NAV procedures and data model.

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

Blog Post: Dynamics 365 Business Central: how to check if your Extension is running on a trial tenant

$
0
0
An interesting question in an insider talk some days ago was how to check from AL code if my extension is running on a trial tenant or in a licensed tenant (paid). After a bit of searching inside our lovely C/SIDE, I’ve found the solution to the question: in Dynamics 365 Business Central there are two useful objects useful for that scope: Table Tenant License State (2000000189) Codeunit Tenant License State (2300) The License State table contains details of your tenant license such as Start Date and End Date and the State of your license (that is an option field with the following values: Evaluation,Trial,Paid,Warning,Suspended,Deleted,,,,LockedOut ). To test if this works (and how it works), I’ve written a small function in AL: If you call the GetPeriod method of the Tenant License State codeunit by passing the option value for the state that you need to check, you have as return the remaining days for that state. This function returns -1 if your tenant license is not in the state you have as input. For example, this is what I have if I run this code in a trial Dynamics 365 Business Central Tenant by calling the GetPeriod method with 1 as parameter (State = Trial): If I call the GetPeriod function with 2 as input parameter (State = Paid) this is the return: This could be a quick and easy mode to test if your extension is running in a trial tenant. P.S. I suggest to Microsoft folks to add in the Tenant License State codeunit also other methods to retrieve for example the start and ending date of a license (or a state) without making a query on the Tenant License State table.

Comment on More Message Queues

$
0
0
Hi Ryan, CREATE(CC2); CREATE(MQBus); CC2.AddBusAdapter(MQBus,1); MQBus.OpenWriteQueue('.\private$\TestWriteQueue',0,0); MQBus.SenderAuthenticationLevel:= 2; OutMsg := CC2.CreateoutMessage('Message queue://.\private$\TestWriteQueue'); OutS := OutMsg.GetStream(); OutS.WRITE('Hello world! - WritePrivateQueue'); OutMsg.Send(0) Is above code C/AL commands ?.

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
Thomas, Sorry to disturb u. MessageQueue := MessageQueue.MessageQueue(MessageQueueName); MessageQueue.Formatter := BinaryFormatter.BinaryMessageFormatter(); MessageEnumerator := MessageQueue.GetEnumerator(); WHILE MessageEnumerator.MoveNext() DO BEGIN Message := MessageEnumerator.Current; Message.Formatter := BinaryFormatter.BinaryMessageFormatter(); InStrm := Message.BodyStream; // Do something with the message stream MessageEnumerator.RemoveCurrent(); END; Is above code C/AL Commands or in c # code ?.I copied in the Visual studio . Visual Studio doesn't suggest any Namespaces .I need some clarity on this. Could u please any sample code on this .

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
That is NAV C/AL code to be put into a codeunit.

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
Ok Thomas .Thanks u sooo much for Ur helping and patience.Can i get this into c# ?.

Forum Post: RE: How can i integrate the message queue with NAVISION ?.

$
0
0
Well, would not be of any help. You need to receive the messages in NAV. So having the code in C# is possible but does not get you anywhere.

Forum Post: Due date not editable in customer ledger entries

$
0
0
We have just upgraded to 2018. We see that we cannot edit the Due Date in Customer Ledger entries any more. There is Editable setting in the field properties, page properties or the table. Users have sufficient permissions. This was possible in 2013. What might have changed? I see the "Edit" icon on the ribbon is greyed out.I could make an action from the Ribbon to allow changing it, but would prefer the non-development approach if possible.
Viewing all 11285 articles
Browse latest View live