Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

delete attachment flow designer not working

amar7
Kilo Guru

Hi community ,

i am trying to use delete attachment action in flow designer to delete attachment from the data source .
data source is created in different application (Azure blob spoke ) and the flow also create in the same application ,

but when i am trying to perform the action i getting an error  like : "Error: undefined is not a function." 

 

i have provided all the access which need to be preform :

amar7_0-1683003586723.png

 

After this also there is no luck 

can some one help us out what might be blocking us .

 

regards,

amar kumar pandit 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@amar7 

on sys_attachment table the Can delete checkbox should be checked

Did you check that part?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur yes 
i did it already 

amar7_0-1683005823923.png

 

@amar7 

the flow is not in global scope right?

if it's in another scope then did you create cross scope privilege for delete

It should be like this

AnkurBawiskar_0-1683006367126.png

AnkurBawiskar_1-1683006387086.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hello Ankur,

 I am also facing the similar issue , Delete attachment action is not working in flow designer and throwing the same error as the above person mentioned , I have created cross-scope privileges for both sys_attachment and sys_data_source for delete operation. 

 Not able to figure out why this undefined is coming , Please look into my issue once , as it is very important to me.