Skip to main content
Question

Deleting Attachments via Workflow

  • January 2, 2025
  • 4 replies
  • 69 views

Forum|alt.badge.img+6

Hello,

I am trying to delete an attachment from a document revision via workflow, but I am getting this error:

 

 

Unfortunately the general error message is not really helpful.

 

When I run the same in postman everything works fine. Basically it is the same REST-Call the Aurena Client uses when an attachemnt is deleted from the document revision.

 

Any ideas why id does not work via workflow?

4 replies

Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2901 replies
  • January 13, 2025

Hi,

My theory, but it's probably hard to trouble shoot this, is that the resulting HTTP request doesn't look like it should. I haven't worked with workflows much but is there a way to see exactly how the HTTP request looks like? Does the log show any such details?

Longshot: should there have been any quotes (single or double) around "ORIGINAL" there? 🤔 
 


Forum|alt.badge.img+6
  • Author
  • Do Gooder (Partner)
  • 15 replies
  • January 16, 2025

@Mathias Dahl 

Hi Mathias,

usually no quotes are needed. When I change the parameter to a non-existing file (like the DocType to “XYZ”), I don’t get an error but - of course - the file is not getting deleted.

Therefore, it seems the system tries to delete the file but for some reason it throws an error.

 

/Stefan


Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2901 replies
  • January 17, 2025

@FleStefSc 

That's probably a good conclusion... It's hard to say what could be wrong without more details. A long-shot: Could it be that the user that executes the workflow transaction doesn't have Edit or Admin access on the document?


Forum|alt.badge.img+6
  • Author
  • Do Gooder (Partner)
  • 15 replies
  • January 20, 2025

@Mathias Dahl 

I am using the same user for workflow and Postman. But anyway, I will try to find another solution. Thank you!