Hi Community! I'm new to SOA Suite and I'm facing two issues in my project.
- I have defined a variable $currentDate in an Assign node as fn:string(fn:current-dateTime()). Now I have to subtract 2 minutes to my $currentDate.
I find this expression on the web but it doesn't work: xp20:subtract-dayTimeDuration-from-dateTime($currentDate,"PT2M")}
The error I get is on the namespace: http://www.w3.org/2005/xqt-errors}XPST0081: The prefix "xp20" used in the qualified name "xp20:subtract-dayTimeDuration-from-dateTime" can not be resolved
I also added the namespace as shown below but nothing changes.

How can I get my custom date?
- Once I have defined a variable with my custom date I need to call it in a XQUERY like this below:

I need to insert another WHERE clause where LastModifiedDate must be >= my variable Custom Date
How can I implement this solution?
Thanks in advance