I have some nested CDTs, like a nested in b, b nested in c, I want to cast it to recordtype with relationship, like C has one-to-many relationship to B, B has one-to-many relationship to A. All fields are mapped, how can I cast?
Discussion posts and replies are publicly visible
Define matching record types (A, B, C) for your CDTs.Use nested loops to iterate through C then B.Inside loops, extract data from CDTs and assign to record types.If your record types have list fields designed to hold related records (e.g: record_C.related_B), directly add the created records (e.g., record_B)
Thank you, it works