Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

To create a batch job

(0) ShareShare
ReportReport
Posted on by 123

You will select a excel file with column sales order numbers,

Pick the sales order from the column and delete the sales order,

How do we create a batch job to delete sales order.

  • M_R Profile Picture
    M_R 123 on at
    RE: To create a batch job

    this is howl we can create a job to delete sales order

    1st step:- upload the excel

    2nd:- read the excel.

    3rd:- read the excel lines salesid

    4th:- find all tables used in salesorder

    5th:- delete the data from those tables on the basis of relation

  • Komi Siabi Profile Picture
    Komi Siabi 12,759 Most Valuable Professional on at
    RE: To create a batch job

    Hello M_R,

    Please let us know if you have an answer to your question now.

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,552 Super User 2024 Season 1 on at
    RE: To create a batch job

    Hi M_R, As Andre mentioned, it can be done using power automate. However, in case you or your client is not using power platform then you can create custom staging table to import sales orders numbers and create a custom batch job to delete sales orders matching sales order number in that staging table. After deletion, either delete records in staging table or if you need tracking for future references then create a checkbox isDeleted in staging and mark it on records that are deleted and in batch job add parameter to pick only those records where isDeleted is No.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,965 Super User 2025 Season 1 on at
    RE: To create a batch job

    Hi M_R,

    In the past, for a similar requirement, I used Power Automate where the flow did read the Excel file and deleted the sales order and sales order lines. When you will use the same approach, you don't need to develop anything new.

  • Komi Siabi Profile Picture
    Komi Siabi 12,759 Most Valuable Professional on at
    RE: To create a batch job

    Hello M_R,

    If I get you right, you want to delete sales order by uploading an Excel file which will contain the sales order numbers.

  • Ramit Paul Profile Picture
    Ramit Paul 22,297 Most Valuable Professional on at
    RE: To create a batch job

    Hi,

    What is the issue here? what is your question here?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans