I have a requirement to send email from oracle code.
Email id , subject and body of the email is formatted in the oracle query. The body of the email is a simple hyperlink as follows.
https://www.example.net/ind/case/viewIndCase.action?submitType=0&caseID=011
caseId is dynamic and the where clause in the query accepts dynamic case id's
My query looks like,
select
'[email protected]' email,
'Welcome back !' subject,
'<a href="https://www.example.net/ind/case/viewIndCase.action?submitType=0&caseID='||c.case_id||'">https://www.example.net/ind/case/viewIndCase.action?submitType=0&caseID='||c.case_id||'</a>' body
from cases c where c.case_id = 011;
Output is:
<a href="https://www.example.net/ind/case/viewIndCase.action?submitType=0011="011>"https://www.example.net/ind/case/viewIndCase.action?submitType=0011="011</a>
Expected Output is:
<a href="https://www.example.net/ind/case/viewIndCase.action?submitType=0&caseID=011">https://www.example.net/ind/case/viewIndCase.action?submitType=0&caseID=011</a>
Can someone help find out why the caseId is replaced with number (011="011) instead of caseID=011 I am messing with quotes I guess but unable to find out.
&caseIDas a substitution variable namedcaseID(perhaps that's your caseId is dynamic and the where clause in the query accepts dynamic case ids) so if that's the case it would be helpful to include the value provided.