I am creating a purchase requisition workflow for a group of companies. on some stage, a CFO must approve the request based on the initator's company, so what I am actually doing is as follows:
NOTE: Company X CFO, Y, and Z are group names already been created in sharepoint with users defined inside them.
the problem that I'm facing is the workflow is accepting company X CFO and company Y CFO but not accepting company Z CFO. the error message received is: Failed to send notification. Cannot get the full name or e-mail address of user Company Z CFO.
thanks for the reply. I have already tried a people picker variable in the workflow instead of using single line of text and it didn't work out. for example, I set the name of the people picker to "Approvers" of type person or group and then when running the if statements and knowing the company name of he requester I set the "Approvers" variable to "Company X Group" which is already defined in SharePoint. when creating a flexi task and assigning it to "Approvers" I receive an error at runtime that the workflow could not find "Company X Group". I guess its something related to a group within a group.
I will give a try one more time and let you know
first you need to add the "Company" field to User Profile using Central Admin, by default SharePoint does not map the company name. instead it maps office location.
follow this link:
after that in the workflow, you will find the company field made available when querying user profiles.
If it works for Company X CFO and Company Y CFO but not for Company Z CFO I would suggest to check if there are differencies between the user accounts in the Y and Z group. The user accounts in the Company Z CFO group, do they have e-mail addresses assigned?
When I have to accomplish this, I don't use groups at all, instead I manage all my approvers in a list. If all else fails, I would suggest trying that.
This is what I do all the time and it has never failed on me.
I have all approvers in one manageable location. I can give the list unique permissions and give certain people access to manage the list if changes need to be made.