web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details
Copilot Studio - General
Answered

PVA to pass variables to excel sheet on SharePoint?

Like (0) ShareShare
ReportReport
Posted on 13 May 2022 11:36:23 by 508

 

The screenshot below is a file on SharePoint that is used to calculate rates based off of the Pay Grade Slotting, wether they work Night Shifts, Licensure date or Years of  Service as of a Point in Time, in this case 12/21/2021.  Weather they are full time employee.

 

Based on the pay grade and the years of service the calculator selects the years of experience and the rate for that Grade...Th experience is in half year increments.  Just curious if its possible to pass these variables to the file in Sharepoint and bring back the rate which in this case is $54.14.  Is this possible?

 

VeeLearnMSFT_0-1652441537406.png

 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    32,205 Most Valuable Professional on 23 May 2022 at 08:04:21
    Re: PVA to pass variables to excel sheet on SharePoint?

    Hi @VeeLearnMSFT,

     

    Can you try these three expression below to split and extract the values into three output variables in the last action of your flow?

     

    First value:

    replace(replace(split(body('Run_script'), ',')[0], '[', ''), ']','')

     

    Second value:

    formatnumber(float(replace(replace(split(body('Run_script'), ',')[1], '[', ''), ']','')), 'C2', 'en-us')

     

    Third value:

    formatnumber(float(replace(replace(split(body('Run_script'), ',')[2], '[', ''), ']','')), 'C2', 'en-us')

     

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2

Loading started
Loading complete