Hi All. I'm trying to delete a user and i get the ...
# administration
j
Hi All. I'm trying to delete a user and i get the message that it cant be deleted because of dependent records with the following records to note. the problem is that it doesn't tell me what type of records there are for me to delete. Any thoughts on how to get past this?
c
Guessing that's the internal ID of the custom record that they own. You should be able to see "Customization > Lists, Records, & Fields > Record Types" what custom records they own and edit to change the owner to yourself.
j
@Chris Simon I'm sure that is the internal id of a custom record. But they are not the owner of the "table" or definition of the custom record, so they don't show up on that list of record types. The problem is that i have over 100 custom record types, so it's too many to look though each one. Maybe there is a search that can help? It's really a lame, incomplete error message
d
maybe a sql query would find it... let me check
💣 💥
Copy code
SELECT
	SystemNote.recordId record_id,
	customrecordtype.name as record_type_name,
	customrecordtype.scriptid as record_type_scriptid
FROM
	SystemNote
	JOIN CustomRecordType ON systemnote.recordtypeid = customrecordtype.internalid
WHERE
	recordId IN (116411, 116412)
	AND systemnote.type = 1
🙌 1
throw that into Tim Dietrich's SuiteQL query tool if you have it already
presumption is that the custom record has system notes enabled
👀 1
j
@David B WOW! that worked! thanks so much, great pull...
👍 1
l
right click in browser, view source, find one of these strings. sometimes the data type is shown in the html code.
👀 1
slack bookmark 1
👍 1
d
oh wow, that's a great trick!
l
it's useful to find the exact field id names
j
@leo_ns Good idea. I do that sometimes on other stuff, just didn't think about it this time. thx