You can do this much faster using tool, such as TextPad, download from www.textpad.com and install it.
Let say you need to query for Id from an Excel file. Copy and paste the Ids into TextPad, example:
Go to Search menu and select Replace... or F8 for shortcut
in Find What: .+
in Replace With: '\0',
in Conditions: select Text and Regular expression
and click Replace All.
And the result:
You may need to remove comma in last line. So you can put this Ids into your query filter, example:
SELECT Id, Name, Email FROM Contact Where Id IN ('0038000000zYkACAA0',
'0038000000zYkE5AAK',
'0038000000zYkJWAA0',
'0038000000zYlBIAA0',
'0038000000zYl8xAAC',
'0038000000zYkKSAA0'
)
If you are using Notepad++ since it is free, change to this:
in Find What: .+
in Replace With: '$0',
in Search Mode: select Regular expression
Its very useful. Thank you.
ReplyDeleteIt is very useful time save
ReplyDelete