Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / How to hold the data i...
Finance forum
Suggested answer

How to hold the data in table till the process gets completed.

Posted on by 516
Hi guys,
 
I have one requirement.
 
Initially I was doing in a way like , I will be inserting few records in the temp table and I will be sending request(JSON) from the table. 
 
Now I have changed table to regular because I need to run in the batch since temp table will not support in the batch. 
 
So after I changed to regular table before insertion I will be deleting all the record, Now my problem is when multiple user sending at a same time only once user data we are getting and other user record in getting deleted. This is happening because we are writing /deleteFrom_table/.
 
Is there is any way that I can hold the records till that user completes it's process, it should not get deleted till then.
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,277 Super User 2024 Season 2 on at
    How to hold the data in table till the process gets completed.
    Hi Adam123,
     
    You can add a field to store the user ID or a current session reference. Then delete only the records for the current user or session to keep the records from other users untouched. The delete_from command is supporting the where clause.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,277 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,135 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans