Hi, I'm inside an automation chain and I need to get the current user's private workspace.
The trouble is that user names are in the form: username@domain.com, and the private workspace is named like 'username-domain-com'. How can I write a query replacing both "@ and ." from the current user's name with "-"?
SELECT * FROM Document WHERE ecm:path='/default-domain/UserWorkspaces/@{CurrentUser.name}'
is evaluated as
SELECT * FROM Document WHERE ecm:path='/default-domain/UserWorkspaces/myUser@domain.com'
but I need it to come out as
SELECT * FROM Document WHERE ecm:path='/default-domain/UserWorkspaces/myUser-domain-com'