Quantcast
Channel: Forums - Recent Threads
Viewing all 143529 articles
Browse latest View live

Retail POS SDK 2012 - Custom payment handling

$
0
0

Hi all,

How do I simulate a cash payment tender as per the standard POS functionality?

Reason is, I added custom functionality within frmPayCash that relies on reading the actual user entry with the purpose of ultimately placing it into the transaction for subsequent processing (during saving, printing, etc.).

I've extended the standard PaymentTriggers project and my code looks like this at the moment (code abbreviated for simplicity):

public void PrePayment(IPreTriggerResult preTriggerResult, IPosTransaction posTransaction, object posOperation, string tenderId)
{
	switch ((PosisOperations)posOperation)
	{
		case PosisOperations.PayCash:
			PayCashConfirmation confirmationRequest = new PayCashConfirmation();
			frmPayCash payCashForm = frmPayCash(confirmationRequest);
			PosApplication.Instance.ApplicationFramework.POSShowForm(payCashForm);
			PayCashConfirmation confirmationResponse = payCashForm.GetResults<PayCashConfirmation>();
			if (confirmationResponse.OperationDone)
			{
				transaction.PartnerObject = payCashForm.CustomDataObject;
			}

			// Somehow simulate the PreRegisterPayment and OnPayment triggers
			???

			// This cancels the entire operation
			preTriggerResult.ContinueOperation = false;
			break;
		...


 

If I set ContinueOperation to false then the entire payment is cancelled.  If I set it to true then frmPayCash is displayed again by the standard POS functionality.  Hence why I'm looking to simulate the standard POS functionality (which may be a part cash payment or a finalised cash payment).

Any advice is welcome.

Thank you,

John


Scan a document

$
0
0

I need to scan a document to a folder and then for AX to find a document within the folder and attach it to the sales order, with the reference point being the picking list number as the file name

as an example i need to scan a document and by using the image id i need to automatically pick it into a sales order. 

Accounts Schedules based on GST Product Posting Group

$
0
0

Hi Experts,

Can we create Accounting Schedule report for a specific GL Account categorising it by GST Product Posting Groups (GST 7%, GST 0%), so that we can compare the value with the GST Statement report.

Thanks in advance.

PGP encryption

$
0
0

Hello Dynamics community,

Recently I have been working on a requirement to generate a flat file from D365 Operations, and then encrypt and sign using PGP.

I came across lot of samples to that using third party libraries ex. BouncyCastle, but they are mostly of the file stream, using a local file stream.

I tried to play around and convert to MemoryStream if I can get to work with D365 on cloud.

Has anybody got it to work with D365 Operations in cloud ?

I appreciate any input.

Thanks in advance.

How to open a Project which You have got send

$
0
0

Hi Community,

a friend of mine has worked on a Project and send it to me.

I put it in my Visual Studio Projects Folder. When I try to open the Folder

File/ Open/ Project-Solution... I choose the Folder and get the following Warning:
One or more Projects in the solution were not loaded correctly. Please see the Output Window for Details.

with this Output:

C:\Users\Administrator\Documents\Visual Studio 2015\Projects\ID004653_SalesInvoiceReport\ID004653_SalesInvoiceReport\ID004653_SalesInvoiceReport\ID004653_SalesInvoiceReport.rnrproj : error : Project node name 'AxLabelFile\SECInvoice_Labels_de' is invalid.

 

What is suspicious to me is that the Microsoft Visual Studio File is only 1KB.

Convert Case to Work Order default behaviour

$
0
0

Hi Guys,

I am converting a Case to Work Order from the Case form and what I noticed is that the address on the Work Order is auto populated from the Account (address) on the Case.

How can I stop this default behavior?

Thanks in advance!

Fetching the amount of a specific selected SalesLine Field in Navision

$
0
0

I have created a document page using Salesheader and SalesLine Tables. SalesHeader is used as a card page and SalesLine is used as a ListPart Page and I have linked them through No. and Vendor No. fields of SalesHeader and SalesLine Respectively and Open field of SalesLine which should be yes. So for a specific vendor only its specific SalesLine are displayed.Now I want to create an action where on clicking a specific SalesLine for that VendorNo. I can fetch its amount and display it as a message. Howcan I do that in Microsoft Dynamics Navision?

Duplication of Distribution amount In the Purchase Order Invoice (Ax 2012)

$
0
0

In the Purchase Order Invoice, the system is duplicating the distribution amount in some scenarios? The invoice is become wrong after posting. Why the system is duplicate the distribution amount and how to fix this issue?


Sales Tax calculation is wrong in Purchase Order Invoice Ax 2012

$
0
0

Dear All,

In the Purchase Order invoice, If the line is having retention amount, then the sales tax is calculated wrongly.

The total amount is 68057.00, we have applied 5% for all lines. The sales tax must be 3402.85. But the System calculates as -884.65.

Is there any setting to get the correct sales tax amount?

Posted Sales tax, The calculation of the sales tax is as below.

Fetching the amount of a specific selected SalesLine Field in Navision

$
0
0

I have created a document page using Vendor and VendorLedgerEntry Tables. Dats from Vendor is used as a card page and data from VendorLedgerEntry is used as a ListPart Page and I have linked them through No. and Vendor No. fields of Vendor and VendorLedgerEntry Respectively and Open field of VendorLedgerEntry which should be yes. So for a specific vendor only its specific VendorLedgerEntry lines are displayed.Now I want to create an action where on clicking a specific VendorLedgerEntry for that VendorNo. I can fetch its amount and display it as a message. How can I do that in Microsoft Dynamics Navision 2018?

Fetching the amount of a specific selected VendorLedgerEntryLine Field in Navision

$
0
0

I have created a document page using Vendor and VendorLedgerEntry Tables. Dats from Vendor is used as a card page and data from VendorLedgerEntry is used as a ListPart Page and I have linked them through No. and Vendor No. fields of Vendor and VendorLedgerEntry Respectively and Open field of VendorLedgerEntry which should be yes. So for a specific vendor only its specific VendorLedgerEntry lines are displayed.Now I want to create an action where on clicking a specific VendorLedgerEntry for that VendorNo. I can fetch its amount and display it as a message. How can I do that in Microsoft Dynamics Navision 2017?

How to restrict business Unit For particular user in ax 2012

$
0
0

Hi Experts,

My requirement is, In sales order form Line Detail Tab  ->  Financial dimension -> Business Unit, User can able to select only assign business unit, another business unit he can not able to see. For that i created one query and assign the range , and create new police and give the role for particular user.

Now user can select only assign business unit, but he can able to see another business unit also.

And my requirement is he can not see the another business unit.

For Example:

I give the "PU01" range for the  particular user and user can see only "PU01" range, another lookup business unit he can not see.

Please help me

Thanks and regards

Rahul

AX7 Environment startup issues

$
0
0

Hi

The Test environment I am working on is giving me a "HTTP Error 503. The service is unavailable.". This is on an application release 7.3 and platform update 12

When I look at the event logs I am seeing these errors and warnings:

Failed to create a metadata service client in 5 attempts.

Received the following exception when contacting the AX Metadata Service possibly due to expired token. Attempted to retry the operation 5 times with no success. The HTTP service located at localhost/.../MetadataService is unavailable. This could be because the service is too busy or because no endpoint was found listening at the specified address. Please ensure that the address is correct and try accessing the service again later.

Metadata service communication retry attempts failed to resolve issues with the following settings AX7CertificateUserName: FRServiceUser@dynamics.com; AX7CertificateThumbprint: CB3BDAE89EFA5B268A3ED88D2C5A96EBF9C791B5; AX7FederationRealm: spn:00000015-0000-0000-c000-000000000000; AX7ProviderName: mintedtoken.dynamics.com; AX7TokenIssuer: fakeacs.accesscontrol.windows.net
Component: Microsoft.Dynamics.Integration.Common.TraceLog
User: NT AUTHORITY\NETWORK SERVICE

The description for Event ID 110 from source Microsoft Dynamics 365 for Finance and Operations, Enterprise edition cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

AX is shutting down due to an error.
Error initializing X++ event handlers. Please verify that application is deployed and compiled correctly. Error messages follow:
An exception was encountered while initializing event handler initializer 'InitMethod' on type 'Dynamics.AX.Application.EventHandler.EventHandlersInitializeClass, Dynamics.AX.eBECSextension, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'Dynamics.AX.Application.WPPWorkOrderStatusUpdate' from assembly 'Dynamics.AX.ApplicationSuite, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Exception details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Dynamics.Ax.Xpp.EventHandlerInitializationException: An exception was encountered while initializing event handler initializer 'InitMethod' on type 'Dynamics.AX.Application.EventHandler.EventHandlersInitializeClass, Dynamics.AX.eBECSextension, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. ---> System.TypeLoadException: Could not load type 'Dynamics.AX.Application.WPPWorkOrderStatusUpdate' from assembly 'Dynamics.AX.ApplicationSuite, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
at Dynamics.AX.Application.EventHandler.EventHandlersInitializeClass.InitMethod()
--- End of inner exception stack trace ---
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.<>c.<InitializeMetadataEventHandler>b__58_0(MethodInfo eventHandler)
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.InitializeMetadataEventHandler()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Dynamics.AX.AOS.StartupInternal(String[] Arguments)

Has anyone seen this before? Any help would be much appreciated.

Thanks,
Joe

Show Field Monitoring in Form

$
0
0

Good Moring.

Is ist possible to show the Monitoring of a Field in the Form?

It is importand to us to see if the Value of the Field changes and puting the Monitoring on Form would be the best way!

Thank you!

Can not change created custom Status Reason via JavaScript

$
0
0

Hi there experts.
I have changed salesorder entity and create a new status reason in Submitted.
I have added a status reason named PreTransport in submitted state, with value 100000004.
I can go from Active state(pending status reason) to Submitted state(In-Progress) via this call web service : 

     var request = ""
               request += "<s:Envelope xmlns:s=\"schemas.xmlsoap.org/.../envelope\">";
               request += "  <s:Body>";
               request += "    <Execute xmlns=\"schemas.microsoft.com/.../Services\" xmlns:i=\"www.w3.org/.../XMLSchema-instance\">";
               request += "      <request i:type=\"b:SetStateRequest\" xmlns:a=\"schemas.microsoft.com/.../Contracts\" xmlns:b=\"schemas.microsoft.com/.../Contracts\">";
               request += "        <a:Parameters xmlns:c=\"schemas.datacontract.org/.../System.Collections.Generic\">";
               request += "          <a:KeyValuePairOfstringanyType>";
               request += "            <c:key>EntityMoniker</c:key>";
               request += "            <c:value i:type=\"a:EntityReference\">";
               request += "              <a:Id>" +recordGuid+ "</a:Id>";
               request += "              <a:LogicalName>salesorder</a:LogicalName>";
               request += "              <a:Name i:nil=\"true\" />";
               request += "            </c:value>";
               request += "          </a:KeyValuePairOfstringanyType>";
               request += "          <a:KeyValuePairOfstringanyType>";
               request += "            <c:key>State</c:key>";
               request += "            <c:value i:type=\"a:OptionSetValue\">";
               request += "              <a:Value>"+stateCode+"</a:Value>";
               request += "            </c:value>";
               request += "          </a:KeyValuePairOfstringanyType>";
               request += "          <a:KeyValuePairOfstringanyType>";
               request += "            <c:key>Status</c:key>";
               request += "            <c:value i:type=\"a:OptionSetValue\">";
               request += "              <a:Value>"+statusCode+"</a:Value>";
               request += "            </c:value>";
               request += "          </a:KeyValuePairOfstringanyType>";
               request += "        </a:Parameters>";
               request += "        <a:RequestId i:nil=\"true\" />";
               request += "        <a:RequestName>SetState</a:RequestName>";
               request += "      </request>";
               request += "    </Execute>";
               request += "  </s:Body>";
               request += "</s:Envelope>";
               //send set state request  
               var req = new XMLHttpRequest();
               req.open("POST", Xrm.Page.context.getClientUrl() + "/XRMServices/2011/Organization.svc/web", true)
               // Responses will return XML. It isn't possible to return JSON.
               req.setRequestHeader("Accept", "application/xml, text/xml, */*");
               req.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
               req.setRequestHeader("SOAPAction", "schemas.microsoft.com/.../Execute");
               var successCallback = null;
               var errorCallback = null;
               req.send(request );


But It does not work from In-Progress to PreTransport that are in the same state.
I suppose that it because of permission.
Should I set Permission on this new status reason?
If yes How can I do this? 
Note that I have CRM 2011 on-premise .


Missing attachments from Email Templates preventing solution imports

$
0
0

Just wondering if anyone has encountered the following. My solution import from my Sandbox started failing yesterday. I looked into the error and it was due to what I presume was corruption on the attachment records for all the email templates I have previously set up. I can see the attachment record(s) in the grid at the bottom of the email template, but they are all blank. Unfortunately Dynamics errors and doesn't let me delete the attachment record or even the email template.

I get the following error when trying to delete the attachment record or the email template.

<s:Envelope xmlns:s="schemas.xmlsoap.org/.../envelope"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring xml:lang="en-US">No object matched the query:
delete from [Attachment]
OUTPUT DELETED.[AttachmentId], 1002
into SubscriptionTrackingDeletedObject (ObjectId, ObjectTypeCode)
where ([AttachmentId] = @AttachmentId0)</faultstring><detail><OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance"><ActivityId>a5211ffd-94cb-467f-8b73-09934ad27405</ActivityId><ErrorCode>-2147220969</ErrorCode><ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic"><KeyValuePairOfstringanyType><a:key>ApiExceptionSourceKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">Plugin/Microsoft.Crm.ObjectModel.ActivityMimeAttachmentService</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiOriginalExceptionKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">Microsoft.Crm.BusinessEntities.CrmObjectNotFoundException: No object matched the query:
delete from [Attachment]
OUTPUT DELETED.[AttachmentId], 1002
into SubscriptionTrackingDeletedObject (ObjectId, ObjectTypeCode)
where ([AttachmentId] = @AttachmentId0) ---&gt; Microsoft.Crm.BusinessEntities.CrmObjectNotFoundException: No object matched the query:
delete from [Attachment]
OUTPUT DELETED.[AttachmentId], 1002
into SubscriptionTrackingDeletedObject (ObjectId, ObjectTypeCode)
where ([AttachmentId] = @AttachmentId0)

I can't think of anything odd happening to make this happen. These email templates have not been touched for sometime. My sandbox instance is a backup of production be it some months old. All the email templates in my sandbox look fine and are exactly what I would expect with the attachments intact.

I am using hosted Dynamics CRM v9.

Any clues? This is preventing me from applying any solution upgrades from my sandbox to production.

Installation Error for Field Service Integration solution

$
0
0

Hi,

I am trying to install the Field Service Integration solution from AppSource to my crm instance but gives me this error.

It will be helpful if you can provide me with some solution for this error.

Thanks in advance!

Intercompany only create outbox transaction for Sales Invoice (Not for Purchase Invoice)?

$
0
0

Hi everyone,

I am not sure about lastest NAV, but in NAV 2009,

when Posting Sales Order (or Sales Invoice), a Sales Document of Order (or Invoice) will be created in IC Outbox Transactions.
But when Posting Purchase Order, only Purchase Document of Order is created in IC Outbox Transactions.
Could anyone tell me the reason why there is difference here between Sales and Purchase?

Thank you.

How to see which Azure DB is currently used by D365

$
0
0

Hello,

How can I see which azure database is used by the D365 environment?

There are several db instances under "Database" node in SQL studio with names of random characters. So, I was wondering where is it setup that the d365 should use "this" db and not another.

Thanks.

Dynamics Data Importing Help

$
0
0

Just recently started using Dynamics 365 and noticed the import tool does not work very well.

We use PCA predict which is an address lookup software that populates clean addresses during data entry and also we have a number of lookup fields. Therefore when i tried to import some of the fields Contacts/addresses I keep receiving errors due to the lookup fields. 

Could anyone suggest what to do, or is there a reasonable tool to buy to assist with these imports as we have alot of data from third parties sent via CSV files that need to be imported into the CRM on a daily basis. 

Viewing all 143529 articles
Browse latest View live




Latest Images