Quantcast
Channel: Martin Dráb's Activities
Viewing all 17532 articles
Browse latest View live

How can i use data that stored inside CLRObject object to save in specific table

$
0
0

RevenueFromVisTbl RevenueFromVisTbl ;
RevenueIntegration.RevenueProperty tes = new RevenueIntegration.RevenueProperty();
RevenueIntegration.GetDataCls test = new RevenueIntegration.GetDataCls();
System.Type listType = System.Type::GetType('System.Collections.Generic.List`1[System.String]');
CLRObject list = System.Activator::CreateInstance(listType);
list = test.select_VCB("2020","01");

...


AOS services is stopping automatically

$
0
0

Hi Experts,

Our system AX AOS services is stopping automatically, even I am starting and it stops automatically, I check DB SQL server services is running. But AOS services is stopping.

Best Regards,

Shabir Ahmad

Connecting D365 FO with Azure Data Factory

$
0
0

Hi all,

I am not sure if this is the relevant forum to post on integration with Data factory. If not, please suggest to me the community to post. 

I am analyzing the feasibility to push data from  Azure data factory to D365 FO.  The data in the file is read from the external system and converted to D365FO readable format.

Though Logic apps also serve this purpose of pushing the data in D365FO, I am exploring the approach if I can use any other direct connectors available in Data factory.  

The Copy activity does not support the Sink function to Ax. 

Could you please suggest the approach which is suggested?

How to add note to a Purchase Order

$
0
0

Hello, 

I'm trying to add a note to a Purchase Order in the Header section but everything I've tried to add through Personalization comes up greyed out and I cannot edit/add anything to the field.  I just want to be able to add some text so I can reference different Purchase Orders, nothing fancy.  Thank you in advance for all help and advice.

Why is Entry in Purchase Book Appearing 10 x?

$
0
0

Why is Entry in Purchase Book Appearing 10x? How can I check what went wrong?

Fill unmapped fields in data entity

$
0
0

Hi,

I created a new entity to export several data from smmBusRelTable. Also I try to export some values with this entity that are not part of smmBusRelTable. So I create unmapped fields therefore. But I can't fill them in methode mapDataSourceToEntity...

I thought I could do that in this methode but the debugger didn't stop in this methode anyway. So I think the methode will not be used yet? Do I have to make some setups to run through this methode?

In DMF I use this function:

Hope, someone can help me...

Create new filter on form

$
0
0

Hello,

On the po planned order I want to create new Filter (VendorId). By selecting the Vendor in lookup, the grid should be filtered accordingly.

What would be a best approach?

So, I will create an extension of form. Create new String field. And then how can I have this field as lookup to vendors and filter the grid based on it?

Thanks.

Which table to look/join for to see each segments in an account number into separate fields?

$
0
0

I want to create a query from GeneralJournalAccountEntry table but I need each segments into fields.

From:

To:

Image taken from Trial Balance set to display account number segments in separate columns

Fields GeneralJournalAccountEntry.LedgerAccount & DimensionAttributeValueCombination.DisplayValue are not separated.

I really appreciate if you can help me find the other table/s which I can join to GeneralJournalAccountEntry to get each separate segment.

As much as possible, I would like to avoid using string runtime functions to separate the segments.

Thank you so much.


Cannot edit a record in Purchase Order Lines(PurchLine). The record shown has been updated by another user

$
0
0

Hi All

In D365 FnO , I am facing an error "Cannot edit a record in Purchase Order Lines(PurchLine). The record shown has been updated by another user". Press Revert or Shift+ Ctrol+F5 to see updated values.

This occurs when I am entering a field value in PurchLine during PO creation and saving the POLine.
seems error occurs from my PurchTable's Event handler class, OnWritten Method where I have written code to perform PurchLine.DoUpdate based on some validations.

The error seems to happen in PurchLine.DoUpdate
Strange thing about the error is, same code exists on 2 standalone machines, but it occurs only on one machine.

I tried resetting the ttsbegin and ttscommit above and below PurchLine.DoUpdate but issues doesnt solve.

Have tried using update instead of doUpdate, error still occurs.

It will be helpful if someone can shed a light on what could possibly be going wrong?

Regards

Sabarish

Passing parameters to D365 REST service via SoapUI

$
0
0

Hi, 

I'm trying to call one of standard REST services:

/api/services/ProjectServices/ProjectWbsService/getProjectInfo

This service requires two parameters - company id and project recid. How should I set up these parameters in SoapUI?

Not matter which settings I try I'm getting either (when post query string is not set)

"Message": "An unhandled exception was caught by the X++ Custom Services controller - Parameter count mismatch..",

or (when post query string is set)

"Message": "An exception occured when deserializing a parameters - Exception occured when parsing the request content - Unexpected character encountered while parsing value: C. Path '', line 0, position 0.",

In first case I've tried to add many parameters, but it seems they are simply not passed properly. In second case mentioned 'C' is the first letter of parameter name. 

Token is fine - methods without parameters works fine. 

What am I missing?

As a column Fields value name in D365Fo

$
0
0

HI all,

As shown in the picture above, I want to the name column, but how do I show it

Etc:

Basic salary |GOSI |Housing| Medical |Saving| TransPortation

12,0000.00| 1,5000| 30000| 600|600| 12000.00.

how to do as a column and that monthly salary display method.

Now, how i can achieve as a column.

Thanks   

How do I choose the path when downloading files D365 X ++

$
0
0

Hi Everyone !

There are no problems with downloading files with x ++. But I want to download it to the desired folder by providing the user with the option.

Is it possible to technically do this?

If technically possible, can you help me with this and share a sample code?

Best Regards.

How to include third party libraries in Create deployable package

$
0
0
Hi,
We recently moved our MS managed build VM to cloud hosted. I set up Azure DevOps agents, pipeline getting sources from Main Branch in TFS. etc.,
The Main branch also contains Third parties. (Ex: <tfsroot>\Trunk\Main\MetaData\RapidValue and <tfsroot>\Trunk\Main\MetaData\BluefortProductImageImportAppp)
When I try to use the new task "Create deployable package". the package which is generated does not contains Third party(RapidValue and Bluefort..). However it has our customization codes. Previously we use "generate package" (old). It always includes third-party packages. But the problem using the old "generate package" is whenever the system stops and starts it generate new Version number. Ex: AXDeployableRuntime_VersionNumber_$(Build.BuildNumber).zip. Because of this I cannot able to configure the Auto deployment to LCS option.
In new "create deployable package" task there is no version number and its easy for to configure auto deployment to UAT environment.
Everything work fine but when I move to PROD it inform missing model (Rapidvalue and BluefortProductImageImportAppp). The reason is it is not included.
Need help on how to set up to include the third-party packages.
Regards,
Manivannan

Dev pipeline, Build Pipeline and release Pipeline

$
0
0

Hi, 

I 'm trying to setup Azure DevOps project for our customer's Dynamics 365 FO Implementation project and configure it so that we can use it for Continues Integration and Continues Delivery.

We have 1 DEV (Cloud Hosted), 1 UAT (Sandbox : STANDARD ACCEPTANCE TEST) and we will soon have 1 PROD environement.

Currently we consider:

  • the UAT environment as Pre-Prod environment
  • the DEV environment as Test environment 

I have successfully created a DevOps Project and connect it to LCS project

then I created a Build server from LCS >> after deployment of Build server I found a repository as a trunk with main folder and a build pipeline.

I converted the Main folder  to a Main branch and then I creatd a Dev branch from the Main branch ( I did that from the Visual Studio in our VHD VM)

and I intented to map the DevOps Dev Branch to "C:\AOSService\PackagesLocalDirectory" on our local VM and create a new DEV Pipeline, but I need to understand after check-in a my source code from the local VM to Dev branch , what are the next stpes to follow and how can I merge the Dev Branch to Main Branch ? and can I deploy the deployable package which will be generated later from Build Pipeline to a Dev environment (currently considered as Test environnement )?

The Dev Pipeline is considered to build the Dev Branch ? 

Thank You

About exporting to Azure SQl DB(BYOD) using virtual and calculated columns

$
0
0

Hi

Should I use computed fields or virtual fields in a data entity when exporting data to Azure SQL DB (BYOD)?
MSDocs recommends using calculated fields,but I don' know why.If you know why MSDocs recommends it, please let me know.
Is it faster to use calculated fields in terms of performance when exporting large amounts of data?

Thanks.


GetFromDialog field value is not appearing in run method

$
0
0

Hi All,

We are trying to get the Dialog field value into run method, but the value is not coming from "getFromDialog" method.

We are able to see the value in "getFromDialog" method, variable has declared as global in class declaration.

Please advise us how to resolve this issue.

Regards,

Akbar

Parameter executionInfo cannot be null or empty.

$
0
0

SysOutgoingEmailTable outgoingEmailTable;
PurchTable purchTable;
UserInfo userInfo;

FormRun form = sender.formRun();
FormDataSource purchTable_ds = form.dataSource(formDataSourceStr(PurchTable ,PurchTable))as FormDataSource;
purchTable = purchTable_ds.cursor();

if(purchTable.DocumentState == VersioningDocumentState::Confirmed)
{
str Body;
str Subject;
SRSPrintDestinationSettings printSettings;
SRSPrintDestinationSettings SRSPrintDestinationSettings;
SrsPrintMgmtExecutionInfo reportExecutionInfo;

PurchReqLine purchReqLine;
printJobHeader printJobHeader;

PurchPurchaseOrderContract                  contract = new PurchPurchaseOrderContract();

PurchPurchaseOrderController             controller = new PurchPurchaseOrderController();

controller.parmReportName(ssrsReportStr(PurchPurchaseOrder, Report));

reportExecutionInfo = controller.parmReportContract().parmReportExecutionInfo() as SrsPrintMgmtExecutionInfo;
if (!reportExecutionInfo)
{
reportExecutionInfo = new SrsPrintMgmtExecutionInfo();
}

controller.parmExecutionMode(SysOperationExecutionMode::Synchronous);
controller.parmShowDialog(false);
contract.parmRecordId(purchTable.RecId);

controller.parmReportContract().parmRdpContract(reportExecutionInfo);

controller.parmDialogCaption("Purchase order");

SRSPrintDestinationSettings = new SRSPrintDestinationSettings();
SRSPrintDestinationSettings.overridePrintContractSettings(true);
SRSPrintDestinationSettings.printMediumType(SRSPrintMediumType::Email);
SRSPrintDestinationSettings.emailAttachmentFileFormat(SRSReportFileFormat::PDF);

SRSPrintDestinationSettings.emailTo("abc@xyz.com");
SRSPrintDestinationSettings.emailSubject("PO");
SRSPrintDestinationSettings.fileName("PO");

SRSPrintDestinationSettings.parmEMailContract();
controller.parmReportContract().parmPrintSettings(SRSPrintDestinationSettings);

controller.runReport();

SysEmailItemId nextEmailItemId;
nextEmailItemId = EventInbox::nextEventId();

outgoingEmailTable.EmailItemId = nextEmailItemId;
outgoingEmailTable.IsSystemEmail = NoYes::No;
outgoingEmailTable.Sender = SysEmailParameters::find().SMTPUserName;
outgoingEmailTable.SenderName = SysEmailParameters::find().SMTPUserName;
outgoingEmailTable.Recipient = hcmWorker.email();
outgoingEmailTable.Subject = "Purchase Order";
outgoingEmailTable.Priority = eMailPriority::Normal ;
outgoingEmailTable.WithRetries = false;
outgoingEmailTable.RetryNum = 0;
outgoingEmailTable.UserId = curUserId();
outgoingEmailTable.Status = SysEmailStatus::Sent;
outgoingEmailTable.LatestStatusChangeDateTime = DateTimeUtil::getSystemDateTime();
outgoingEmailTable.insert();

}

I wrote this code on the clicked event handler, I have the requirement to send the purchase order to the requisitionist, I am getting error "Parameter executionInfo cannot be null or empty.". For right now I have just removed the code to get the email ID of the requisitionist.

Add a bid Attachment

$
0
0

Hi all . 

I need to solve the below,

My request is : Mandatory Attachment to RFQ.

Path: Procurement and Sourcing>Purchase Requisitions> all Purchase Requisitions

Requirement :Upon accepting a vendor quotation, the system must check if Bid attachment exist. If yes, user can accept quotation.

Otherwise, the system should notify the user that there is no attachment on vendor replies. User then will go to manage reply, edit RFQ reply for this vendor and add the bid attachment.

I want on the Accept button into the form : PurchRFQCompare , as the sc below :

         when the user choose a vendor , they need to fill the attachment , so he can press the button aacept.

          Only the vendor chosen they  have to fill the build 

           what we should edit in the code to get this result.

     The code:

[Extensionof(classstr(PurchRFQFormLetter))]
final class PurchRFQ_Extension
{
    protected static void validatePurchRFQFormLetter(Args _args)
    {
        PurchRFQCaseTable           rfqCaseTable;
        PurchRFQTable               rfqTable;
        PurchRFQReplyTable          rfqReplyTable;
        PurchRFQUpdateType          parmEnum;
        DocuRef                     docuRef;
        boolean                     hasAttachment = false;
        next validatePurchRFQFormLetter(_args);
        rfqCaseTable = _args.record();
        while select rfqReplyTable
            join rfqTable
            where rfqReplyTable.RFQId == rfqTable.RFQId &&
                  rfqTable.RFQCaseId  == rfqTable.RFQCaseId
        {
            select firstOnly docuRef
                where docuRef.RefRecId      == rfqReplyTable.RecId &&
                      docuRef.RefTableId    == rfqReplyTable.TableId;
            if (!docuRef)
            {
                hasAttachment = false;
                break;
            }
            else
            {
                hasAttachment = true;
            }
        }
        if (!hasAttachment)
        {
            throw error ("Bid attachments must be present.");
        }
    }

}

I need to add to the code , the condition like the sc above , when the user select one of these vendors , if he has a bid attachement hon the Accept button he can send the quotation , otherwise an error appear that he have to fill the bid.

Thank you. 

Voucher Transaction error: '', hexadecimal value 0x02, is an invalid character

$
0
0

We are getting this error when trying to run the Voucher Transaction inquiry in AX General Ledger module.  Not sure which GL transactions is causing it.  Any help would be appreciated.

SSRS report query

$
0
0

Can you please help with the following issue that I am facing for designing SSRS report

 

  • In a SSRS report based on a query:
  • Print financial dimension values in a report: If in my query a "DefaultDimension" field is present then Visual Studio automatically adds the "Ax dimensions" view which lists all the dimensions but I cannot use this view in my report because it generates errors when the report is executed. Is there another solution? Is there a parameter setting to do?

 

    • Extension of a view and addition of a new display method: I tried to extend a view and add a new display method to print it in my report. Everything seemed to work but when the report is executed, the value printed is always empty even if my method returns a fixed string.
Viewing all 17532 articles
Browse latest View live


Latest Images

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