web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

How to create batch job for doing multiple transfers in fixed assets X++

(0) ShareShare
ReportReport
Posted on by 10,280

Please help if someone is stuck with it.

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: How to create batch job for doing multiple transfers in fixed assets X++

    Hi Codehunter,

    Could you please provide a more details regarding your exact requirements?

  • Codehunter Profile Picture
    10,280 on at
    RE: How to create batch job for doing multiple transfers in fixed assets X++

    Hi Gunjan,

    I need to write batch job that handle multiple transfer fixed assets in the back-end in the fixed assets module as the standard behavior uses the front end and it takes awhile to complete the transaction.

    Hope you got my point.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: How to create batch job for doing multiple transfers in fixed assets X++

    Hi Codehunter,

    Have you decided on how to collect the necessary parameters like "Transfer from account", Transfer to account" and "Transfer to financial dimensions"? In the "Transfer fixed assets" form, they are input by the user.

  • Codehunter Profile Picture
    10,280 on at
    RE: How to create batch job for doing multiple transfers in fixed assets X++

    I will just need to take the action from transfer button in the fixed assets form directly . I will access the batch job from this button directly.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: How to create batch job for doing multiple transfers in fixed assets X++

    A batch job is for executing a specific function at certain intervals based on parameters passed. The parameters for fixed asset transfer will keep changing constantly. In this case, are you looking to execute the transfer operation in the server so that the performance is better?

  • Codehunter Profile Picture
    10,280 on at
    RE: How to create batch job for doing multiple transfers in fixed assets X++

    Yes and it needs to be running in the background

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: How to create batch job for doing multiple transfers in fixed assets X++

    You have two options here -

    1. Force the logic execution in the server. For an example how Purchase order confirmation, product receipt etc. work. You can transfer the Forms\AssetTransfer\closedOk logic to a new class method which is has the keyword "server" in the signature. you can follow the example of PurchFormLetter\mainOnServer method for this.

    2. You can create a new table to store all the values entered in the form. . You can then write a batch job to be executed based on records in this table. You might want to have a checkbox field in this table as well for marking the record as processed on successful asset transfer. In this scenario, you just write the records into this table once the user clicks on "Update".

    For the  logic you can copy the one in AssetTransfer\closedOk without the part where the form "AssetTransferConfirmation" is being called so that no user interaction is necessary.

  • Codehunter Profile Picture
    10,280 on at
    RE: How to create batch job for doing multiple transfers in fixed assets X++

    Could you please tell me how to pro grammatically handle it through the batch job inside the transfer section.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: How to create batch job for doing multiple transfers in fixed assets X++

    The class for the batch job needs to be created separately. When you say batch process inside the transfer section, what exactly are you referring to?

  • Codehunter Profile Picture
    10,280 on at
    RE: How to create batch job for doing multiple transfers in fixed assets X++

    I need to handle the transfer button in the top bar of the fixed assets to be managed through batch jobs instead of the UI phase . Please let me know how I could start implementing this part

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,933

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 793 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 537 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans