AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Everything Else
Delete using Export...
 
Notifications
Clear all

Questions Delete using Export scenario when 'Action: Delete' is not available

 
Page 1 / 2 Next
Everything Else
Last Post by Tim Rodman 7 years ago
24 Posts
4 Users
1 Reactions
11.8 K Views
RSS
Ellie
Posts: 129
 Ellie
Topic starter
October 30, 2018 1:37 pm
(@ellie)
Estimable Member
Joined: 6 years ago

I am trying to delete vendor prices (AP202000)and vendor details from the stock items (IN202500).

There are quite a few so it needs to be done in bulk.

How do i add a Delete action to an export scenario for this type of data? The regular <Action: Delete>  is not available in this case.

Alternatively, can this be done via GI with ability to delete records?


23 Replies
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
November 1, 2018 3:15 pm
(@timrodman)
Famed Member
Joined: 11 years ago

Hi Ellie,

This is a good question, but unfortunately I don't know how to do it. I've deleted header records before, but you need to be able to delete detail records which I don't know how to do yet.


Reply
Ellie
 Ellie
(@ellie)
Joined: 6 years ago

Estimable Member
Posts: 129
November 1, 2018 4:01 pm
Reply toTim RodmanTim Rodman

ahhh even @Tim doesn't know 😩 .. 

got 30, 000 manual records to delete...


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
November 1, 2018 5:36 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

If i had this problem, I would start with working out how to create an import scenario that could update those rows that you want to delete. This is covered in I100 Integration Scenarios training (look at 2.5.2 and 2.5.3). Then i would export those rows that I wanted to delete. Then in my import scenario, instead of doing any updates, i would just trigger the relevant Delete Row action (using the exported rows for the import).

 


Reply
Ellie
 Ellie
(@ellie)
Joined: 6 years ago

Estimable Member
Posts: 129
November 1, 2018 6:12 pm
Reply toRoyce LithgoRoyce Lithgo

Thanks Royce, i have done all that already.

I have an import and export scenario. I can even mark them as 'inactive' etc. but i can't figure out how to apply the delete row action. Acumatica doesn't seem to give the delete option in import and export scenarios on the detail level, it only works on summary level.

Any ideas about that last delete step

?


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
November 2, 2018 12:22 am
(@roycelithgo)
Honorable Member
Joined: 6 years ago

You're right. It doesn't allow you to call delete actions. Now I see the problem 🙂

How about publishing a DB script to delete the data via SQL? Of course you need to be really careful before doing this in your production environment.


Reply
Ellie
Posts: 129
 Ellie
Topic starter
November 2, 2018 10:41 am
(@ellie)
Estimable Member
Joined: 6 years ago

I guess that is what we will have to do as a last resort....


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
November 2, 2018 10:03 pm
(@timrodman)
Famed Member
Joined: 11 years ago

Ironically, I just discovered today that the delete action on a Sales Order Line is not available in field level security. I have a feeling that the two things are related since it's missing in both places.


Reply
Royce Lithgo
 Royce Lithgo
(@roycelithgo)
Joined: 6 years ago

Honorable Member
Posts: 557
November 4, 2018 9:22 pm
Reply toTim RodmanTim Rodman
Posted by: Tim Rodman

Ironically, I just discovered today that the delete action on a Sales Order Line is not available in field level security. I have a feeling that the two things are related since it's missing in both places.

I wonder whether Delete action is directly tied to Access Rights on the object? So if a user gets Edit or Insert access, Delete action is disabled. If they get Delete access, Delete action is enabled. Maybe Acumatica thought they were being smart by directly linking some objects to Access Rights.


Reply
Ellie
Posts: 129
 Ellie
Topic starter
November 3, 2018 12:00 pm
(@ellie)
Estimable Member
Joined: 6 years ago

Yea it is any Grid /Details rows. 

We opened a case with Acumatica support. Ill report back:)


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
November 7, 2018 8:34 am
(@timrodman)
Famed Member
Joined: 11 years ago

The Acumatica response will be interesting on this one.


Reply
Ellie
Posts: 129
 Ellie
Topic starter
November 9, 2018 11:05 am
(@ellie)
Estimable Member
Joined: 6 years ago

Finally heard back. 

You  setup a key field to let the system know which line to delete ( '@@FiledName' accomplishes this)

Then on the next line, map    to  =-2 , which is the same as clicking on Delete Row button

Adding a screen shot of a working import scenario  that deletes vendor prices for illustration which can easily be applied to all similar situations for anyone who can use it.

 


Reply
Ellie
 Ellie
(@ellie)
Joined: 6 years ago

Estimable Member
Posts: 129
November 12, 2018 12:56 pm
Reply toEllieEllie

Not sure how that happened... thanks for pointing that out.

 

I don't see an option to edit the old post anymore, so here is the correct screenshot:


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
November 11, 2018 8:54 am
(@timrodman)
Famed Member
Joined: 11 years ago

Awesome! Thank you for sharing. I don't see though the <Line Number> =-2 in your screenshot. Am I missing something?


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
November 12, 2018 6:44 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Wow this is great news. I don't remember seeing <Line Number> = -2 to delete a row documented anywhere.


Reply
Tim Rodman reacted
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
November 13, 2018 10:11 am
(@timrodman)
Famed Member
Joined: 11 years ago

Wow, that second screenshot is not what I was expecting. Great to have this on file for the next time I need to do something like this.


Reply
Ellie
 Ellie
(@ellie)
Joined: 6 years ago

Estimable Member
Posts: 129
November 13, 2018 7:22 pm
Reply toTim RodmanTim Rodman

As in, it is more simple than anticipated?


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
November 13, 2018 6:52 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Maybe add a Blog so it's easy to find?

Will be even better when a GI can be used as the source and then you just need to setup your criteria in the GI and the matching data gets automatically deleted. 


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
November 14, 2018 6:32 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

As in, the 1st item listed here:

https://www.augforums.com/augforums/everything-else/acumatica-2019-r1-new-features/#post-2963

 


Reply
Ellie
 Ellie
(@ellie)
Joined: 6 years ago

Estimable Member
Posts: 129
November 19, 2018 6:31 pm
Reply toRoyce LithgoRoyce Lithgo
Posted by: Royce Lithgo

As in, the 1st item listed here:

https://www.augforums.com/augforums/everything-else/acumatica-2019-r1-new-features/#post-2963

I hit reply to @timrodman when asking what was anticipated. sorry for the confusion. now i know to use quote instead of reply if i am responding to an earlier message on the forum.

 

 

 

 


Reply
Juriy Zaletsky
Posts: 17
 Juriy Zaletsky
November 19, 2018 9:01 am
(@docotor)
Eminent Member
Joined: 6 years ago

You can't delete in destination with help of export scenarios. It is not very hard to program such logic, but negative results will be much more then positive. Consider following use case: destination database has records, that come from two different sources: from Acumatica, and let's say from Salesforce. And if you want Acumatica to delete something at destination, you'll need to inform Acumatica to delete some records, but if you'll not be careful enough export scenario will delete other records which were brought by Salesforce. 

From that standpoint if it is needed to make synchronization of data between Acumatica and some custom destination I prefer to add some custom logic, that deletes data each time user clicks on delete button in Acumatica.


Reply
Page 1 / 2 Next
Forum Jump:
  Previous Topic
Next Topic  

Currently viewing this topic 1 guest.

Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,532 Topics
  • 11 K Posts
  • 11 Online
  • 2,420 Members
Our newest member: Katerina Pawlowski
Latest Post: Can't export GI's to excel that contain the FATrans DAC after upgrade to 2025 R1 in less than 25 min
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×