Quantcast
Channel: Microsoft Dynamics NAV Forum - Recent Threads
Viewing all 19332 articles
Browse latest View live

Need Help to Certificate Authentication For Rest API from NAVISION.

$
0
0

Hi EveryOne am trying to Send Request in Json and get the response from Navision, Am New to Dot.Net Variables.

Below is Code i have Tried So Far

HttpwebreqHan := HttpwebreqHan.WebRequestHandler();
HttpwebreqHan.ClientCertificateOptions(HttpClientCerOpt.Manual);
X509Store := X509Store.X509Store(X509StoreName.My,X509StoreLocation.CurrentUser);
X509Store.Open(X509OpenFlags.ReadOnly);
X509Store := X509Store.Certificates.Find(X509StoreType.FindBySubjectName,'J5UKSH8F',TRUE);
HttpwebreqHan.ClientCertificates();
HttpClient := HttpClient.HttpClient(HttpwebreqHan);

BaseUrl := 'vsdc.staging.vms.frcs.org.fj/.../Sign'; // Added

INvc := '0010001335';
StringContent := StringContent.StringContent(GetJsonInvoice_StructureString(INvc,sas),Encoding.UTF8,'application/json');

HttpClient.BaseAddress := Uri.Uri(BaseUrl);


HttpResponseMessage := HttpClient.PostAsync('POST',StringContent).Result; // Error Coming At this Point


IF HttpResponseMessage.IsSuccessStatusCode THEN
result := HttpResponseMessage.Content.ReadAsStringAsync.Result;

The Error Is Saying like Below


A call to System.Threading.Tasks.Task`1[System.Net.Http.HttpResponseMessage].Result failed with this message: The remote certificate is invalid according to the validation procedure.
---------------------------
OK
---------------------------


Error Creating Assembly BOM using ODATA Web Service (NAV 2017)

$
0
0

I've exposed Page 36 and am using OData to create assembly BOM's.

When I execute the SaveChanges below, I get a crazy error about the item not existing..?? Weird thing is, I first ran this code it ran fine but when I checked  the Assembly BOM in NAV there was an empty line in the BOM. I deleted all the lines in the BOM in NAV and re-ran the code at which time this error started happening.

The error now occurs when I try to add an Assembly BOM to any item. Can anyone shed any light on this problem, additional troubleshooting methods, or services I can restart? I did restart the NAV Server for the instance I'm working with but that had no effect on the error.

 

LocalNAV2017.NAV theNav = new LocalNAV2017.NAV(new Uri(serviceUri));
theNav.Credentials = CredentialCache.DefaultNetworkCredentials;

int lineNo = 10000;
AssemblyBOM newBom = AssemblyBOM.CreateAssemblyBOM("1000", lineNo);
newBom.Type = "Item";
newBom.No = "1100";
newBom.Quantity_per = 1M;
newBom.Unit_of_Measure_Code = "PCS";
newBom.Assembly_BOM = false;
theNav.AddToAssemblyBOM(newBom);

theNav.SaveChanges();


 Here's the Error:

<?xml version=\"1.0\" encoding=\"utf-8\"?><m:error xmlns:m=\"schemas.microsoft.com/.../metadata\"><m:code /><m:message xml:lang=\"en-US\">The Item does not exist. Identification fields and values: No.=''</m:message></m:error>



Payment Journal & Purchase Journal Amount Rounding

$
0
0

We recently did a test upgrade for a customer of ours from NAV 3.7W1 to NAV 2015W1.   When they were testing they discovered that when you put in an amount in either a Purchase Journal or the Payment Journal the system is rounding the decimal part.  Eg, if one put an amount of 453.47 the moment you leave the Amount field the value in there becomes 453.00.  If the amount is say 453.63 the system will round up and the value is changed to 454.00 the moment you leave the Amount field.

I have checked the amount rounding values in the G/L Setup window and the G/L Setup table and the rounding is set to 0.01.

Is there anywhere else I need to look for me to be able to capture the correct amount and not the rounded off one.

Thanks in advance to those who can help.

Interaction via Email or SMS

$
0
0

I want to get user approval for sales invoice via email or SMS. I want to send a mail or SMS to user and he will approve it directly from mail or SMS . Is there any way I can get response into NAV from mail or SMS. I am using NAV 2013.

Hide

$
0
0

Hi

   How to Hide a Field on Request Page in Report. On the basis of condition in User Setup i want to show Hide & Display field.

 

On Openpage i have written this



IF UserSetup.GET(USERID) THEN BEGIN
  IF (UserSetup."Role" <> 'Admin') THEN BEGIN
      IsVisible = FALSE;
  END;
END;

 

Thanks

 

UAE VAT in Dynamics NAV 2016

$
0
0

Hello,

In UAE, VAT is going to be effective early next year.

There is already an in-built VAT feature with the W1 version, however, is Microsoft going to release a localized version for the same ?

Thanks in advance.

Summing purchase lines

$
0
0

Hi,

I have a somewhat complicated report to make and am looking for help.

The value where I have the red X must be:

Highlighted value - (Sum of blue X lines + Sum of black X lines + Sum of green X lines)

Thanks!

Table Filters

$
0
0

Hi friends,

i have put some filters in table  based on location if customers from Madurai i need to show the Madurai customer i  did that for below all location (snap shot)

 

but i have to show all customers for CORP- corporate office i need to take filter for CORP unfortunately filters appying for CORP also

this is my table filter

please give any solution to remove filter only for CORP.

thank you in advance


Consuming against the correct Ledger Entry for Return Shipments

$
0
0

Hi All,

In this scenario we have created a Production Order from a  sales order which was created from a Sales Return Order. When we consume the AS Item and look at the applied entries it is consuming against old stock and no the sales return receipt it was intended to be used for.

In the picture below the Sales Return Receipt (Entry No. 707567)  had WO-15019 created for it. We can see consumption done on the AS below (Entry No. 717263).  We consume an AS with a blank variant to create the same as with an RMA variant. 

In the applied entry for the Output we can see it has entry no 

Where in the code can I ensure the correct entry is applied? 

Thanks

Business Pack or Enterprise Pack

$
0
0

Hi Experts

Quick question, is there a production journal in NAV 2017?

If yes, will I be able to access it with just the starter / business pack?

TIA

Alvin Roy V. Sano

Events area - insert new Events into standard part of MS NAV (posting procedure for Production, Assembling and Job, ..)

$
0
0

Hi All.

I have question for Events area - I heard in several videos from Mark Brummel that it is possible somehow to request information to Microsoft about inserting of new Events into several standard NAV business-procedures and if guys from MS approve itAnd it maybe come in next releases..

E.g. I have 0 Events for production and assembling posting procedures and it is good to have at least OnBeforePost... and OnAfterPost.. - it is means that posting for exact document just started or just finished. it is not needed to catch INSERT event for ILE or PoshedHeaderXXX.

BR, Yuriy

Navision Developer License

$
0
0

How to get Microsoft Dynamics Navision developer license.

Dynamics NAV 2018 don't delete temporary file after compilation of report

$
0
0

Development environment creates temp files when compiling reports, but don't delete them.

Files are created in folder C:\Users\USER\AppData\Local\Temp\Microsoft Dynamics\

For each report compilation created unique folder. Each folder size is ~24MB.

So, compiling reports you can run out of space on drive C: very fast.

Can anybody check this issue?

May be problem with my installation...

Trial Balance Account Number Ordering.

$
0
0

We recently did a test upgrade for a customer of ours from NAV 3.7W1 to NAV 2015W1.    When we print the trial balance in NAV 3.7 it is printing with the ideal account number ordering as below:
1000

1002

1030

1040

.....

10100

10200

10300

However after we did a test upgrade and we try to print the Trial balance the account numbers come out ordered in a funny way as bellow:

1000

1002

10100

10200

1030

10300

1040

What setting does one need to change so that the account numbers appear in the correct order as in NAV3.7 setting.

Thanks in advance to those who will assist.

Dynamics NAV 2013 High availability

$
0
0

Hi,

Currently we are having Microsoft Dynamics NAV 2013 and SQL Server on the same server and AD also in the same server. we are planning to setup redundancy in the second server.

As per Microsoft we can't have windows cluster and AD on the same server. so we planned SQL mirroring for the back end, but can you suggest how to get setup Dynamics NAV 2013 in redundancy mode.

Regards,

Mani


How to sum purchase lines

$
0
0

Hi,

In a report I have a purchase line DataItem and have a column called quantity. This prints out the quantities of all my purchase lines.

What I want to do is sum up all the quantities and assign the total to a variable. How do I do this?

Thanks!

No. of licensed users and idle users in NAV 2015

$
0
0

Hi All,

How to know the no. of licensed users in NAV 2015 application and how to identify the idle users in NAV 2015? It would be great if someone can help me on this.

Thanks,
Jithin.

How to set document type is mandatory for all type of " account type" available in list except the "G/L Account"

$
0
0

Dear Experts,

In bank receipt voucher

I want to set "Document Type" as a TESTFIELD for all account type except the "G/L Account". where i need to write the condition and please provide me the tips to write the condition.

How to set MS Dynamics Navision Classic or RTC to generate Sales Quotations?

$
0
0

We are using Navision classic client 2009 and RTC 2009. I would like to know if we can set the system to generate quotations based on the products in the database. Please highlight how to do this. You may provide link to where this topic has been discussed.

Need Report Filter to be set automatically

$
0
0

Hello,

On our sales order page there are buttons to run a variety of reports. When selected these reports will use the current Sales Order No (Number) in the No. filter for the report. I want to add another report that also does this.

I've been able to add my own report to the page but it doesn't set the filter on its own. It seems the RunObject property needs to be left undefined for this to work, but then I can't set which report to run.

How does one specify which report they want run while also having it filter by the current No. Its worth noting I can only edit C/AL code for the report itself, I am unable to open the editor for Pages.

Thanks

Viewing all 19332 articles
Browse latest View live


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