Skip to main content
Harald Aalbers (Oogfonds) 님이 #Flow에 질문했습니다

Hi all,

 

I am making a #Screen flow where user will enter Postal code and House number in the first screen. When the contact gets updated Apex is run which calls a Postal code API and fills in the Street and City fields.

When the API doesn't get a result, then it fills an error field on Contact.

 

I want the flow to check if the error field is filled and if it is to show a next screen where Street and City can be entered manually. 

 

The problem is that the flow doesn't see that the error field is filled, presumably because it checks before the Apex has finished updating the record.

 

Do you have any idea how I could somehow delay the flow (1 second might be enough) and/or force it to pick the record after the Apex has finished?

 

Any help would be appreciated!

답변 4개
  1. Eric Praud (Activ8 Solar Energies) Forum Ambassador
    2023년 11월 22일 오후 3:11

    That's a bit of a toughie here if the APex is not called by the flow. Woudl it be possible to do so?

    Or, maybe you could add an HTTP Callout in your flow that would call the same API as the Apex class does. This way, you could see if there's an error with a Decision and redirect to a next screen where Street and City can be entered manually. 

0/9000