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

cannot read message body of incoming email

$
0
0

I am trying to read the email message portion of emails that are incoming to an email account via Dynamics AX 2012. I have created a job below for testing. I usually get back what looks like garbage for the message body while reading the subject, etc. works fine. I have tried to read as HTML and as Plain text. I know the email is html but when I read as HTML I get a "" message returned. Thanks.

NAME:mBlob1
VALUE:
TYPE:str

NAME: mBlob3
VALUE:PGh0bWw+DQo8aGVhZD4NCjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PXV0Zi04Ij4NCjwvaGVhZD4NCjxib2R5Pg0KMS1hcHByb3ZlZCA8YnI+DQo8YnI+DQo8YnI+DQpTZW50IGZyb20gUHJvdG9uIE1haWwgbW9iaWxlPGJyPg0KPGJyPg0KPGJyPg0KPGJyPg0KLS0tLS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tLS0tLTxicj4NCk9uIEF1ZyAzLCAyMDIyLCAxMToyOCBBTSwgQXJ0aXNhbnMgUHJvb2YgJmx0OyBBcnRpc2Fuc0FYVGVzdEBhcnRpc2Fuc2luYy5jb20mZ3Q7IHdyb3RlOg0KPGJsb2NrcXVvdGUgY2xhc3M9InByb3Rvbm1haWxfcXVvdGUiPjxicj4NCjEtdGVzdA0KPGRpdj48L2Rpdj4NCjwvYmxvY2txdW90ZT4NCjwvYm9keT4NCjwvaHRtbD4NCg==
TYPE:str

 static void Job156Pop3Receive(Args _args)

{

    SysEmailAccount         sysEmailAccount;

    SysEmailMessageReadContent  SysEmailMessageReadContent  = SysEmailMessageReadContent::construct();

    SysEmailAccountList     sysEmailAccountList = SysEmailAccountList::construct();

    SysEmailReader          sysEmailReader      = SysEmailReader::construct();

    SysEmailMessageReadList sysEmailMessageReadList;

    SysEmailMessageRead     sysEmailMessageRead;

    //Art156Table1            Art156Table1;

 

    //SysEmailMessageReadContent  SysEmailMessageReadContent;

    SysEmailReadHtmlBody mBlob1;

    SysEmailReadHtmlBody mBlob2;

    SysEmailReadHtmlBody mBlob3;

    SysEmailReadHtmlBody mBlob4;

   

    sysEmailAccount = SysEmailAccount::newAccount('xxxxx.xxxx.com', 'xxxxx@xxxx.com', 'xxxxxxxxxxxx', 995true);

 

    // Add the account to a list of accounts to be checked

    sysEmailAccountList.add(sysEmailAccount);

 

    // Get a list of unread meassages

    sysEmailMessageReadList = sysEmailReader.getUnreadEmailMessages(sysEmailAccountList);

 

    // Loop over the list of unread mesages

    //while (sysEmailMessageReadList.moveNext())

    //x=0;

    sysEmailMessageReadList.reset();

    sysEmailMessageReadList.moveFirst();

    while (sysEmailMessageReadList.moveNext()) //while (x <= 1)

    {

        // Get the current message from the message loop

        sysEmailMessageRead = sysEmailMessageReadList.current();

 

        // Work with this message(show the subject line)

        info (sysEmailMessageRead.parmSubject());

         //current used 1

        mBlob1 = sysEmailMessageRead.parmHTMLBody();

        mBlob2 = sysEmailMessageRead.ArtHtml2Text(mBlob1);

        if (mBlob2)

        {

            info(strFmt("blob1: %1",mBlob1));

            info(strFmt("blob2: %1",mBlob2));

        }

         //current used 2

        mBlob3 = sysEmailMessageRead.parmBody();

        mBlob4 = sysEmailMessageRead.ArtHtml2Text(mBlob3);

        if (mBlob4)

        {

            info(strFmt("blob3: %1",mBlob3));

            //info(strFmt("blob4: %1",mBlob4));

        }

        info (sysEmailMessageRead.parmBody());

        print '';

    }

}


X++ Exception: User {00000000-0000-0000-0000-000000000000} not found. at SysWorkflowDocument-assert

$
0
0

Hello. Please tell me in which case the system gives an error X++ Exception: User {00000000-0000-0000-0000-000000000000} not found. at SysWorkflowDocument-assert SysWorkflowDocument-assertPermission SysWorkflowWorkItem-create SysWorkflowWorkItem?

How to solve this error? Is there an instruction?

Cannot create a record in Relation between purchase lines and request for quotation lines (PurchOrderRFQLineReference). Relation between purchase lines and request for quotation lines: ccv CCV-016282. The record already exists.

$
0
0

I am trying to release these items to create the purchase order but I get this error

how to settle 0,01 remaining on a supplier balance in Ax 2012?

$
0
0

Hi, 

Does anybody know how to settle a small balance (0,01) that is remaining after invoices have been settled with payments.  

I'm thinking about a solution "to kill" this small amount. The only solution is to post a journal? 

Thanks a lot! 

Dan

Reverse unrealized VAT case withholding tax in Thailand

$
0
0

When I create invoice have withholding tax and payment then Reverse unrealized VAT the sale tax calculate not correct

1. Create invoice

2. Generate payment

3. Reverse unrealized VAT. The sale tax reverse not correct

4. GL Transaction

How to get system Current Date in ax2012

$
0
0

Hey,
In Dynamics ax2012, I want when click on check box then field From Date and To Date automatically get current system date.

How can do? Please help me.
Thanks!

Multiple approvers in workflow

$
0
0

I would like to get my workflow to send out approvals in serial mode to two approvers when the requisition is more than $xx (i.e.$5000). Can you help with that?

  1. send approvals to immediate supervisors
  2. escalate after 2 hours
  3. send notification to requester when no approval was ever received. Is this possible?

 Please help me to modify the current WF. Any help would be appreciate.

Creating 3 rows with default values on Form (Route)

$
0
0

I've created a CommandButton (New) and I'd like to set the button to create 3 records in the form with different default values.

I'm using the InitValue() against the correct datasource (ROUTE)

currently my code looks like this - however it only returns one record!

public void initValue()
{

    super();
  
    //Set default values for the 1st record
    Route.OprId = 'Kitting';
    Route.OprNum = 5;
    Route.insert();
    //Set default values for the 2nd record
    Route.OprId = 'ASSY005';
    Route.OprNum = 10;
    Route.insert();
    //Set default values for the 3rd record
    Route.OprId = 'ASSY010';
    Route.OprNum = 15;
    Route.insert(); 
}

I would also like this update to only happen when I press the commandbutton in question (I will need to create another command button that should operate as per AX 2012 standard functionality)

Could anyone please advise?

Thank you


Right edge of paper exceeded on page 1 in Picking list - Report, 1 mm from top.

$
0
0

Hi,

I am facing this message when I try to run the Picking list report. Please assist.

Regards,

Ram

Personnel number need to update from excel templates fromfor customer in AX 2012 R3

$
0
0

Hi all,

I have excel template. It contained Customer Account no and Personnel number.

I needs to update personnel number based on the customer account 

For example-

Suppose I have customer C0001 and Personnel number 900

In AX. 

In excel templates,  suppose C0001  ,Personnel number 300

So, I have to update 300 for customer C0001.

Kindly send me the query please. 

Please give me more shed on this 

Insufficient inventory transactions with status picked

$
0
0

I am trying to register this invoice

  

gives me this error

in the past you resolved it by marking the transactions with your sales order. Inventory -> Marked

but they are not marked correctly because the item has no sales order

sales orders are created automatically when the items are received but in this case nose because they are not created.

Help plis.

Production BOM - Released quantity has small decimal values remaining after resetting status to Created

$
0
0

We have noticed that on some items there seems to be some decimal precision issues that occur when you Report as finished the quantity a few times, there are some items that when we perform Report as finished, the Released quantity has small decimal values remaining, which causes the issue where we cannot cancel/delete the production order. Is anyone familiar with this issue?

How can I iterate over all the datasources on the PurchTable form?

$
0
0

I added an Enum type field that has the Open and Blocked values ​​and I want the fields not to be editable for all PurchesOrders with Blocked status.

Procurement and sourcing workflows

$
0
0

  

  

I am trying to remove the users "ahilario" and "grecarey" from the workflow because they are no longer in the company, but when I remove them from the workflow, I get an error when approving the purchase requests

How to Allow or Not Allow Edit on Purchase Order?

$
0
0

I added a comboBox type field called "Status" with the values ​​Open and Blocked on the PurchTable form and I want to write a method that does not allow editing any information from Purchases Order if the Blocked value is selected.


Purchase order status changes from Confirmed to Draft after running tax calculation

$
0
0

All my PO that are confirmed changes from confirmed to draft when we run Tax Calculation

Dynamics 365 FinOps : Build server redeployment

$
0
0

Hello All,

We have a VSTS project in place, with all our code customizations. We had a build server configured but for some reason this got deallocated and we can no longer see the build and dev environments in LCS project.

 

Since we already have the VSTS project with all our customizations and our LCS is also being setup with this VSTS project already, can i just redeploy a build environment with the existing agent pool? 

What will happen to the code repository? Will this be cleaned out? or will the build look for an exisitng Main folder and reconfigure automatically?

The other way is to set up an entirely new project, link this in LCS, redeploy build server and move my customizations over from the older project to the newer one. 

Any suggestions?

Implementation of Extra Batch helpers in Retail posting batch job

$
0
0

Hello ,

I need to have a detail understanding how we can implement extra batch helpers in Retail posting batch job (MS std) , I can see we have concept of extra batch helpers in Inventory closing but the architecture is not very clear.

Please if some can help me out on this and have implemented in the past.

P.S : I have already gone through the doc of Inventory closing from MS , I need understanding technically on it 

Want to discard particular sales quotation lines based on the user defined checkbox given in the sales quotation lines

$
0
0

Hi community 

My requirement is that when we go to confirm sales quotation page then we have few sales quotation lines which will be converted to sales order but I want that only that particular lines to be converted in which checkbox is unchecked so that I can convert it to sales agreement. 

Using Classes to Create a Dialog

$
0
0

I created a button that should open a dialog box, but I don't want the method to be written on clicked. I want to create a separate class that will be called. How do I do this?

Viewing all 73760 articles
Browse latest View live


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