I have a stored procedure built with optional parameters. However, when I create the SmartObject for it, it makes all the parameters required, and I can't change it. Is there a way to make some optional?
The documentation here for "Use parameters for stored procedures" makes me think so....even if the value is set to 'true'.
I already have a large number of SmOs created, and changing that value to 'false' now, breaks all those existing mappings. So I don't think that option is going to be viable. I would prefer parameters to properties in this case anyway. I'm curious if anyone has found an alternative.
Thanks in advance.
Best answer by dknudsen
I'm not sure how I missed it the other day, but the first link you provided did get me to a solution.
For security reasons, we only grant our K2 Service Account "Execute" permission to our stored procedures, but for optional parameters to work as designed, "View Definition" permission needs to be granted as well.
GRANT VIEW DEFINITION ON [schema].[StoredProcName] TO [K2User] AS [dbo]