Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all 10032 articles
Browse latest View live

Save report as pdf and send as e-mail

$
0
0
Hi experts,

On Business Central cloud, I have made my own report in my own extension.

I need to add an option for the user to select, if the report should be printed as normal or if it should be sent as an e-mail with a pdf document attched.

I don't want the user to select, where the pdf document should be saved during the process or what file name it should have. When the user selects "Send report as e-mail" on the request page of the report, the e-mail program should pop up with the pdf document attached to a new e-mail, that hasn't been sent yet. Then the user can enter some text and send it manually.

After that the pdf document should only be in the e-mail and not on any disc.

How do I do that?

BC140 Start-NAVServerInstance: "The system is currently updating, try to connect later"

$
0
0
We have four NAV servers. After a restart, we have the following warning on the heavy load NAV servers for about half an hour when we try to connect:


Microsoft Dynamics 365 Business Central
The system is currently updating, try to connect later
OK

Can we make changes in the Configuration, or what is the problem?

Odata Service Reference

$
0
0
Hi all,

Recently we've made a migration to a new server with Dynamics Business Central 365.
We have a internal application in c# that uses Odata to Update/Delete information between NAV and c#

When i try to update the service it gives me this error
svr7zgdhlx0p.png

I also changed some IIS configurations accordind the old server.
Enabled Windows authentication and Enable PRoviders Negotiate and NTLM by this order.
I restarted the server and it worked, but then it stoped.



Also I got this.

w1p3gs8gfhy3.jpg

With old server i've got no problem

Any help would be apreciated thanks.





SSRS report to PDF

$
0
0
I'm looking for a way to silently print an SSRS report to a PDF from within NAV. I'd prefer to use a call to the SSRS URL or NAV DotNet. I've looked at the Microsoft.ReportViewer.WebForms assembly but can't find enough info to be able to tell if that would work. I can call the SSRS URL but it pops up a web browser which isn't preferred.

I already have the code to print the PDF to a printer working so just need this piece.

Thanks,
Jon

Returning Multiple Value on ODATAv4

$
0
0
Hello Everyone,

Is there any way to return multiple value on procedure in codeunit shared using ODATAv4 in Business Central on SaS ?

For Example i create a simple function to return Description and Description 2 of the item.

First, i tried variable parameter below and had no luck.
procedure GetItemAndDescription(ItemNo: Code[20]; var Description: Text[50]; var Description2: Text[50])

Second, i tried using Array return value and still no luck.

Please help. Thanks.

New Workflow Event

$
0
0
Hi!

I'm trying to creata a new workflow event (In BC 17.5.22499.22680) using the guide at https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-walkthrough-workflow-events-responses but I'm having some problems.
In the guide the this procedure doesn't return any data when called.
{
procedure MyWorkflowEventCode(): code[128];
begin
end;
}

When used I get an error saying that the function name is missing in workflow step when the function WorkflowEventHandling.AddEventToLibrary is called with the procedura as a parameter.

If I modify the procedure to look like other examples I have found on the internet like this

{
procedure MyWorkflowEventCode(): code[128];
begin
exit(UpperCase(MyWorkflowEventCode));
end;
}

I get an error saying "Excessive recursion has been detected in event subscriber function AddMyWorkflowEventsToLibrary for event None that is raised in CodeUnit 1520."

So, please, any input to get me through this?

Install apps from MarketPlace on on-premises environments

$
0
0
The option is there, so I feel it should be possible...

If I start an on-premises web client, I can go to the Extension marketplace and select an app. I fill out my data, Then, when I want to start installing it, the system gives me the following message:

"Installation of extensions from the marketplace is not supported for your system configuration. For more information, see https://docs.microsoft.com/en-us/dynamics365/business-central/ui-extensions"

So, what is wrong with my system configuration? It's totally default installation (so, windows logon, cronus database, I installed our own license), and I seem unable to find what the prerequisites are to get this going.

API / ODATA BATCH PATCH requests with decimal values

$
0
0
Hi all,

I have an ongoing project where an external system is using custom API's to update jobs in our Business Central (Onprem, 16) system.

Everything has been going fine until we start trying to use a combination of batching and numbers with decimal values in them. Send a single non-batched request with decimals - everything is fine. Send a batched request with a decimal value and it does not seem to like it.

For example the following request (Slightly modified example) works:
PATCH https://bc365test:7048/BC160/api/mycomp/jobs/v1.0/jobServiceLines('JO00003','SV01')?company=xyz
If-Match: "*"
{
    "lineamount": 400.2
}
... but when batching requests like so:
POST https://bc365test:7048/BC160/api/mycomp/jobs/v1.0/$batch
{
    "requests": [
        {
            "method": "PATCH",
            "url": "jobServiceLines('JO00003','SV01')",
            "headers": {
                "company": "xyz",
                "Content-Type": "application/json",
                "If-Match": "*"
            },
            "body": {
                "lineamount": 400.2
            }
        }
    ]
}
I get the response:
"error":{"code":"BadRequest","message":"Invalid Request Body  CorrelationId:  xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx."}
If I just send an integer "lineamount" value it works fine.

Has anyone come across this or have any work-arounds (Short of making it a string value and parsing it in BC when I receive it)?

TIA
Heidi

Salesconfirmation as E-mail, want non-modal mode

$
0
0
Hi,

On a NAV 2018 with Continia Document Output users complain that the Confirmation to Email action is run in modal mode.
When user hits that button, it takes around 5-7 seconds to generate the outlook mail Window (the waiting time is bugging customer too). As soon as the sales confirmation window is up with the pdf attached, that window is locking NAV from other interaction. Is it possible to start this email in a non-modal mode?

Intercompany Transaction Add-Ons in NAV

$
0
0
Hi All,

Could you please suggest some Add-ons that will help the Intercompany Transactions in NAV?


Thanks in advance,
Jacob.A

Add filter on request page on report

$
0
0
Hi experts,

I have made my own report in my extension on Business Central cloud.

I have a button that is used to call the report and save it as a pdf-file. To do that, I call the request page first and then run the report.

If the user has a filter on the list page, it must be copied to the request page on the report. And if the user has not a filter on field X, it must be added with the value from field X in the current line.

I do this:

MyLine.CopyFilters(Rec);

if MyLine.GetFilter("X") = '' then begin
MyLine.SetFilter("X", '%1', Rec."X");
end;

XmlParameters := Report.RunRequestPage(50102);

if XmlParameters <> '' then begin
TempBlob.CreateOutStream(OStream, TextEncoding::UTF8);
Report.SaveAs(50102, XmlParameters, ReportFormat::Pdf, OStream);
...

How do I copy the current filter from the list page to the request page?

(The special thing about this report is that it prints several lines from the list page, the user is in.)

Hope you can help.

Aged Accounts Receivable Print to Excel Should not show preview

$
0
0
I would like help in getting the Aged Account Receivables report to not show the preview when the Print to Excel option is selected. In the old versions it use to not show, because of the code in the OnPreSection.
Any help would be very much appreciated. The version I am working with is NAV 2013.

How do we register down time for machine or work centers? We work with Microsoft DynamicsNAV 2013 R2

$
0
0
Hello! We are learning about machine and work centers. One question that came up is -how do we tell Nav one of our machines(machine center) is down? before production orders are released or once they have been released.
Also, does Nav auto allocate the capacity to another machine once we register the first one is down?
Input is appreciated! Thanks!

How to link a dataitem with record variable and fetch fields of record variable.

$
0
0
Hi all, I am trying to create a report with dataitem trans.sales entry and record variable with trans. Infocode entry.
I want two records "amount" and " information" from trans. Infocode entry. I have given filter of setrange of transaction no. on OnAfterGetRecord() of report dataitem trans sales entry.
Please help me to link these two and fetch records from rec variable.

Error when run customized report "Adjust Exchange Rates"

$
0
0
In Dynamics 365 Business Central OnPrem, when we try to run Adjust Exchange Rates report we get an error "The value "409*" can't be evaluated into type Integer".
The report is not the standard one. We copied the standard one and add some changes.
The problem is I cannot figure out where the error comes from.

When I clicked the report directly the error pop-up. (no request page appears)
I tried to investigate with debugger but it doesn't stop at the error.

Do you have any insights about this error ?
What could be the cause ?

Please, help !

Discounted Unite price Automatically

$
0
0
Hello ;,

how can discounted NexLine on sales order for the some Item code and some delivery date Automaically ,but discounted with apply Level , its mean when creat order and get Item in the first Line (10000) its equal level 0 , so for the second line (20000) Equal level 1 then uniteprice deucted by -100 decimal Amount get from customer Card (Customization Field) so its repeat for nexte level (1---4) level's) , and for next line befor the mast level unit price set the unit price in the last level her level 3.

Dynamics Navision 2016.

Thank you

Power Automate integration with BC SaaS

$
0
0
Hi,

we are using BC (SaaS) and HRCloud (SaaS) and their is a business requirement to have integration between HRCloud and BC (SaaS), now the HRCloud (SaaS) is going to get a connection for Power Automate, and since Power Automate (MS Dataverse, right?) is integrated with BC, is it possible to enable the integration from Power Automate to BC (best would be bi-directional integration)?

Thank you
BR Damjan

AWS Signature Version 4 - BC Cloud for AWS API

$
0
0
Hi all,

This question is for latest BC cloud implementation.

Has anyone had experience with calling an AWS API which requires a signing key for Signature 4 without using a .net dll?

It needs to use an algorithm of HMACSHA256. Which is fine, as it is possible to do this via the GenerateHash function within the Cryptography Management codeunit. However, it looks like due to the way it returns a text string it causes an issue when you need to reuse the return as a key to your next hash request.

For AWS you creating a signing key via the following (HMAC function param. is (Key, Value):

kSecret = your secret access key
kDate = HMAC("AWS4" + kSecret, Date)
kRegion = HMAC(kDate, Region)
kService = HMAC(kRegion, Service)
kSigning = HMAC(kService, "aws4_request")

I have translated this in BC code as follows:

KDate := CryptographyManagement.GenerateHash(SignDate, Secret, HashAlgorithmType::HMACSHA256);
KRegion := CryptographyManagement.GenerateHash(Region, KDate, HashAlgorithmType::HMACSHA256);
KService := CryptographyManagement.GenerateHash(Service, KRegion, HashAlgorithmType::HMACSHA256);
KSigning := CryptographyManagement.GenerateHash(Signing, KService, HashAlgorithmType::HMACSHA256);

KDates gets the right return result, but this has been converted into a string rather than the Byte array required in the next call. When I call the next function to get "KRegion", I get the incorrect result.

The AWS example is for the following data:

Secret = 'AWS4' + 'wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY'
dateStamp = '20120215'
regionName = 'us-east-1'
serviceName = 'iam'

KDate should return "969fbb94feb542b71ede6f87fe4d5fa29c789342b0f407474670f0c2489e0a0d", which is does, so I thought it would be all working.

However, when you call the next it does not match, it should return '69daa0209cd9c5ff5c8ced464a696fd4252e981430b10e3d3fd8e2f197d7a70c'.

In C# this works as expected, but this does not convert the result its return back when doing the next hash algorithm. So it could work if could call the correct .net library, but the mains one that "Generatehash" uses are not available on cloud version.

I'm starting to think an azure function will be required, but if anyone has any experience with this that would be of great help!

Thanks in advance!

Is there anyway to set up a repeating reminder/notification to do something in NAV 2016

$
0
0
My client wants to be reminded each month to Bill out certain Blanket Orders or each year to bill an annual fee. Something like a recurring appointment in Outlook. I don't believe this exists in NAV2016 or even later releases, but I want to make certain. I know they can set up reminders in Contacts or use the Service module, which actually may be a fit for them, but they want something like putting a reminder on the customer or on the blanket order. Notifications just seems to be a one time thing.
Thanks,

GL lines

$
0
0
Hello! When posting an invoice it i ssummarizing my lines. I am aware this is because of the localization, but what code do I need to amend to fix this? I coudltn find anything in codeunit 90..?
Viewing all 10032 articles
Browse latest View live