In one of my workflow using Process Builder, I have "DQL Write" step, I want to write a DQL in there to deleting/ Removeing one value in repeating attribute.
I have a custom type called invoice_document inherited from dm_document, with repeating attribute of item_name of STRING type. In the DQL I want to delete any item_name with say "Paper" as value for a given r_object_id.
Can I write one DQL to accomplish that ?
Note
I tried to directly update underlying repeating attribute table
update dm_dbo.invoice_document_r set item_name = NULL where r_object_id = 'XXXXXXXXXXXXX' and item_name = 'paper'
I get this error Error occured during query execution :[DM_QUERY_E_TABLE_NO_ACCESS]error: "The table, invoice_document_r, is not registered or you do not have access to it."
But when I do select on dm_dbo.invoice_document_r , then I get the result, for example the query below returns me the result
select * from dm_dbo.invoice_document_r where r_object_id = 'XXXXXXXXXXXXX' and item_name = 'paper'