I need to add a contact based on account name(I have a account name and not account-id) . But, in salesforce, they don't have option to add contact based on account name and it has only account-id option. 1. Is it possible to add contact based on account name. 2. Is it possible to get account-id based on account name.
That's exactly what you need to do, query the account Id and then populate the contact lookup field with the account Id. The only problem that you've got is that you might have more than 1 account with the same name in the system, so you might need to add more criteria going forward. You can simply get the account Id based on the name with a query like this: