Hi,
I'm trying to get the latest contact history entries and convert them to a list field, in order to export them. I saw that I could use record\findRelatedMany function. I'm trying to make it works with findRelatedOne (and after use findRelatedMany), but I'm getting
My actual code is
histId = record\findRelatedOne('Contact', id, 'Stream', 'createdAt', 'desc')
But I'm getting nothing as result (and I've inserted one history just to be sure there was some data in the history).
I'm not able to find the "Stream" relationship name into Contact relationship screen. Where can I find these "common" relationship names?
Thanks
I'm trying to get the latest contact history entries and convert them to a list field, in order to export them. I saw that I could use record\findRelatedMany function. I'm trying to make it works with findRelatedOne (and after use findRelatedMany), but I'm getting
My actual code is
histId = record\findRelatedOne('Contact', id, 'Stream', 'createdAt', 'desc')
But I'm getting nothing as result (and I've inserted one history just to be sure there was some data in the history).
I'm not able to find the "Stream" relationship name into Contact relationship screen. Where can I find these "common" relationship names?
Thanks
Comment