New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Process Automation Accredited Professional (AP-221) Exam - Topic 1 Question 34 Discussion

Actual exam question for Salesforce's Process Automation Accredited Professional (AP-221) exam
Question #: 34
Topic #: 1
[All Process Automation Accredited Professional (AP-221) Questions]

The architect is designing a flow where a screen flow is used to create a contact and display a

confirmation screen. While the confirmation screen is displayed, remote API is invoked to update

the contact in the external system. The update fails. How should the architect resolve the design?

Show Suggested Answer Hide Answer
Suggested Answer: A

In the scenario where a remote API update fails after creating a contact through a screen flow, incorporating an error handling mechanism within the flow is essential. This allows the flow to gracefully handle exceptions and errors, providing feedback or rollback options as necessary. Regular testing during the development phase helps identify potential issues early, ensuring the flow functions as intended upon deployment. Reference: Salesforce Help - Add Fault Handling to Your Flow


Contribute your Thoughts:

0/2000 characters
Tijuana
3 months ago
Error handling is crucial in any flow design!
upvoted 0 times
...
Emile
3 months ago
I think using Process Builder (D) is outdated.
upvoted 0 times
...
Graciela
3 months ago
Wait, is it really not possible to update via flow? (C)
upvoted 0 times
...
Malcom
4 months ago
I disagree, using a separate transaction (B) is better for reliability.
upvoted 0 times
...
Gladys
4 months ago
Option A seems like a solid choice.
upvoted 0 times
...
Ruthann
4 months ago
I don't think switching to Process Builder is the right move; we focused on flows for this kind of task. Option D seems off to me.
upvoted 0 times
...
Herminia
4 months ago
I vaguely recall something about using Apex for external updates, but I’m not confident if that’s necessary here. Option C could be a fallback, right?
upvoted 0 times
...
Larae
4 months ago
I think using a separate transaction could help isolate the update process, like we practiced in that last case study. Option B might be the way to go.
upvoted 0 times
...
Arlen
5 months ago
I remember we discussed the importance of error handling in flows, so option A sounds familiar, but I'm not entirely sure if it's the best choice here.
upvoted 0 times
...
Amber
5 months ago
Process builder, huh? I haven't used that in a while, but it might be worth considering as an alternative to the flow approach. I'll need to look into the pros and cons.
upvoted 0 times
...
Leatha
5 months ago
Hmm, I'm not sure about using Apex for this. I'll need to review the flow capabilities and see if there's a way to handle the remote update within the flow itself.
upvoted 0 times
...
Moon
5 months ago
Using a separate transaction to update the contact in the external system could be a good way to handle this, but I'll need to double-check the details on that.
upvoted 0 times
...
Silva
5 months ago
Hmm, this looks like a tricky one. I'll need to think through the different options carefully and consider the implications of each approach.
upvoted 0 times
...
Arleen
5 months ago
Okay, I think I've got a handle on this. Adding error handling and testing early seems like a solid strategy to me.
upvoted 0 times
...
Shaun
5 months ago
Okay, let me think this through. XHTML and XSLT are definitely coded using XML, and SOAP headers also use XML syntax. I'll go with B and C for my answer.
upvoted 0 times
...
Dewitt
5 months ago
I'm a little confused by the wording of the question. I'll need to re-read it a few times and think through each of the conditions to determine the best answer.
upvoted 0 times
...
Gerald
5 months ago
I recall a practice question that mentioned national income, but that sounds different from what we're looking for here.
upvoted 0 times
...
Erasmo
5 months ago
I think we had a similar practice question where we discussed federation vs. interoperability. I need to check my notes on that.
upvoted 0 times
...
Cherry
2 years ago
Haha, D? Using Process Builder instead of Flow? That's like using a sledgehammer to crack a nut!
upvoted 0 times
Lazaro
2 years ago
C) Use Apex since updating a contact in the remote system is not possible in flow.
upvoted 0 times
...
Salina
2 years ago
B) Use a separate transaction to update the contact in the external system.
upvoted 0 times
...
Maybelle
2 years ago
A) Add error handling mechanism to the flow and test often and early.
upvoted 0 times
...
...
Selma
2 years ago
I'd go with B. Keeping the flow and the external update separate is the smart move here.
upvoted 0 times
Devon
2 years ago
B) Use a separate transaction to update the contact in the external system.
upvoted 0 times
...
Veronika
2 years ago
A) Add error handling mechanism to the flow and test often and early.
upvoted 0 times
...
Raelene
2 years ago
I'd go with B. Keeping the flow and the external update separate is the smart move here.
upvoted 0 times
...
Berry
2 years ago
B) Use a separate transaction to update the contact in the external system.
upvoted 0 times
...
Candida
2 years ago
B) Use a separate transaction to update the contact in the external system.
upvoted 0 times
...
Maybelle
2 years ago
A) Add error handling mechanism to the flow and test often and early.
upvoted 0 times
...
Cassie
2 years ago
A) Add error handling mechanism to the flow and test often and early.
upvoted 0 times
...
...
Bette
2 years ago
C? Apex? No way, that's overkill. Flows are great for this use case if you handle the errors properly.
upvoted 0 times
Angella
2 years ago
C? Apex? No way, that's overkill. Flows are great for this use case if you handle the errors properly.
upvoted 0 times
...
Alaine
2 years ago
A) Add error handling mechanism to the flow and test often and early.
upvoted 0 times
...
...
Aleta
2 years ago
B sounds like the way to go. Separate transactions will ensure the flow doesn't get stuck if the external update fails.
upvoted 0 times
Denise
2 years ago
It's important to consider all options and choose the one that best fits the design requirements.
upvoted 0 times
...
Karol
2 years ago
Using a separate transaction seems like a safe bet to prevent any issues with the external update.
upvoted 0 times
...
Latrice
2 years ago
Agreed, testing often and early with error handling is key to ensuring the flow works smoothly.
upvoted 0 times
...
Juliann
2 years ago
Process builder might not be the best option as it is more suitable for simple workflows.
upvoted 0 times
...
Stefania
2 years ago
I think using Apex might be an overkill for this scenario. Keeping it simple is better.
upvoted 0 times
...
Andree
2 years ago
Yes, adding error handling mechanism to the flow is also important to handle such scenarios.
upvoted 0 times
...
Gerald
2 years ago
B sounds like the way to go. Separate transactions will ensure the flow doesn't get stuck if the external update fails.
upvoted 0 times
...
Alishia
2 years ago
B sounds like the way to go. Separate transactions will ensure the flow doesn't get stuck if the external update fails.
upvoted 0 times
...
Clare
2 years ago
A) Add error handling mechanism to the flow and test often and early.
upvoted 0 times
...
...
Lera
2 years ago
Definitely A. Error handling is crucial, especially when dealing with external systems. Can't risk leaving users in the dark.
upvoted 0 times
...

Save Cancel