web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extracting data from a...
Power Automate
Unanswered

Extracting data from a form to a csv file, populating office details, just by choosing which office.

(0) ShareShare
ReportReport
Posted on by 24

I am using forms to create a user CSV. HR will fill out the form, then I want power automate to populate the csv so I can use this to create a user. I need to take the first letter of the first name and use the whole of the surname.

In the form, I ask the HR rep for the persons first and last name, manager etc. Then I want to just create that into the CSV, I can move the stuff over easily enough, for the name and manager etc, I know how to do this with Powershell, but I am having difficulty with it when I use the 'create csv table' option. Is there an 'Expression' I need to use?

We have two sites, and I want to put the branch in, if this site is chosen, populate this whole address and if this site is chosen, then choose this one.

Any ideas or comments thankfully recieved

Thanks

TIm

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Tim-Holmes73 

    See my example below - not sure if this is what you are asking for...  I used a Compose actions for the first and last names - you will just reference the data from Forms.  I could have/should have used a compose action rather than a variable.  Let me know if you have any questions.

    image.png

    image.png

    image.png

     

     

  • Tim-Holmes73 Profile Picture
    24 on at

    I just realized I am doing this through Powershell,

    $username = Name.substring(0) + " " + $Lastname

    but what I do need is to be able to choose from 2 addresses, and when I choose the Vancouver office on the form, it will populate the Street address, City, state, zip etc. Is there a way to do this?

    Thanks again

  • Verified answer
    ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Tim-Holmes73 

    It depends on where the address data is stored.  For example, it there is a SharePoint list where the address info is stored, you can look it up via Power Automate (assuming that there is a way to link the data such as the city name).   If you have the data stored in SQL Server as well as many other locations, you can access that data via Power Automate but it will require an upgraded license.

     

     

  • Tim-Holmes73 Profile Picture
    24 on at

    Awesome, just the nudge I needed in the right direction.

    Thanks

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Tim-Holmes73 

    I am glad that I could assist!

    If my suggestions helped you solve your issue, please mark my post as the solution - that will help others with a similar question quickly find a solution.

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard