Forum Discussion
M_McDonald
16 years agoSuper Contributor
I think you might have 2 problems
1) You should use GetVoiceItems#ResponseAsXml
2) You are trying to do a context expansion and a gstring replacement at the same time... the context.expand wants single quotes (') while the gstring replacement wants double quotes("). Maybe not the best solution, but if you make put the email value into a property and reference that it may work:
[tt:28o6irac]def guid = context.expand( '${GetVoiceItems#Response#//ns1:getVoiceItemsResponse[1]/ns1:getVoiceItemsResult[1]/ns1:SRVoiceItem[//ns1:Email="${Properties#email}"]//ns1:Identifier}' )[/tt:28o6irac]
1) You should use GetVoiceItems#ResponseAsXml
2) You are trying to do a context expansion and a gstring replacement at the same time... the context.expand wants single quotes (') while the gstring replacement wants double quotes("). Maybe not the best solution, but if you make put the email value into a property and reference that it may work:
[tt:28o6irac]def guid = context.expand( '${GetVoiceItems#Response#//ns1:getVoiceItemsResponse[1]/ns1:getVoiceItemsResult[1]/ns1:SRVoiceItem[//ns1:Email="${Properties#email}"]//ns1:Identifier}' )[/tt:28o6irac]