I’m doing a mass import of data from an iSeries to SuiteCRM. I’ll want to update existing items and create new ones. I’m dealing with accounts, contacts, and users. What’s the recommended way to find out if a member of one of these modules matches the information I’m about to work with?
I’ve read that getBean(type, $id) will fill $id with a value if the bean exists, and null otherwise, but I don’t see how that works if the module hasn’t been searched yet. I’ve also read sample code suggesting the use of retrieve_by_string_fields, checking if the return is null not not. Is that better than my first way? It certainly makes more sense. Thanks for any help!