In the PopCommerce's Detail.xml there is a parameter productId being passed to screen. How do I pass that parameter to service-call ?
I have tried below code in service call but this doesn't work
<field-map field-name="productId" from="productId"/>
The parameter in the screen is
<parameter name="productId" required="true"/>
and the service I have defined is
<transition name="createProductReview">
<service-call name="create#ProductReview" web-send-json-response="true">
<field-map field-name="productStoreId" value="POPC_DEFAULT"/>
<field-map field-name="productId" from="how do I use the productId parameter here ?"/>
<field-map field-name="userId" from="ec.user.userAccount.userId"/>
<field-map field-name="statusId" value="PrvwPending"/>
</service-call>
<default-response type="none"/>
</transition>