Skip to main content 3월 5~6일에 샌프란시스코의 TDX 또는 Salesforce+에서 열리는 AI 에이전트 시대를 위한 개발자 컨퍼런스에 참여하세요. 지금 등록하기.

#Debug Mode토론 중인 항목 2개

Or Bakai (Vade RevOps Manager) 님이 #Flow에 질문했습니다

Hi Everyone, 

 

Would love to know if you can understand what happened, I haven't logged in for sometime to the playground, and I'm now trying to refresh on my flows but it seems that when I press the debug button I'm being sent to a white screen instead of the usual prompt appearing. 

 

I tried switching browsers but nothing works. 

 

Thanks,

Or

 

#Flow  #Flows  #Debug Mode

답변 7개
  1. 1월 11일 오전 8:13

    Hey, just replying to explain the end result as I see people are interested. In the end I decided to open a different Playground and the problem did not repeat itself. Not the best solution, but one that worked for me.

0/9000
Sudipta Deb (Shrey Tech Cloud Architect) 님이 #Flow에 글을 올렸습니다

📣📡 How To Debug Salesforce Flow As Different User

In the realm of Salesforce, flows are powerful tools that automate complex business processes with clicks, not code. Whether it’s handling record updates, creating tasks, or sending notifications, flows streamline operations and enhance productivity. However, even the most meticulously designed flows can encounter issues, making debugging an essential skill for any Salesforce administrator or developer.

One of the critical aspects of debugging in Salesforce is testing flows as different users. This practice ensures that the flow behaves as expected for all user profiles and permissions. Debugging as different users can uncover issues related to field accessibility, record visibility, and permission discrepancies that might otherwise go unnoticed.

In this blog post, I will delve into the step-by-step process of debugging a Salesforce flow as different users. By mastering these debugging strategy, you can ensure that your Salesforce flows are robust, user-friendly, and tailored to the diverse needs of your organization.

📒 https://sudipta-deb.in/2024/05/how-to-debug-salesforce-flow-as-different-user.html

@The Blog Group

 

📣📡 How To Debug Salesforce Flow As Different UserIn the realm of Salesforce, flows are powerful tools that automate complex business processes with clicks, not code.

 

#Flow #Debug Mode

0/9000

Hi all,

 

I have created a record-triggered flow that is supposed to find a Task Record connected to a Lead and set the Task's Status to 'Complete' when the Lead is converted.

The Flow has a GetRecord Element that looks for Task records where WhoID = {!$Record.Id}

 

During Debug, a matching Task Record can be found.

Activated in Production, the Flow throws the following Error and is not able to find the Record.

 

GET RECORDS: get task

 Find all Task records where:

 WhoId Equals {!$Record.Id} (00QJz00000AsJ6LMAV)

 Store the values of these fields in get_task: Status, Id

 Result

Failed to find records.

 

Manually inspecting the Task Record in Production shows that the Record exists with a value in field WhoID that matches the search string, but somehow the Flow can't find it.

The Sharing Settings for Activity (= Task?) are 'Controlled by Parent', the Parent Object Lead can be accessed by users.

 

Anyone got an idea on why the Flow can't find the Records in Prod? It might be super obvious, but I just don't see it.

 

#Record-Triggered #Edit Task #Debug Mode

답변 2개
  1. Mikey Brown (SETGO Partners) Forum Ambassador
    2023년 11월 14일 오후 7:39

    Hmm, I wonder if it's a timing issue. When converted, any open tasks automatically get carried over to the converted Contact. I wonder if that's happening before this particular flow is firing. You could maybe try and find all tasks where the WhoId is equal to {!$Record.ConvertedContactId}

0/9000