Creating a "Loop" for creating guest accounts

Hello everyone,

I am completely new and inexperienced in the field of automation/RPA.

I have been given the task/exercise of creating guest accounts for users in Azure. The information that must be provided is full name, first name, last name, email, and the department in which this person works (all of which is stored in an Excel file).

The problem I have now is that once a user has been created, the process has to be repeated. Is there a way to run the process again and at the same time delete the already created users from Excel or mark them as completed?

I hope I have made myself reasonably clear.

Many thanks in advance and best regards,
Werner

Hi @WernerD

→ Create a Column called status manually in your excel file.
→ Read the excel and store in a datatable using Read Range workbook activity.
→ Then use the For each row in datatable activity to iterate each row in the datatable.
→ Inside For each insert the Ui activities (Type into activity) to enter the data to the fields in Azure.
→ After entering all data then use the assign activity to update the status,

- Assign -> Currentrow("Status") = "Completed"

→ After for each row in datatable activity use the write range workbook activity to write the same datatable to same excel.

Use the For each row in datatable activity to iterate through each row in datatable it will take one by one row and enter data to Azure portal.

Hope it helps!!

1 Like

Hello Mahesh,

thank you very much for your quick help and the great explanation.
It worked right away and ran without any problems.

Thanks again.

Kind regards,
Werner

1 Like

It’s my pleasure… @WernerD

Happy Automation!!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.