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

Community site session details

Session Id :
Copilot Studio - Autonomous Agents
Suggested answer

I want to generate a serial number — but only if the request is approved.

(1) ShareShare
ReportReport
Posted on by 4

I have a SharePoint list where, when a user creates a new item, the data is collected in a template and then converted into a PDF.

The PDF is then sent for the first approval — if it’s approved, the approver’s signature is added to the file.

The second approval is only for review,

and the third approval is for final confirmation.

 

After the third approval, I want to generate a serial number — but only if the request is approved.

 

I’ve been trying to get this to work for a week, but it still doesn’t behave correctly — even when the request is rejected, it still increments the serial counter (though it doesn’t write the number in the column).

I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    50,275 Super User 2025 Season 2 on at
    I want to generate a serial number — but only if the request is approved.
     
    To help you, you would need top share your Flow.
     
    If you are building this process out, it sounds as if you do not have a proper condition check. Meaning its not correctly, caring about the end result of the 3rd approval (or maybe any of them).
     
    So we need to see the agent, the tools, the flow etc, as in the end, it should be checking the Outcome output of the last Approval and only then if its = to Approved, should it do what you said, but it sounds like its built incorrectly and doesn't check that or does not check it correctly.
     
    Would need to see all you have to tell you for sure but check that you (if its in a flow) have the Condition check after the approval to validate it was approved and if not, add it in so in the YEs side built the SR and in the No side do not

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • Romain The Low-Code Bearded Bear Profile Picture
    1,155 Super User 2025 Season 2 on at
    I want to generate a serial number — but only if the request is approved.
    hello, to complete the previous answer, did you have a look at the home page of you'r flow, bottom left, there a flow history and you have detail, you could check what happen in every step. So you could see why it's going in certain path or another :) could help a lot to understand what happen in a flow :)
     
     
    hope this help
  • Michael E. Gernaey Profile Picture
    50,275 Super User 2025 Season 2 on at
    I want to generate a serial number — but only if the request is approved.
     
    Totally agree, that's why I said to check the flow if it has a Condition to check it.. and see if it goes to the yes or no. of its not there thats why.
  • CU13101239-0 Profile Picture
    4 on at
    I want to generate a serial number — but only if the request is approved.
    @Michael E. Gernaey this my flow 
  • Suggested answer
    Michael E. Gernaey Profile Picture
    50,275 Super User 2025 Season 2 on at
    I want to generate a serial number — but only if the request is approved.
     
    Let me back up if its ok for a second just to connect the dots.
     
    This flow would run anytime the row is modified or a new one is created, so as it relates to the approvals, this flow would trigger (assumed) for prior steps 1 and 2 of the approval, not just for the 3rd, and I only say that because i haven't seen the totality of the approval steps, but the question in my head is
     
    1. Is it getting updated via this flow for the FINAL approval, or for a previous approval and it just stays this way.
     
    So here is my question / thoughts:
     
    A) Can you please go into the flow and, if you are able to identify, the time it triggered for the 3rd approval. Then let's look at the Condition and, for a time you know it should NOT update (aka go to the No side), let's see why it went to the Yes side, because again, either it got set in a previous trigger for that row, OR there is a bug where the 3rd iteration / trigger of this (if that is what is happening) has bad data.
     
    The flow run, from the Details page, open up the flow, let's look at the Raw output of the Trigger, and then also the Condition Inputs / outputs
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
     
     

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

Responsible AI policies

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

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 506 Super User 2025 Season 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 387 Super User 2025 Season 2

#3
DAnny3211 Profile Picture

DAnny3211 132

Last 30 days Overall leaderboard