Skip to main content

#Flows26 人がディスカッション中

I am experiencing a synchronization delay when trying to link a newly built flow to a subagent action. After creating the flow, I go to add a new action and select Flow as the Reference Action Type. However, the flow does not immediately appear in the Reference Action dropdown list and takes several minutes to become visible.

Could you please advise if this is expected caching behavior? If so, what is the standard propagation time I should expect? 

 

#Agentforce  #Flows

3 件の回答
  1. Khyati Mehta (InfinySkills) Forum Ambassador
    9月12日 16:26

    Hello Amit, 

     

    Yes, this can happen due to backend synchronization/caching. Newly created Flows may take a few minutes before they become available in the Reference Action dropdown for a subagent. It’s not usually an issue with the Flow itself. There doesn’t seem to be a fixed guaranteed propagation time, but in practice, waiting a few minutes and refreshing/reopening the action configuration usually makes the Flow appear. Hope this helps!

0/9000

I have a screen flow that I'd like users to be able to access two different ways: from a field on the Opportunity Product object, as well as a Detail Page Button. What's paramount is where the screen flow returns at its end: I need it to end on a view of the product related list on the related Opportunity record. I got it to work successfully on the field version. Here's my formula field:  

 

HYPERLINK("/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product" &"?recordId=" &Id &"&retURL=/lightning/r/Opportunity/" & OpportunityId & "/related/OpportunityLineItems/view", 

"CLONE", 

"_self" 

) 

 

But for the life of me, I can't get the Button version of the URL to go back to the Product related list. I figured out that I can't reference the Opportunity Id via merge field in this scenario, so I created a formula field called Opportunity_Id__c, which just utilizes a CASESAFEID version of the Opportunity Id.  

 

In order to save time, here is a list of the various versions I've tried that DON'T work:  

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id}&retURL=/{!OpportunityLineItem.Id

} 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id

}&retURL=/lightning/r/Opportunity/&OpportunityId&/related/OpportunityLineItems/view 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id

}&retURL=/lightning/r/Opportunity/OpportunityLineItem.Opportunity_Id__c/related/OpportunityLineItems/view 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id}&retURL=/lightning/r/Opportunity/{!Opportunity.Id

}/related/OpportunityLineItems/view 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id

}&retURL=/lightning/r/Opportunity/{!OpportunityLineItem.Opportunity_Id__c}/related/OpportunityLineItems/view 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id

}&retURL=/lightning/r/Opportunity/&OpportunityLineItem.Opportunity_Id__c&/related/OpportunityLineItems/view 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id}&retURL=/lightning/r/OpportunityLineItem.Id

} 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id

}&retURL=/lightning/r/{!OpportunityLineItem.Opportunity_Id__c}/related/OpportunityLineItems/view 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id

}&retURL=/lightning/r/&OpportunityLineItem.Opportunity_Id__c&/related/OpportunityLineItems/view 

 

 

Anyone have any thoughts, tips, or suggestions?  

 

#Flow  #Flows  #Screen Flow  #Formulas

5 件の回答
  1. 9月15日 1:26

    @Craig Munster

     

     

    Ah, that's the missing piece — and you're right, I was wrong to steer you off your formula field. On an Opportunity Product button the native OpportunityId genuinely isn't exposed in the merge-field picker (annoying known quirk). Your Opportunity_Id__c CASESAFEID field is exactly the right workaround, so keep it — custom fields DO show up under Insert Field. Just reference that one instead of OpportunityId: 

     

    /flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

    OpportunityLineItem.Id

    }&retURL=/lightning/r/Opportunity/{!OpportunityLineItem.Opportunity_Id__c}/related/OpportunityLineItems/view 

     

    That sends them back to the Products related list on the parent Opp. Sorry for the runaround getting there! 

     

    If this helps, please mark it as the Best Answer so it helps the next person — thanks 🙂

0/9000
1 件のコメント
0/9000

Hi everyone! 

 

I am trying to configure a new screenflow to have it's Uploaded File's name mapped into a text field.  I tried creating a Variable (Text-Collection) and added an Update Records element after the screen in an attempt to map it, but I can't get it right.   

 

What am I doing wrong here? 

 

Help with mapping attachment names into a field

 

image.png

 

image.png

 

 

 

 

 

#Flow  #Screen Flow  #Flows

12 件の回答
  1. 9月8日 3:09

    @Mario Santellan

      

    your flow is basically right — the only broken piece is the GetFileName filter value. In that resource picker you're currently on 'Related Record ID', which is the record you attached the files to, not the uploaded file. Instead pick the Upload File component's 'Content Document IDs' output (Upload File > Content Document IDs) — that's the list of the uploaded files' Ids. Also change the operator from Equals to In, since that output is a collection: the condition should read Content Document ID In → Upload File > Content Document IDs. Equals against a collection is exactly why nothing matched. Your Title mapping is already right — Title lives on the ContentDocument record, which is why 'Content Document from GetFileName > Title' works in AddAttachmentName (Title = file name without the extension; add FileExtension if you need the .pdf/.docx part). On multiples: with 'Only the first record' selected you'll capture just the first file's name. If a partner uploads 2+ files and you want them all, switch GetFileName to 'All records', add a Loop over it, and in an Assignment append each 'Loop > Title' (plus a comma) into a Text variable, then map that variable into File Name. If one name is enough, first-record is perfect as-is. Give that a try — it should populate.

0/9000

hello 

i can't access   this  suberbag   trailhead  page 

 

Advanced Flow for Agentforce Superbadge Trailhead page

. 

tha,ks  for    help 

 

#Flows

4 件の回答
  1. Ajaypreet Singh Saini (Grantbook) Forum Ambassador
    9月8日 17:28
0/9000

Hello, I would be interested in improving my Salesforce programmatic  and declarative skills by lending my services  pro bono (no money) . I have past experience 

working as a  Salesforce developer creating and maintaining automation for a couple of non-profit companies (Awana International and CBN) and would like to help lend my skills  and support in any way that I can.   Thanks much. 

 

#Nonprofit User Groups  #Salesforce Developer  #Flows

0/9000

A Flow calls an Invocable Apex method, and Apex updates the same record that triggered the Flow. 

Will the Flow run again?

  

 

#Flows

4 件の回答
  1. 9月2日 12:25

    No, the Flow itself won't automatically restart just because Apex updates the same record — Salesforce doesn't loop back into the currently running Flow from within its own transaction. 

    But watch out for this:

     

    If that Apex update happens to match the entry criteria of a

    Record-Triggered Flow (even the same one), Salesforce can fire a new Flow execution — because to the platform, it's just another DML update on the record, not "the same Flow running again." 

    One-line takeaway:

     

    Same Flow instance won't re-run recursively, but a fresh Flow trigger can fire on that DML — so it's still safer to add a guard condition (like checking if the specific field actually changed) if you want to avoid unintended re-entry. 

0/9000
4 件の回答
  1. 9月2日 6:18

    Hi @Archana Chittoor

    Yes, we can create a report to see the usage of Screen Flows.

    Go to Reports -> Public Folders -> Sample Flow Report: Screen Flow.

    This report shows:

    • Which users are running the Screen Flows
    • Number of flow executions
    • Flow interview status
    • Time users spend on each screen

    By default, the report shows data from the last 7 days. We can change the date filter, but the maximum available data is 31 days.

    If the report is not available, we can create a custom report type using Flow Interview Logs and Flow Interview Log Entries.

    Thanks. 

0/9000

Hello everyone, 

 

I want to learn flow from beginner to advance level, so can anyone pls tell me sequence of trails to learn flow in exact sequence. 

 

#Flow  #Flows

2 件の回答
0/9000
Nich Weidman が「#Flow」で質問

I have a Flow that needs to send an email when a record is created on a Custom Object.  No matter what I put in the recipient field, I continue to get "0 recipients Error ID: 1728011022-505532"when I try to trigger the flow.  

 

What I first tried was go search resources, triggering record -> Respondent field (this looks up the contact) ->Contact ID:

How to set Recipient ID in Flow Send Email Action

 

 

When that failed, I tried several different versions of creating a text variable to look up the same thing and put that in the recipient ID field.  Again, no luck.  Finally, I switched the look-up from "Search Resources" to "Enter Text" and put in the text of a contact ID I know for sure is active and has a valid email address, but still got the error. 

 

For this flow, I need to have it pull the email address of the Contact (Respondent) listed in these records.  What am I missing? 

 

 

#Flow  #Flows  #Custom Objects

3 件の回答
  1. 8月25日 4:56

    Hi, see the tool tip on the Recipient Addresses field which says it needs to have an email address not id. Try using the hardcoded email address and test to see its working.Hi, see the tool tip on the Recipient Addresses field which says it needs to have an email address not id. Try using the hardcoded email address and test to see its working.

0/9000