Convert String To Int for Rest-Erp Parameter

I’m attempting to pass session variables into GetByID method call. Problem is that all of the session variables appear to be strings, and I need to convert one of them to an Integer for the method call to work.

How to convert this to an Int?
“%session.context.initialValueIn.contextValue.CallSeqNum%”

1 Like

Can you use something like? Not sure about the % being there though.

#'Number({session.context.initialValueIn.contextValue.CallSeqNum})'#
3 Likes

Try not wrapping it with quotes, see if that works

3 Likes

Couldn’t get it work passing the context values into method parameters. I was able to get around it by assigning them directly to the KeyFields dataview with “row-update”.

image

“%session.context.initialValueIn.contextValue.CallSeqNum%”

3 Likes