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

Calling Azure Function from Container

$
0
0
Hi all,

Did anyone have situation when he needs to call Azure function (run locally) from BC container?

I suppose that we need to call outside address?

Thanks

How to send an email from Business Central Spring Release 2019 through the user's Office 365 account

$
0
0
Hello,

I would like to send an email from BC 14 (Spring Release) without using the SMTP setup, and using the user's Office 365 authentication.

I want to do so in order to let the user retrieve the emails sent from BC inside their "Sent email" folder, without having to manually open Outlook.

I can't figure out how to do this, the only method I know to send an email is through the SMTP Mail codeunit's method CreateMessage. I see that the codeunit now provides a new method called ApplyOffice365Smtp, but does it actually make it so that the email is sent by the Office 365 email set in the user setup?

I can't find much documentation on this matter, can somebody provide a link?

Thank you for the help

summarized Remaining Quantity differs "sometimes" from summarized Quantity in Item Ledger Entry

$
0
0
Hi all,

Using CU23 of Dynamics NAV 2017 I have come across the problem, which I couldn't reproduce even with the Item No. that has got the problem with Item Ledger Entry.

The problem is, that in some unidentified cases, the Remaining Quantity seems to differ from Quantity, when summarized and so the items with this problem are throwing error, when inside a Shipment or Invoice document and the user tries to post the document.

I have written a short SQL script, just to double-check which Items are having this problem, and this shows a low count of different items, where the Quantity differs from Remaining Quantity. We are talking about a live company with over 45 000 records in Item table (!!!), and the result displays at the moment 8 different items, but still it is unclear, how this can happen.
SELECT SUM([Quantity]) as Quantity,SUM([Remaining Quantity]) as [Remaining Quantity],[Location Code],[Item No_]
  FROM [dbo].[Cronus$Item Ledger Entry]
  group by [Location Code],[Item No_]
  HAVING
  SUM([Quantity])<>SUM([Remaining Quantity])
  order by [Location Code],[Item No_]

I have gone through all the Where-Used information regarding Remaining Quantity, I have created flow-charts and call-stack graphs regarding the complete item ledger entry creation and modification process, checked customizations and standard code as well, checked available cumulative updates also, have discussed this story with senior consultants, but no answer, so I am turning to this Community, in hope of a usefull answer to be received.

How come, this can be happening? How to avoid it? If there is a hotfix or cumulative update fix for this, please let me know!

Thank you in advance,

Best regards,

Gyula

Nav 2017 - Disabling notifications from responses i workflow

$
0
0
Hi
What would be the best way to disable notifications from these workflow responses: CANCELALLAPPROVALREQUESTS, REJECTALLAPPROVALREQUESTS and SENDAPPROVALREQUESTFORAPPROVAL. One option would be to disabling codeunit 1509 from the jobque...Another would be creating 3 new responses without notifications, but that seems to be a bigger job....

Export to multiple sheet in excel - Nav 2018

$
0
0
I'm looking for an exemple of how to export data to excel in Navision 2018 using multiple sheets.
We have a custom report for one of our client in nav 2013 R2 that export orders informations to different excel spreadsheet.
Now that we are upgrading them to 2018, the code is not working anymore

Here is part of the code in 2013 R2 that is working fine:
ExcelBuf.OnlyCreateBook('ABC', 'ABC',COMPANYNAME, USERID,TRUE);
ExcelBuf.DELETEALL;

Here is the error message we get in 2018 when running the same report
2kpieei71xe2.png

Here is where in the code of the excel buffer table it's failing
51gur3l85zeb.png
l6skgsc9tvh1.png

Subform in Request Page

$
0
0
Hi
I would like to embed a subform in a report request page and from the report access a function in the subform.
Is this possible? It is in NAV 2015.
I though that CurrReport would expose the controls but unfortunately not!

Scanner lector de Códigos de barras

$
0
0
Buenas noches:

En mi empresa estamos intentando integrar unas pistolas PDA para poder implementar el almacén avanzado. Para esto, hemos adquirido una PDA CK3X de Intermec con un sistema operativo Windows Embedded handle 6.5.3. Por lo que he podido leer, se pueden descargar APPs que se conectarían con Navision (NAV 2018 en nuestro caso) para poder llevar a cabo todas las tareas asociadas. El problema es que no consigo encontrar ninguna o las que encuentro parece que necesitan un sistema operativo superior. ¿Alguien ha implementado estas pistolas en su almacén que pueda ayudarme?

Muchas gracias de antemano.

Auto-fill field value?

$
0
0
I got a table;
table 50148 "Bank Securities"
{
    DataClassification = ToBeClassified;

    fields
    {
        field(50000; "Entry No"; Integer)
        {
            DataClassification = ToBeClassified;
        }
 
        field(50011; "Job No."; Code[20])
        {
            DataClassification = ToBeClassified;
            TableRelation = Job.No.;
        }
        field(50012; "Bill-to Customer No."; Code[20])
        {
            DataClassification = ToBeClassified;
            TableRelation = Job.Bill-to Customer No.;
        }

    }

    keys
    {
        key(PK; "Entry No", "Job No.")
        {
            Clustered = true;
        }
    }

    var
        myInt: Integer;

    trigger OnInsert()
    var
        recBankSec: Record "Bank Securities";
        EntryNo: Integer;
        recJob: Record Job;
    begin
        Clear(recBankSec);
        Clear(EntryNo);
        IF recBankSec.FindLast() then
            EntryNo := recBankSec."Entry No" + 1
        else
            EntryNo := 1;
        Rec."Entry No" := EntryNo;

        recJob.SetFilter("No.", rec."Job No.");
        IF recJob.FindFirst() then begin
            Rec."Bill-to Customer No." := recJob."Bill-to Customer No.";
        end;
    end;

}

and a Card page;
page 50149 "Bank Securities"
{
    PageType = Card;
    ApplicationArea = All;
    UsageCategory = Administration;
    SourceTable = "Bank Securities";
    RefreshOnActivate = true;

    layout
    {
        area(Content)
        {
            group("Bank Security")
            {
                field("Job No."; "Job No.")
                {
                    ApplicationArea = All;
                }
                field("Bill-to Customer No."; "Bill-to Customer No.")
                {
                    ApplicationArea = All;
                    Editable = false;
            }
        }
    }

    actions
    {
        area(Processing)
        {
            /*   action(ActionName)
              {
                  ApplicationArea = All;

                  trigger OnAction()
                  begin

                  end;
              } */
        }
    }
}

42



}
}
}

actions
{
area(Processing)
{
/* action(ActionName)
{
ApplicationArea = All;

trigger OnAction()
begin

end;
} */
}
}
}




On the Card page, when I select a Job No. I get the Bill-to Customer No value filled in.

However, if I then change the Job No. the Bill-to Customer No. value does not change and remains the same.
Here is an example;

Job table has a record with No. and Bill-to Customer as DME, 50000 respectively.

On my card page, on my Job No. field, I select the above-mentioned record, and my Job No. field has value DME and Bill-to Customer field has value 50000.
So far so good.
I then change my mind to go to Job No. field to select the following record from the Job table which has a record with No. and Bill-to Customer as SME, 20000 respectively.

Now on my card page's Job No. field has value as SME however, Bill-to Customer is still 50000 and not 20000.

Ctrl+ E or Copy Rows Blocking in Nav 2016

$
0
0
hi,
For a retail business who are using Nav 2016, how Ctrl+ E or Copy Rows can be blocked from Item ledger entry page. As there is a leakage of serial no. found.

Thanks in Advance

Do we have any app in the Dynamics 365 business central app source for visitor management?

$
0
0
Dynamics 365 business central app source for visitor management

How do I publish an MS Dynamics NAV page as a web service?

$
0
0
MS Dynamics NAV page as a web service

Workflow

$
0
0
Hi All

I want to set workflow for customer card with hierarchy levels on 1,1,2, one of first hierarchy approves the document, 2nd hierarchy approves further to release document.

Though i have designed the workflow, issue is when 1st approver approves the document, approval entries status shows OPEN for 2nd of 1 hierarchy and CREATE for 2nd approver.

Please advise / suggest corrections.

regards
satish

BC365 intelligent cloud collation error

$
0
0
Hi guys,
old ghosts are reappearing:
I've an Azure SQL database and an On-Premise BC365 15.xx
I've an error that intelliCloud doesn't support my actual Latin1_General100_CS_AS so after an afternoon of sql scripting, my DB in is now on requested SQL_Latin1_General_CP1_CI_AS
Now I wanted to start my ServiceTier, ERROR, collation not supported!
WTF with collation?
How Can I get Intelligent Cloud to work?
(Based in Switzerland)

Thanx volks
K.r.
Chris

How to get the 'Backorderd' field value in report

$
0
0
Hi All,

I want to run a report from the 'Posted sales shipment' page. I want to show the "Backordered" of the posted sales shipment in that report.

Please suggest me some steps to or code snippet to get Backordered field value.

Thanks in Advance,
Jacob.A

ODATA - Request result sometimes in 400 error (with no body)

$
0
0
Hi guys,

we have a non dynamics nav server, which is sending data to an Australien NAV 2017 ODATA Web Service. The request is sent with a ruby application and with httpparty 0.16

Sometimes we don't receive the data on nav side and they getting are 400 error with empty body (~10 % of the request have this error). If they retry the same request again, then it will work. The retry is executed some seconds later.

We use digest auth (UserName) to login in NAV. The connection is also secured with SSL. Our NAV 2017 CU34 is hosted on Azure with windows server 2016.

We can not reproduce the issue with Postman (singe request or the runner functionality). We are receiving a lot of data >50.000 calls per day.

Does anybody has experience with this and can give a tipp?

Also we want to force NAV to produce log files for every Web service call. Maybe we can get more information about the problem then. We tried to create log files with wcf and edit the Server.exe.config, but we failed with that. We don't get a specific information about the web service calls.

I appreciate every hint or tipp. This topic causing us headache for more then two weeks.

Thanks.

BC365:error when designing page (on-Premise install)

$
0
0
hi,
I'm stuck on an BC365 Wave 2 (15) environment. My SQL is on Azure, my Administration Tier is on an Azure VM.
BC works fine. The database is a Migrated one (NAV16 ->BC13 and now BC15)
In the webclient, on any pages, in Designer mode, as soon as I drop a field, error is raising "something went wrong".

The EventLog of the server says:
  • Category: DatabaseSync: Message (NullReferenceException): RootException: NullReferenceException
  • Object reference not set to an instance of an object.
  • Category:Extensions: Message: same as above
  • Category : Development: Message: Message Failed to save the extension. Object reference not set to an instance of an object.
  • Category: Extensions : Message (NavDesignerExtensionStorageException): RootException: NavDesignerExtensionStorageException
  • Category: Extensions: Message The execution of the code block at HandleAddPageFieldAction had one or more unhandled exceptions., Additional info: NSDesigner
and some more ..
EventLogWriter
Unhandled error occurred on a browser or device client:
{
"clientInfo": {
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0",
"browserLanguage": "fr"
},
"message": "TypeError: $0.setCurrenRow is not a function",
"pageUrl": "https://theurlofmyBVinstance",
"originalError": {},
"location": {
"name": "https://theurlofmybcinstance/js/framework.js?h=888D73829F5FCAB0537812DF9B7F596A9042E25F67D6044B18BC0A82AD2723A3&_v=15.0.36510.0",
"url": "https://theurlofmyBCinstance/js/framework.js?h=888D73829F5FCAB0537812DF9B7F596A9042E25F67D6044B18BC0A82AD2723A3&_v=15.0.36510.0",
"lineNumber": 913,
"columnNumber": 55
},
"detailedMessage": "whenNotBusy/</

...then it lose the connection.
I hardly think it is linked to the following: I can't install the "Designer" Extension

When I try to install the "Designer_xyz V1.0.0.0" extension I got "Exception thrown during implicit sync of extension Designer_bca51682-0620-4803-bbd1-cde41742a9dd by default::myname : Object reference not set to an instance of an object."

How can I get it works? thanx volks, see you in Antwerpen.
Chris

Where to find the Conditions of Automatic Matching in Bank Account Reconciliation

$
0
0
Hi Guys,

Does anyone know here where do i find the Criteria of the conditions setted in the Bank Account Reconciliation Page?

xunhn0quxnm4.png
because when I look for it in the development environment
it looks like this :

u9bmnq2fa4rn.png

and when I look for the report I only have this.
79nf8bgf62aq.png


about the whole question is that.
I Was tasked to modify the Bank Account Reconciliation Automatically Match Button

to Match Only the Check No. of the Bank Account Reconciliation Lines and Bank Account Ledger Entries :External Document No.



Trated of extension dependencies in BC

$
0
0
Hi at all,

I have the next scenerio:

Extension 1 with version 1.0.0.0 Name "Extension 1"
add a field in table customer



Extension 2 with version 1.0.0.0 Name "Extension 2"
add a field in page customer list


Now, I need to modify the extension 1 adding one field more, but when I try to install newly from visual studio code, I get this error:

The Extension cannot be unpublished because it is required by the following apps: "Extension 1"

Somebody knows how can solving this problem?, of course, the example is very simple, but in my case, the hope of extension 1 is bigger than the example and include chages in tables, pages, codeunits...

Is it necesary unistall and unpublish the second extension in all scenarios?, what happend if the second extension is of third person and I haven't this extension?

Best regards.

What are the consequences of unpublishing an extension after it has been uninstalled?

$
0
0

Hello,

i'm trying to upgrade the prodcution DB in business central 365 cloud Verion from: 14.5.35970.0 ==> 15.0.36560.0.
at the same time i have an installed extension with this old version, which i want also to upgrade it.
in order to upgrade the Extension from old verion to a new one, i need to uninstall it, then unpubilsih it, then the Production DB will be able to upgrade to the new one, then the Extension will be also able to be upgraded to the new Verion.
now my question is:
What are the consequences of unpublishing an extension after it has been uninstalled?
after unsuccessful upgrade i got this report:

4tk6jos99bzo.png

am i doing something wrong ?

thanks in advance for your contribution.

Alex

Using functions in Odata Webservices

$
0
0
Hi everyone,

I am creating an extension for integrating via REST webServices with an external application.
First of all, I've created a simple table:
fields
    {
table 50701 "KanbanizeCard"
.....
        field(1; "ID"; Integer)
        {
            Caption = 'ID';
            DataClassification = ToBeClassified;
        }
        field(2; "Nombre"; Text[200])
        {
            Caption = 'Nombre';
            DataClassification = ToBeClassified;
        }
    }
I've published a page for this table as a WebService, and created this function:
}
    [ServiceEnabled]
    procedure AddCard(var actionContext: WebServiceActionContext)
    var
        card: Record KanbanizeCard;
        ODataActionManagement: Codeunit "OData Action Management";
    begin
        ODataActionManagement.AddKey(Rec.FieldNo(ID), Rec.Nombre);
        card.Get(Rec.ID);
        card.Nombre := 'clip';
        card.Modify();
    end;
And I'm calling with post, to this URL:
https://api.businesscentral.dynamics.com/v2.0/xxxxxx-e780-4167-8bff-xxxxxx/SandboxKANBANIZE/ODataV4/Company('CRONUS ES')/KanbanCard(33888)/NAV.AddCard()

The result is not bad, I get the record with 33888 key, and the 'nombre' field is changed to 'clip'.
BUt of course, the goal of this development is to send the new 'nombre' as parameter, not fixed into the code.
How can be this made? I'm reading about this issue, boundary actions and all that, but I don't understand how to define correctly the objets, and how to make the call to the URL... Probably somethin with the actioncContext and OdataActionManagement, but I'm lost.

Any hint will be really appreciated



Viewing all 10032 articles
Browse latest View live


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