Method 'IsInvoicing' is marked for removal. Reason: Microsoft Invoicing is not supported on Business CentralAL(AL0432) in BC Cloud Wave2

Hi All,

I am resolving errors from AL objects for Wave2 release. in one report there is piece of code : 

if IdentityManagement.IsInvAppId then begin 
"Language Code" := Language.GetUserLanguage;
CurrReport.LANGUAGE := Language.GetLanguageID("Language Code");
end;
if not IdentityManagement.IsInvAppId then begin
if GLOBALLANGUAGE = Language.GetLanguageID("Language Code") then
CurrReport.LANGUAGE := Language.GetLanguageID("Language Code")
else
CurrReport.LANGUAGE := Language.GetLanguageID('ENU');
end;

here I was getting error 'Codeunit "Identity Management"' does not contain a definition for 'IsInvAppId'AL(AL0132) after search I did below changes in code 

if EnvInfoProxy.IsInvoicing then begin //replacement for Wave2
"Language Code" := Language_CU.GetUserLanguageCode();
CurrReport.Language := Language_CU.GetLanguageId("Language Code");
end;
if not EnvInfoProxy.IsInvoicing then begin
if GlobalLanguage = Language_CU.GetLanguageId("Language Code") then
CurrReport.Language := Language_CU.GetLanguageId("Language Code")
else
CurrReport.Language := Language_CU.GetLanguageId('ENU');

end;

where EnvInfoProxy is codeunit 9995 "Env. Info Proxy" and Language_CU is codeunit - Language. But now I am getting warning - 

Method 'IsInvoicing' is marked for removal. Reason: Microsoft Invoicing is not supported on Business CentralAL(AL0432)

I can not found any solution for it. Do anyone has idea?

Thanks in advance.

Parents Reply Children
No Data
Related
Recommended