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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Salesquotation through batch job

(0) ShareShare
ReportReport
Posted on by 56

Dear all,

Can you please let me know I am working in one batch job , which is creating a Sales Quotation through batch job.

So, we added 2 enum fields in customized table isSyncd and isSyncError.

If SalesQutattion successfully done then the line is checked YES in IsSyncd and

If not means is data having some issues then it will not create Sales Quotation and it will be marked with IsSyncError = yes.

So, we kept those in separate form " SalesQuotationTracking" form to track which records are not created Sales Quotation means IsSyncError = YES

So, User will rectify those record and click on send button in form " SalesQuotationTracking" then it has to go through same batch to create Sales Quotation through batch.

My question is

Already 1 batch is running every 10 minutes in everyday to create Sales Quotation and it has track everyday which records are fail to create Sales Quotation. Means IsSyncError = YES

How i will run same batch job again after rectifying those record which is failed to create SalesQuotation means IsSyncError = YES

Is it possible to run the same batch job ( means which we can run from form to press SEND buttin)simenteniously because already same batch job is running everyday after 10 minutes gap.

Please give me more she'd on this

Thanks!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    239,163 Most Valuable Professional on at

    Yes, it is possible to run the same job manually or to schedule another batch running the same job.

    Just note that if two procedures are trying to do the same thing at the same time, the latter one may be blocked by the instance that started first. Maybe users should leave it to the periodic job running every ten minutes.

  • Suggested answer
    Sukrut Parab Profile Picture
    71,735 Moderator on at

    Same job you can configure multiple times but in your scenario if you are correcting  records  then same job which is running every 10 mins should create sales quotations for the corrected ones and if there is any issue marked with error .

  • @rp@n Profile Picture
    56 on at

    Suppose we have 50 lines. I put already validation. And it will check each and every line one by one.

    If correct , then mark IsSync = Yes and create Sales Quotation. Else it will mark IsSyncError = YES

    So, end user always going to check n the form weather records are exist or not means which marked IsSyncError = YES

    If yes, they rectify those record and click on send button. Then it will hit the same batch job to execute to create Sales Quotation.

    This is the actual requirement.

    Note : Both IsSyncd and IsSyncError fields are stored in same table.

    Please give me more she'd on this

    Thanks!

  • Verified answer
    Sukrut Parab Profile Picture
    71,735 Moderator on at

    Ok why user have to click on the send button , if the batch is acting on the same table ? Once user corrects the records ,let it sit there and batch which is running every 10 mins should take care of those .

  • @rp@n Profile Picture
    56 on at

    Thanks Sukrut,

    You mean to say that if we are storing records ( IsSync = YES and IsSyncError = Yes )both are in same table so, when user rectify those records then obviously those record are in to the same table. So, batch is already running behind for the correct one right.

    So, the rectified record it's automatically consider.

    Is it correct?

  • Verified answer
    Sukrut Parab Profile Picture
    71,735 Moderator on at

    That's how I understand it , unless there is somehing else you want.

  • @rp@n Profile Picture
    56 on at

    Yes, only I need to put condition in while statement

    While select table

    Where Table.isSyncd == NoYes::No

    && (Table. IsSyncError == NoYes:Yes 'll

    Table.IsSyncError == NoYes::No)

    So, that it will consider both corrected and rectified records.

    Ist correct?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans