Skip to main content

Notifications

Announcements

No record found.

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

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

Posted on by 522
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... 291,280 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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans