cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DTutt
Frequent Visitor

Help with an updated Sharepoint list.

I have created a flow that pulls information from a sharepoint list. Basically a user creates a new equipment request on sharepoint. It goes to their manager for approval. If approved, it sends an email to IT which creates a ticket and requests a quote. IT then goes into Sharepoint and adds the qoute amount. This triggers Flow to send another approval email to the manager with the qoute added. However, it is not sending the updated information, it sends pre update information. For example, I create a request and leave the qoute blank. IT updates and adds a cost of say 100.00. The email leaves will leave the space for the qoute blank. If I put a value in the original request of 1, and then update with a cost of 100.00. The email for approval puts a 1 for cost instead of 100.00. Basically it is not pulling the updated price. Does anybody kow why? Does anyone know how to correct? The flow works perfectly from start to finish, just is not updating the cost.

1 ACCEPTED SOLUTION

Accepted Solutions
ScottShearer
Most Valuable Professional
Most Valuable Professional

So in your seond approval, I want to know where your point to when you grad the values to display in the approval.  You need to select them from the Get Item Dynamic properties.  I suspect you are grabbing the stale values from the "When an item, is created" Dynamic properties.

 

 

See screen shot:

 

Approval3.png

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

17 REPLIES 17
v-yuazh-msft
Community Support
Community Support

Hi @DTutt,

 

Could you please share a screenshot of the configuration of your flow?

What is the 

I afraid that you choose a qoute  dynaimc content of the original request in the approval action.

 

You could add a "get item" action before the approval action,and then choose the qoute dynaimc content of the original request in the approval action.

Please make sure youi have choose a qoute dynaimc content of the updated request in the approval action.

 

Best regards,

Alice

Here is the flow....

2018_07_18_09_32_57_Edit_your_flow_Microsoft_Flow.jpg

  

 

 

 

So I should add this....

2018_07_18_09_49_28_Edit_your_flow_Microsoft_Flow.jpg

 

 

and then I am not sure what you metioned after that.

ScottShearer
Most Valuable Professional
Most Valuable Professional

 

I believe that you need to use a Get Item action (and remove the When an item is created or modified trigger) after your condition and retrieve the current values of the list columns.  Your second approval is referencing values from when the item was created which is stale data.  Change the reference in the second approval to values from the Get Item action.

 

To be honest, I am suprised that you can use a trigger inside of a Flow (other than to start the Flow of course) and suspect that this may be a bug. 

 

Scott

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

If I remove the When an item is created or modified, the fow will go all the way to the end before I even have a chance to update data on Sharepoint. As it is, it gets to that step and waits till an update is made. The flow works great except for not grabbing the updated value.

ScottShearer
Most Valuable Professional
Most Valuable Professional

For your original post:

"Basically a user creates a new equipment request on sharepoint. It goes to their manager for approval. If approved, it sends an email to IT which creates a ticket and requests a quote. IT then goes into Sharepoint and adds the qoute amount. This triggers Flow to send another approval email to the manager with the qoute added."

 

The bottom line is that you need to retrieve the data in the Flow after it has been updated.  There are a variety of ways of accomplishing this.  For example, use a "Send email with Options" action to send the email to IT.  The Flow will pause until IT responds to the email - they should not respond until they update the SharePoint list.  Then the Flow can continue, use the Get Item action and start the second approval.

 

Scott

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Ok I added the following get item after adding a "send email with options" and it still returned a blank quote.

 

2018_07_18_15_34_58_Edit_your_flow_Microsoft_Flow.jpg

 

Did I do the "get item" incorrectly?

 

 

ScottShearer
Most Valuable Professional
Most Valuable Professional

Could you post a screen shot of entire Flow?  Don't know why you are in a loop - should not be.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
ScottShearer
Most Valuable Professional
Most Valuable Professional

Could you post a screen shot of entire Flow?  Don't know why you are in a loop - should not be.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Here it is. Let me know if you need to see inside of each step.

Current_Microsoft_Flow.jpg

 

 

 

ScottShearer
Most Valuable Professional
Most Valuable Professional

@DTutt- One thing that should be changed that I can see is that you are using Get Items VS Get item - that's why you have the loop.

 

I have created and successfully tested a Flow that you can use an an example.  The Flow starts when a new item is created.  When approved, an email is sent using the Send Email With Options action.  I have only one Option - OK.  The email tells IT to click on OK when they have updated the SharePoint list.  The Flow pauses until IT clicks on OK.

Then, I use Get Item to retrieve the updated data and start the second approval.  The second approval references data returned from Get Item.

 

TwoStep1.jpg  

 

TwoStep2.jpg 

 

TwoStep3.jpg  

 

TwoStep4.jpg

 

If this solves your issue, please mark you post as Solved.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Still getting a blank total. I must be doing something wrong. When I do a "get item" here is what I am entering.

Get Item_Flow.jpg

 

 

 

I was able to successfully add the option to cause the run to pause till hitting OK. It is still pulling old data and not the updated. Obviously I am doing something wromng wrong. How do you tell the thing to grab the updated data instead of the old. Below is what I am entering for the second email that should have the updated total.

 

 

Email with quote_Flow.jpg

 

 

 

 

Thaank you by the way, I really appreciate your help.

ScottShearer
Most Valuable Professional
Most Valuable Professional

I assume that the Get Item action is placed after the send email with options - correct?

 

Can you verify where the data is coming for your second approval - did you change the column references to get the data from Get Item in Dynamic properties?

 

Have you looked at the run history?  Does it generate any errors?  Does it provide any clues?

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Yes, the get item is placed after the send email with options. Where do I verify where the data comes from? Forgive my ignorance.

 

"did you change the column references to get the data from Get Item in Dynamic properties?"

 

Not sure what this refers to. Again, forgive my ignorance.

 

Run history says run successful. In looking at the output for Get Item, it shows the updated quote

 

 

Outputs
Body
{
  "@odata.etag""\"2\"",
  "ItemInternalId""19",
  "ID"19,
  "Title""Test",
  "Employee_x0020_Name""Donald Tutt",
  "Job_x0020_Title""IT",
  "Location""Nashville",
  "Equipment_x0020_Requested""laptop",
  "Quantity"1,
  "Why_x0020_do_x0020_you_x0020_nee""test",
  "Cost_x0020_Center": {
    "@odata.type""#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    "Id"13,
    "Value""114 Tennessee"
  },
  "Cost_x0020_Center#Id"13,
  "Quote"199.99,
  "Modified""2018-07-19T16:15:04Z",
  "Created""2018-07-19T16:12:22Z",
  "Author": {
    "@odata.type""#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    "Claims""i:0#.f|membership|donald.tutt@tenn.com",
    "DisplayName""Donald Tutt",
    "Email""donald.tutt@cgtenn.com",
    "Picture""https://cgidd.sharepoint.com/teams/Caregiver IT/_layouts/15/UserPhoto.aspx?Size=L&AccountName=donald.tutt@tenn.com",
    "Department"null,
    "JobTitle"null
  },
  "Author#Claims""i:0#.f|membership|donald.tutt@tenn.com",
  "Editor": {
    "@odata.type""#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    "Claims""i:0#.f|membership|donald.tutt@tenn.com",
    "DisplayName""Donald Tutt",
    "Email""donald.tutt@tenn.com",
    "Picture""https://cgidd.sharepoint.com/teams/Caregiver IT/_layouts/15/UserPhoto.aspx?Size=L&AccountName=donald.tutt@tenn.com",
    "Department"null,
    "JobTitle"null
  },
  "Editor#Claims""i:0#.f|membership|donald.tutt@tenn.com",
  "{Identifier}""Lists%252fEquipment%2bRequest%2bForm%252f19_.000",
  "{Link}""https://cgidd.sharepoint.com/teams/Caregiver%20IT/_layouts/15/listform.aspx?PageType=4&ListId=b63b3781-0aae-4384-b1be-e35a6575b180&ID=19&ContentTypeID=0x0100BE1F34A0DADDE04EA7C8943D58528FE5",
  "{Name}""Test",
  "{FilenameWithExtension}""Test",
  "{Path}""Lists/Equipment Request Form/",
  "{HasAttachments}"false
}
 
 
 
 
 
And the output for the email that should have the qoute
 
Outputs
Body
{
  "response""Approve",
  "responseSummary""Approver: Donald Tutt, donald.tutt@tenn.com\r\nResponse: Approved\r\nRequest Date: Thursday, July 19, 2018 4:16:17 PM\r\nResponse Date: Thursday, July 19, 2018 4:18:55 PM",
  "title""Quote for new equipment for Donald Tutt",
  "details""Donald Tutt is requesting laptop and the estimated cost is  ",
  "responses": [
    {
      "responder": {
        "id""6c1a7cbd-3f47-4bb4-ad0e-b3607e20092b",
        "displayName""Donald Tutt",
        "email""donald.tutt@tenn.com",
        "tenantId""2f743003-3661-48d2-a92a-76064d529ef8",
        "userPrincipalName""donald.tutt@tenn.com"
      },
      "requestDate""2018-07-19T16:16:17.445197Z",
      "responseDate""2018-07-19T16:18:55.0495538Z",
      "approverResponse""Approve"
    }
  ]
}
Response
Approve
Response summary
Approver: Donald Tutt, donald.tutt@tenn.com Response: Approved Request Date: Thursday, July 19, 2018 4:16:17 PM Response Date: Thursday, July 19, 2018 4:18:55 PM
Title
Quote for new equipment for Donald Tutt
Details
Donald Tutt is requesting laptop and the estimated cost is
Responses
[
  {
    "responder": {
      "id""6c1a7cbd-3f47-4bb4-ad0e-b3607e20092b",
      "displayName""Donald Tutt",
      "email""donald.tutt@tenn.com",
      "tenantId""2f743003-3661-48d2-a92a-76064d529ef8",
      "userPrincipalName""donald.tutt@tenn.com"
    },
    "requestDate""2018-07-19T16:16:17.445197Z",
    "responseDate""2018-07-19T16:18:55.0495538Z",
    "approverResponse""Approve"
  }
ScottShearer
Most Valuable Professional
Most Valuable Professional

So in your seond approval, I want to know where your point to when you grad the values to display in the approval.  You need to select them from the Get Item Dynamic properties.  I suspect you are grabbing the stale values from the "When an item, is created" Dynamic properties.

 

 

See screen shot:

 

Approval3.png

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Scott you are correct. I was just thinking that during my last response. I do not have the "get item" listed. That is why I am pulling from the "when an item is created" list. How do i get that "get item " list to show?

I went in and created a new one from scratch and was able to select "get items" from dynamic library. Lesson learned, if you go back and delete a step and enter a new one, it does not update the dynamic library.

 

Thank you so much for your assistance.

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,296)