How do I allow an inbound action to delete attachments on my data source?

thomaskennedy
Tera Guru

We're going to receive vendor files through email. While I expect to parse these file through scripting, it would be nice to have the option to attach the file to a Data Source and associate that with a transform map, so I could just run a transform on it with little to no scripting if that scenario comes up. 

 

So I tried deleting the old attachments through my Inbound Mail Action, similar to this post. But my calls to delete existing attachments are ignored.

 

I disabled my scoped Inbound Action and tried the same thing from a Global inbound action, but the result is the same. My inbound action can add attachments to the data source, but it cannot delete.

 

I want to grant permission to a global inbound action (or to my scoped inbound action) to delete attachments belonging to my scoped application, but I don't see how to do that. I can see the documentation about cross-scope privileges but I do not quite see how to use it.

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi @thomaskennedy 

When an email is received, the script is executed by that user and so there could be a permissions issue? Otherwise, if you don't think there is (as in...you're testing it yourself and you're an admin) then please share the exact script you are working with?

 

Alternatively, if you wish for this to run for anyone that emails in with the matching criteria, then you may need to fire an event, pass the information in the parm1 and/or parm2 and then use a script action to execute what you need it to do. This should allow it to happen async and count as being on behalf of the "system" versus a specific user and their roles.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Hi @thomaskennedy 

When an email is received, the script is executed by that user and so there could be a permissions issue? Otherwise, if you don't think there is (as in...you're testing it yourself and you're an admin) then please share the exact script you are working with?

 

Alternatively, if you wish for this to run for anyone that emails in with the matching criteria, then you may need to fire an event, pass the information in the parm1 and/or parm2 and then use a script action to execute what you need it to do. This should allow it to happen async and count as being on behalf of the "system" versus a specific user and their roles.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Yes thank you I will use an event to kick things off.