Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Powerapps deep linking issue for another approver email not working

(0) ShareShare
ReportReport
Posted on by 212

I created a PowerApps form to submit trade submissions for approval referencing reza's video here ((27) How to create Approval Forms in Power Apps - YouTube.


When I test with my self as the approver, I can select the PowerApps deep link in the email - it goes to directly to the trade review screen which is pre-populated form. There I can approve the request.

 

When I update the test case in the power automate workflow with another email address as the approver email address and they select the link they are re-directed to a new form instead of the original submission for approval.I

Here is what I have on the App  Start Screen: 

If(
!IsBlank(Param("ID")) && LookUp(
'Trade PreApproval Form',
ID = Value(Param("ID"))
).ApproverEmail = User().Email,
TradeReview,
TradeReqForm
)

 

Form (TradeReqForm) Submit OnSelect property:

 

If(
Form1.Valid, // Check if the form is valid
If(
!IsBlank(DataCardValue6.Text) || !IsBlank(DataCardValue9.Text),
SubmitForm(Form1);
Set(varNewRecordID, Form1.LastSubmit.ID);
Navigate(EndScreen),
Notify("Please complete the required fields", NotificationType.Error)
),
Notify("Please complete the required field", NotificationType.Error)
)

 

Form (TradeReqForm) OnSuccess:

'TradeSubmission-PROD'.Run(varNewRecordID);

 

TradeReview Screen, OnVisible property:

 

If(
!IsBlank(Param("ID")),
Set(
varItem,
LookUp(
'Trade PreApproval Form',
ID = Value(Param("ID"))
)
);
Set(
varFormMode,
FormMode.Edit
)
)

 

  • WarrenBelz Profile Picture
    WarrenBelz 145,666 on at
    Re: Powerapps deep linking issue for another approver email not working

    @mthiru_0023 ,

    Yes that may cause some issues, but your fundamental issue is the navigation, which comes before this.

  • mthiru_0023 Profile Picture
    mthiru_0023 212 on at
    Re: Powerapps deep linking issue for another approver email not working

    I think the issue may have been due to a restriction on the SP list. In advanced settings, settings changed to Read items that were created by the user.

    mthiru_0023_0-1704803154504.png

     

  • WarrenBelz Profile Picture
    WarrenBelz 145,666 on at
    Re: Powerapps deep linking issue for another approver email not working

    @mthiru_0023 ,

    I assume you are still testing as there is not much more I can add presently.

  • mthiru_0023 Profile Picture
    mthiru_0023 212 on at
    Re: Powerapps deep linking issue for another approver email not working

    @WarrenBelz 

     

    On Form2 (TradeReview screen) Item is set to varItem. Maybe I need to modify this with if condition. I am looking at some of your other posts and considering that option.

    VarItem is set when a user selects NextArrow on the Gallery from AllRecords Screnn: Set(varItem, ThisItem)

     

  • mthiru_0023 Profile Picture
    mthiru_0023 212 on at
    Re: Powerapps deep linking issue for another approver email not working

    @WarrenBelz 

    Thanks Warren for your response. I checked the email and it's verified. Strange thing when I create a form using an Admin account, and set myself as the approver I can approve as it takes me directly to the prepopulated form.

     

    The Test users experiences the same thing. When he submits and he himself is an approver he is able to go directly to the Trade review to submit approval.

     

    I am checking the ID and it's getting set in the email so that too seems be as expected as well.

     

    I moved the Variable for varNewRecordID to OnSuccess of Form1.

    Set(varNewRecordID, Form1.LastSubmit.ID);
    'TradeSubmission-PROD'.Run(varNewRecordID);

     

    <a href="https://apps.powerapps.com/play/e/default-46b19e48-734d-4bea-8a5a-ab12fbe8adc3/a/df6de2ef-68a9-4bf8-b2b5-6951c668ebee?tenantId=46b19e48-734d-4bea-8a5a-ab12fbe8adc3&hint=e3ce678a-23b3-4d48-9794-35550bea4352&sourcetime=1704304458124&ID=70"

  • WarrenBelz Profile Picture
    WarrenBelz 145,666 on at
    Re: Powerapps deep linking issue for another approver email not working

    Hi @mthiru_0023 ,

    Firstly, you do not need to look at any code other than this

    If(
     !IsBlank(Param("ID")) && 
     LookUp(
     'Trade PreApproval Form',
     ID = Value(Param("ID"))
     ).ApproverEmail = User().Email,
     TradeReview,
     TradeReqForm
    )

    which simply says that if

    • there is an incoming Parameter ID AND
    • the ApproverEmail field in the record in 'Trade PreApproval Form' with this ID is the logged-in user's email

    then open the TradeReview Screen or if not, open the TradeReqForm Screen.

    Two things here

    • Ensure you have the exact email in particular case (John.Smith@abc.com is not john.smith@abc.com)
    • Re-check the data on the ID being sent

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard