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

Delete a trade agreement programmatically

$
0
0

My goal is to delete all the active Sell Trade Agreements a product might have. For that, I have written the following code. 

The problem is that it marks the records in "PriceDiscAdmTrans" table for deletion but it doesn't post a new journal to accomplish the task.

I can see the Log field in this table changes to  "Marked for deletion - the agreement was never posted." 

Would you please help me out with this issue?

PriceDiscAdmTrans                       priceDiscAdmTrans;
    PriceDiscAdmDeleteTradeAgreements       priceDiscAdmDeleteTradeAgreements = PriceDiscAdmDeleteTradeAgreements::construct();
    PricePriceDiscJournal                   PriceDiscJour;
    JournalId                               journalNum;

    PriceDiscAdmCheckPost   priceDiscAdmCheckPost = new PriceDiscAdmCheckPost(false);//To make sure posting is happen

    PriceDiscJour = new PricePriceDiscJournal();


     select * from priceDiscAdmTrans where priceDiscAdmTrans.RecId == 5641684076;

        journalnum =  pricediscadmdeletetradeagreements.parmpricediscadmtrans(pricediscadmtrans).journalnum;
        pricediscadmdeletetradeagreements.run();
                
        info(strfmt("%1", journalnum));
        pricediscadmcheckpost.initjournalnum(journalnum);
        pricediscadmcheckpost.run();

Purchase order receiving registration

$
0
0

how can i register  all purchase order lines together one time ?

Sales Order - Stock reservation and prepayment

$
0
0

Hi, my client has a case for creating the Sales Order with auto stock reservation, but want to hold this SO for not picking the inventory or ship until the customer pay the prepayment as contract. Is that possible to create on-hold SO with stock reservation?

Thank you in advance.

Purchase Order Deletion

$
0
0

Hello ALl;

I am having a PO with Status = Invoiced. I want to delete the complete transaction and also want to delete the PO itself.

Can somebody help me how can I achieve this using any job or from the functional side.

Urgent response will be highly appreciated..

Thanks and Regards

Naming Convention: Suffixes

$
0
0

I have come across many suffixes (in element names) in AX.

Some are obvious like _FK (for foreign key?), but there are many I don't get: _PSN (used a lot in PurchAgreementHeader Table), _RU, _IT, _ES, _MX, _JP, _LV, _PL (found in VendTable fields).

Is there somewhere I can learn more about this? Is it important? Because at the moment I am just ignoring them.

Price Match Journal not getting post

$
0
0

Hi Experts,

I am getting error while updating the price of invoiced sales order (sales line), using the Price Match functionality in AX2012R3.

Please, see the screen below:

Thanks

Zain

Container conversion

$
0
0

I convert a container to str using conv2str, the method return a str like this :25,30,40,...

But I want to place the values vertically:

25

30

40

...

there is any suggestion?

The Fiscal year that ends with the date is already closed

$
0
0

Hi,

We have MS Dynamics AX 2012 R3 CU8, We are trying to close year 2017.

The fiscal year close parameters into the "General Ledger Parameters" as follow:

While trying to transfer the opening balances by using the "Opening transactions" form we got the below error message.

Then we received a notification message "The batch job Rebuild balances completed successfully"

I though that the error message is due to rounding setup so I amended it but now I am trying to transfer the opening balances again but unfortunately I am getting a warning message "The fiscal year that ends with the date 12/31/2017 is already closed".

Now I am not able to transfer the opening balance to 2018 so please advise!!


Bid only field in vendor record

$
0
0

Hi All, 

What is the purpose of the Bid only field in the vendor record?  Thanks

Your Microsoft Dynamics AX session is no longer valid. Log off your computer and log on again. If the problem persists, contact your microsoft Dynamics AX administrator

$
0
0


Problem :

Select all production order for job scheduling.

error message as the subject above and MS Dynamics AX closed.

please help.

Integration between the Dynamic Finance and Operation ERP(AX) and other endpoint:

$
0
0

I have created Dynmic AX trail portal using trials.dynamics.com/.../operations, My trail AX portal points "d365try-46.trial.operations.dynamics.com/.../3a628bf5-5c84-44d1-bdf6-442861a25d40"

Now, Need do the integration between the my trail to other end point. I have created a OAuth App at Azure portal, Using that app, am able to get the Access token. But when try to access API using that accesstoken am getting 404 error. I tried two ways to get the access token. But both the ways failed to access the API

I follwoed the AX API DOC docs.microsoft.com/.../odata


1) Access token using resource as "api.trial.operations.dynamics.com"
{
"token_type": "Bearer",
"scope": "AX.FullAccess CustomService.FullAccess Odata.FullAccess",
"expires_in": "3600",
"ext_expires_in": "0",
"expires_on": "1524457722",
"not_before": "1524453822",
"resource": "d365try-46.trial.operations.dynamics.com",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkZTaW11RnJG

When i access API d365try-46.trial.operations.dynamics.com/.../Customers i got 404 status code

2) Access token using resource as "api.trial.operations.dynamics.com"
{
"token_type": "Bearer",
"scope": "AX.FullAccess CustomService.FullAccess Odata.FullAccess",
"expires_in": "3599",
"ext_expires_in": "0",
"expires_on": "1524220794",
"not_before": "1524216894",
"resource": "api.operations.dynamics.com",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik

When i access API api.operations.dynamics.com/.../Customers I could not get any response.

According to the API Doc, endpoint like "[Your organization's root URL]/data/Customers"

Here what should i use as <your orgaanization> url and also please share the AX API doc link

Add Blank Operation action in button retail POS

$
0
0

Does anyone know how to add Blank Operation action in Configure button Screen Layout Retail POS?

Thanks,

ERROR:Object 'CLRObject' could not be created

$
0
0

Hi Experts,

I am getting the following error while running the Batch.

(Object 'CLRObject' could not be created)

I tried the following thing so far :

Full CIL

Full Compile

Restart AOS

Please let me know how to solve this error.

Thanks

Sona Jee

Printing SSRS Reports from code

$
0
0

Hi everyone, I need to create a nightly batch process that loops through all the customers and saves the report as a PDF file.  I am using the SrsReportRunController class.  I have the code to do this and it works when I run it on the client.   But I'm not sure how to run it as a batch process.  Can I just have code in the run method of the SrsReportRunController to the effect that if it is not in the batch mode use the super() but if it is the batch mode then loop through customers and save as PDF?

Thanks in advance!

Unable to Edit report in VS2010 Even after installing BIDS

$
0
0

Hi Team,

I am using AX 2012 R3 RTM version with SQL server 2014 and VS 2010. I was not able to edit any SSRS report in VS with error as "Unable to preview the report, install the business intelligence development studio", So I installed it and i can see check box tick on BIDS when i am running SQL setup but still i cant edit any report and getting same error.

Any idea on this ?


Error During Posting an inventory Adjustment in Dynamics AX 2012

$
0
0

Error executing code: FormStringControl object does not have method 'Value'.

Your quick response will be appreciated.

return product without press button

$
0
0

hi

we have one Pos Retail PC just only for return products

is there any way to make only it return products directly without press on (Return Product) button each time

and if there's any customization can anyone please share the way to do that?

How to Create Acquisition Proposal Through X++

$
0
0

dear all,

i'm a Junior Developer of Microsoft Dynamics AX 2012 R3.

currently, i am working on a task, the task is to make a function that can upload fixed asset from CSV.

i have found the way to upload the fixed asset. but, i have some difficulties to make the journal acquisition automatically.

there is two way if we make the journal acquisition manually through form.

1. the first way is to use create fixed asset proposal in the periodic section

2. the second way is to use the function inside fixed asset journal

i want to ask, how to create acquisition proposal through X++, what class can i use to make it easier?

i appreciate all kind of answer.

Thanks,

Return order not show in header detail

validation on grid level

$
0
0

Hi all,

I am having a doubt on filed validation on grid level ?

formName:InventtransRegister.

in this form under the grid when the user selects batch number system should validate and should throw an error based on the physical availability of the item for that we created a checkbox in inventbatch based on this system should validate??

any suggestion 

Thanks in advance.

suresh.

 

Viewing all 72043 articles
Browse latest View live


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