TD-24026: SalJSON: keyword 'this' not working using SalJSONSerializeUDV

Report bugs and possible workarounds.
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Posts: 1088
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

TD-24026: SalJSON: keyword 'this' not working using SalJSONSerializeUDV

Post by Dave Rabelink » 07 May 2018, 07:39

The this keyword can be used in a class to deserialize JSON string to udv.

But it can not be used when serializing udv to JSON string.

To create classes which are able to convert its data between udv and JSON strings the this keyword must be working for both SalJSON functions.

See testcase.

3 buttons:
1) ToJSON -> this
This fails. It tries to create a JSON string from the udv data.
2) ToJSON -> workaround.
It will first make a copy of the udv into a local variable. This local variable is then passed to the SalJSON function which works.
3) FromJSON -> this
This works ok. The this keyword can be used.

This issue has been registered as Ticket 3752520
TD defect number:

TD-24026: SalJSONSerializeUDV() fails in returning false when using the 'this' keyword for the sObjectName parameter of the function
You do not have the required permissions to view the files attached to this post.
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 0 guests