We have a list of 20 employees, and we need to obtain the contact information for 12 specific employees. These 12 employees may or may not be listed consecutively in the employee data.
one way could be through a common identifier like same department or team
but what will be the expression for it?
I don’t think you could write a single expression in the Google Sheets Connector that could extract that data for you.
Here are some potential workarounds that use the Google Sheets Connector:
Inside the Google Sheet, write a formula that obtains the information for the 12 specific employees. Then, with the Google Sheets Connector, use the “Get row by index” operation to get the results of that formula.
Use the Google Sheets Connector to get the list of 20 employees and output it to a process variable. Then, use a FEEL expression inside a Script Task to obtain the information for the 12 specific employees.
Can you please help me with the expression
i tried this one
= output2[item.department=department].contact(output2 being the data that was read from the sheet)
but the value was giving me empty brackets
I tried this aswell
output2[item in item[5] = department][2]
this is giving a data of
[“########”,“Eva”,“5870000000”,“53”,“sales”] but not all data for the members in the department sales
Hi @Wish - I am going to mark @ev.bilske’s reply as the solution and close this thread, since you opened a new topic for your FEEL question: Expression help!