You need to sign in to do that
Don't have an account?
sg
Display Text message using Screen flow based related object record count
I have a custom button in a custom object and
on clicking the button,
It (Screen Flow) purchases reports from vendor portal based on information available in the record and creates another record in the related object.
Now, I have to display a text message( Reports already been purchased, Do you really want to continue?) to user when they try to click on this button even though there is a report which already has been purchased, Just to prevent unnecessary purchases.
But if they continue on purpose, it should be working as usual and purchase a report.
If that particular related object has more than 0 records, this popup should be displayed. Any ideas on how i can accommodate this in the existing flow? Any help or insights would be appreciated.
on clicking the button,
It (Screen Flow) purchases reports from vendor portal based on information available in the record and creates another record in the related object.
Now, I have to display a text message( Reports already been purchased, Do you really want to continue?) to user when they try to click on this button even though there is a report which already has been purchased, Just to prevent unnecessary purchases.
But if they continue on purpose, it should be working as usual and purchase a report.
If that particular related object has more than 0 records, this popup should be displayed. Any ideas on how i can accommodate this in the existing flow? Any help or insights would be appreciated.
Hi sg,
You can add new screen to achieve this . For the screen to be displayed, you can add conditions by getting all records of related object using 'get records' and check in decision if records are present in related object, if yes you can put the screen where you can display text 'Reports already been purchased, Do you really want to continue?' and use buttons 'yes' and 'no' for footer. If the user click yes then continue with your logic to purchase report, else if user chooses 'no' , then end the flow.
If you are updating any field value after the creation of related object or purchase of report, then your work will be eaiser, as you check the field value and create your condition in the decision box according to that.
If this helps you please mark it as a best answer
Thanks!