Custom function arguments not working

Custom function arguments not working

Hi,

I have a custom function to update a case and that function has two arguments Case Id and Parent Invoice respectively. Here is the screenshot attached

Custom function to update a case
Parameters
Parent Invoice - Custom Lookup Field

Using Integration task SearchRecordsByPDC I pass the parameter Parent Invoice. If I hardcode invoice id its working fine but when i pass the parent invoice parameter it is not working. I guess the value itself is not passed into the parameter. Help me resolve this issue as early as possible. This is highly needed.