Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

HR process

Posted on by 30
HI there
 
We intend to send the relevant position description based on the role selected in the form, along with the standard payroll forms.
 
There are 4 potential folders based on the role selection
 
Then i want the word documents to be updated based on the selections.
 
I have not done this before  - any suggestions?
 
regards
  • Suggested answer
    abc 123 Profile Picture
    abc 123 639 on at
    HR process
    There exists a Switch action that is a little cleaner than a bunch of nested conditions.
     
    Pseudo Code:
    User Uploads document to incoming folder and select metadata Role.
    Flow is triggered.
     
    Init strFolder As String = "Error"
     
    If Role is null, Terminate Cancel.
    Else....
     
    Switch based on Role
    Role = Apple
      strFolder = A
    Role = Peach
      strFolder = P
    Role = ...
      strFolder = ...
    //End of Switch
     
    If strFolder <> Error
      Move File
      Current Location: Incoming Folder
      Destination Location: strFolder
    End If //strFolder <> Error
     
    End If //Role is Null
     
     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,532

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,050

Leaderboard