#AskAnMCExpert AMPscript question: I'm trying to do a data extension insert and then immediately retrieve the CustomObjecKey from that row. If I try to do that within the same page, it returns the following error:
{"message":"Failed to convert parameter value from a Guid to a String.","description":"System.InvalidCastException: Failed to convert parameter value from a Guid to a String. - from Jint --> \r\n\r\n --- inner exception 1---\r\n\r\nSystem.InvalidCastException: Object must implement IConvertible. - from mscorlib\r\n\r\n\r\n\r\n"}
My current workaround is to redirect to another page to do the lookup. Is there a way to retrieve the CustomObjectKey of an inserted row after execution on the same page?
1 Kommentar
I just found that SSJS platform functions will allow this, so I'm going to shift my code from AMPscript to SSJS