New answers tagged

2 votes

To have different data type for same variable in Rest API Request body

You would have to have two different wrappers, and choose the appropriate one. Apex is a strongly typed language, so the same symbol can't be used as two different types. Alternatively, as Phil says, ...
sfdcfox's user avatar
  • 477k

Top 50 recent answers are included