Passing string value to lambda function
I wrote a lambda function which accepts "string" type parameter. When I tried to invoke this function within another lambda function, it needs to enter the value to pass to the function to execute. So I entered the value "XXX". However, it throws the error "can't convert this JSON document into a string" when I pass the Guid value as a string. To resolve the issue, I add "\" to include the Guid value like "\""+m.messageId.toString()+"\"". The error is gone and the the value is passed to the function.
Comments
Post a Comment