cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Updating a browser-based table AS a table -- Example: copying from Excel to Planview timesheet

Is it possible to reference the target table AS a table instead of a series of input fields?

Instead of 100+ Actions, nest it within a loop that reads from the Excel table and updates a specific cell in the target table?

 

I would like to automate copying time from an Excel spreadsheet into my online Timesheet in Planview 

MelissaReed_1-1666630377337.png     to       MelissaReed_0-1666630343110.png

Copy a total copy/paste won't work because each Planview cell (on the right) must be activated (clicked on) in order to enter values.

I have something that works:  I did a Recording of myself copying/pasting between windows, cell by cell (exactly what I do now manually).   

 

This works but treats each cell of the Planview table as a separate input field:   Input, Input2, Input3.....

MelissaReed_2-1666630803229.png

 

It works, but creates 100+ Actions in the flow,  treating each cell as its own Form Field.   Lots of disadvantages to that.

 

Is it possible to Populate/Update the target UI's table AS a table -- row/column -- instead of a series of input fields?

Instead of 100+ Actions,  It could be a SINGLE Populate/Update action nested within a loop that reads from the Excel table and updates a specific cell in the target table.   

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
VJR
Multi Super User
Multi Super User

So, there is a pattern, right?

 

<input id="32358###daily#1"

<input id="32358###daily#2"

<input id="32358###daily#3"

 

Add an UI element for the first one and then using Custom/dynamic selectors access the others via a variable. Reach till 7 (for 7 days in week as in the above code). Then check out the Input Id for the text box in the 2nd row and access it in a similar way.

Solved: Dynamic Selector (variable in selector) in Desktop... - Power Platform Community (microsoft....

 

View solution in original post

6 REPLIES 6

It might be possible.

Can you upload some HTML code for the page?

VJR
Multi Super User
Multi Super User

If the code-behind of the page (html) has a pattern then yes you can do it with a single action in a loop.

 

Ex: 

If the first textbox has a html code like   ..../tr/td/Input(1)...

and the second has ..../tr/td/Input(2)...

Then using custom/dynamic selector feature, you can add a Counter variable to iterate the value within the braces and populate value in that field.

Add condition to move to the next row when the first is completed.

 

On the other hand, also see if Planview has a direct Data import option to import an Excel.

I'll reply to the last point first -- The Timesheet page itself doesn't appear to have an import option and while Planview may have a data import API option this to be something that doesn't require permission setups. Plain vanilla PAD.  

Responding to your first question -- I don't think this HTML fits that description.  I pulled it up and did a View Source and here's a snippet of that code for the first row.  No parameters.  Each cell appears to be explicitly named.

Here's a snippet:

 

<tr class="workRow">

<th class="sr-table-cell" scope="row"><span class="sr-only">Time - COV Websites</span></th>

<td class="extraCol no-print">

<button class="extra-button" type="button" id="32358###menu" title="Actions">

<span class="timesheet-icon-16 menu-icon"></span>

<span class="sr-only">Action Menu Options for Time - COV Websites</span>

</button>

<div class="extra-menu-content" data-trigger="32358###menu">

<ul class="standard-wrapper banner-list-menu">

<li><a href="/planview/TrackTime/Remarks.aspx?sc=32358&ln=&rc=13126&pn=388&am=&popup=1&back=close" class="open-child-window">Remarks</a></li>

<li tabindex="0"><a tabindex="-1" href="../../CRI/issuesummary.aspx?sc=32358&rope=Y" class="open-child-window">Issues</a></li>

<li tabindex="0"><a tabindex="-1" href="../../TrackTime/TRWorkDetail.aspx?sc=32358&rc=13126&pn=388">Detail</a></li>

<li tabindex="0"><a tabindex="-1" href="../../Shared/AllocationStatus.aspx?sc=32358&rc=13126">Reported Time</a></li>

<li class="banner-list-group-border" tabindex="0">

<a tabindex="-1" href="#" class="delete-row" data-delete-id="32358###assigned">Remove</a>

</li>

</ul>

</div>

 

</td>

<td class="descrCol">

<label title="Item is currently pinned and automatically added to future timesheets" class="no-print">

<input id="32358###favorite" class="favorite check" type="checkbox" checked="checked" />

<span class="indicator timesheet-icon-20"></span>

<span class="sr-only">Pin Time - COV Websites to timesheet</span>

</label>

 

<span title=" Project: COV Website Modernization

> Time - COV Websites

">

Time - COV Websites

</span>

 
 

</td>

 
 

<td class="dailyCol hoursBox entryBox" >

<label>

<input id="32358###daily#1" type="text" value="" />

<span class="sr-only">Time for Time - COV Websites on 10/23/2022</span>

</label>

</td>

<td class="dailyCol hoursBox entryBox" >

<label>

<input id="32358###daily#2" type="text" value="" />

<span class="sr-only">Time for Time - COV Websites on 10/24/2022</span>

</label>

</td>

<td class="dailyCol hoursBox entryBox" >

<label>

<input id="32358###daily#3" type="text" value="" />

<span class="sr-only">Time for Time - COV Websites on 10/25/2022</span>

</label>

</td>

<td class="dailyCol hoursBox entryBox" >

<label>

<input id="32358###daily#4" type="text" value="" />

<span class="sr-only">Time for Time - COV Websites on 10/26/2022</span>

</label>

</td>

<td class="dailyCol hoursBox entryBox" >

<label>

<input id="32358###daily#5" type="text" value="" />

<span class="sr-only">Time for Time - COV Websites on 10/27/2022</span>

</label>

</td>

<td class="dailyCol hoursBox entryBox" >

<label>

<input id="32358###daily#6" type="text" value="" />

<span class="sr-only">Time for Time - COV Websites on 10/28/2022</span>

</label>

</td>

<td class="dailyCol hoursBox entryBox" >

<label>

<input id="32358###daily#7" type="text" value="" />

<span class="sr-only">Time for Time - COV Websites on 10/29/2022</span>

</label>

</td>

 

@Henrik_M   You may have been going the same route as @VJR   See the code snippet I left in my reply to him.   

VJR
Multi Super User
Multi Super User

So, there is a pattern, right?

 

<input id="32358###daily#1"

<input id="32358###daily#2"

<input id="32358###daily#3"

 

Add an UI element for the first one and then using Custom/dynamic selectors access the others via a variable. Reach till 7 (for 7 days in week as in the above code). Then check out the Input Id for the text box in the 2nd row and access it in a similar way.

Solved: Dynamic Selector (variable in selector) in Desktop... - Power Platform Community (microsoft....

 

Yes!  I see where you're going now.  This was exactly what I was trying to do.

And the link you included solved the other part of it  -- you can dynamically reference UI Elements, you aren't locked into an explicit list of pre-captured UI references!  WHAT A GAMECHANGER!

 

A little more detail about how to set up the dynamic UI Element reference for anyone following behind me:

  1. Create Action: Populate text field on web page --  on the config window, click Add UI and select the first cell on your browser window.  It will assign a fixed name.    
  2. Open to your UI Elements Editor (button on upper right corner -- stacked squares icon)
    1. From that UI Elements list, click on the UI Element you just added.  It will open a dialog box
    2. Scroll down the Elements list (in the middle) to 11 Input Text and click on that 
    3. In the properties window to the right, look for "Id" and doubleclick on Value field to edit it.
    4. Replace the fixed text value that's there with a variable reference and SaveMelissaReed_0-1666791010318.png

      Now you can dynamically reference any input text on that browser page.

Return to your main app code.

I set up two nested loops -- one to cycle through my project #'s (rows) and within that a 2-6 loop for Mon - Fri.

***For how I'm hard-coding the # hours to 0.5 but later I'll get that from my Excel table.

MelissaReed_1-1666791752423.png

Within those loops there are only two actions:

  1. Setting the variable  UIReferencePlanviewTimesheetCell  by formula that calculates the Input ID.
  2. Populate Text field on Web Page.   FYI: the "input field text" value DISPLAYED will not change from your original  UI Element capture.   Don't let that throw you.   

I could've eliminated #1 by putting that formula directly into the Input Text.ID formula, but I wanted to be able to see exactly what that value was while I'm debugging so I've calc'd it here and referenced that calc'd variable in the UI Element definition.

 

I set it up with 5 project #'s and ran it and watched it pop in "0.5" across each row!

Thanks @VJR 

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (1,540)