在IBM 中,尝试将单引号字符串值设置为:'ACTIVE',但是当我试图将QueryString值设置为null时。如果我删除单引号字符串(‘活动’)工作良好。请告诉我如何修复下面的代码:
action:
- set: body.Envelope.Body.QueryString
from:
- FName
- LName
- email
value: "'select id from emp where emp.firstname ='+$(FName)+' and emp.lastname ='+$(LName)+' and primaryemail ='+$(email)+' and active =’ACTIVE’ '"发布于 2018-02-08 17:45:55
使用the变量解决上述问题。
在程序集->before输入中,拖动setVariable
在setVariable中:
select id from constituent where consname.firstname='$(request.parameters.FirstName)' and consname.lastname ='$(request.parameters.LastName)' and primaryemail ='$(request.parameters.email)' and active = 'ACTIVE'值之后,queryString映射到输入。
现在,查询按预期的方式出现,如下所示:
select id from constituent where consname.firstname='Sunny' and consname.lastname ='Tom' and primaryemail ='synny.tom@gmail.com' and active = 'ACTIVE'这对我有用。
发布于 2019-02-08 20:29:39
我宁愿发表评论,但我在网站上没有足够的声誉。因此,乍一看,我想问一问:您是否尝试过替换以下
’’U+2019 :右单引号{单逗号引号}
是围绕活动词,的经典符号。
''U+0027 :撇号{APL引号}
就像你的其他变量值一样?
https://stackoverflow.com/questions/48572760
复制相似问题