5

Requirements

I have business requirement that is

  • launch a flow upon status change of Quote, asking user if he/she wants to close the related opportunity?
  • upon checking the checkbox on the flow-screen, the related opportunity needs to be closed.

Solution

I have created a screen-flow, I know that flow type must be autolaunch flow to appear in the process builder, but requirements need user-interaction. How should I achieve this?

5
  • What should happen if status is changed by API call? Answer of this question should define your solution strategy pretty much
    – kurunve
    Commented Jun 18, 2018 at 10:32
  • There won’t be any update through the api. I know what you’re getting at, but that’s what it is.
    – Mahmood
    Commented Jun 18, 2018 at 10:37
  • 1
    Can't you use an Action with a checkbox here? Might be the easiest way
    – user28311
    Commented Jun 18, 2018 at 11:46
  • @fred can you give an example ?
    – Mahmood
    Commented Jun 18, 2018 at 14:10
  • @Mahmood: Example added as answer to your question.
    – user28311
    Commented Jun 18, 2018 at 15:38

2 Answers 2

2

Here is a quick and dirty example of an implementation via an Action on the Quote Object:

enter image description here

When the checkbox is changed, you can use a PB to update the related Opportunity.

To create an action, navigate to the Object Manager, choose Buttons, Links and Actions, and create a new Action. Choose to update a record, and select the checkbox field in the Page Layout. In the 'Predefined Field Values' section, set your Quote status to 'Accepted'.

Repeat the steps for a 'Quote Denied' action.

2
  • Ah the quick action! I actually want to have this action on change of Quote status value change; that won't be possible from that.
    – Mahmood
    Commented Jun 19, 2018 at 19:03
  • That's right, given your use case I thought this comes close to what you want without too much hassle
    – user28311
    Commented Jun 19, 2018 at 19:39
2

Process builder cannot be used to launch an interactive flow (one with user screens), from Salesforce documentation an autolaunched flow:

Doesn’t require user interaction. This flow type doesn’t support screens, local actions, steps, choices, or dynamic choices.

SF Help on Flow Types

So that would not be an option for your scenario.

Either the Quote screen needs to be replaced with an interactive flow to update it so that the user can be directed or another approach would be required to capture the user input, such as sending a chatter message or email with the linked opportunity record prompting the user about changing the status.

1
  • Interesting! I like the "Email with linked record" approach; but I have opted for a slightly different yet simple approach.
    – Mahmood
    Commented Jun 19, 2018 at 19:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .